# HasUserAuthorization(UserAuthorization)

> Check if the user has authorized use of the webcam or microphone on iOS and WebGL.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static bool HasUserAuthorization(UserAuthorization mode)
```

### Parameters

**** (\[UserAuthorization]\(/engine/6000.0/script-reference/unityengine/userauthorization)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

This is used to check the result of a previous call to [Application.RequestUserAuthorization](/engine/6000.0/script-reference/unityengine/application/requestuserauthorization.md). Explicit user consent to use features is only needed in WebGL. In other build targets, this function always returns true.
