How do I request authorization for a webcam?

I was just wondering if anyone could help me write a script to request authorization from a windows platform. I was interested in making a test Augmented Reality program but I am not able to access the built in webcam on my laptop. I have already looked at the help documentation but have not been able to make heads or tails of my next move.

ANY input is really appreciated and I am willing to learn from anyone who is willing to spent a little time.

PS. I know only the bare bones when it comes to programming. If I look at a script long enough I can usually get the gist of things but I don’t even know where to start on this project.

I saw it in the build settings in Unity I think. I’m not currently home to check for sure however. I think it was one of the last settings.