Permission microphone or webcam

Hello, how is it possible to define permission for microphones so that anyone who wants to connect can first get permission and after confirmation can speak