# 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.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

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

### Parameters

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

### Returns

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

### Remarks

Use this method to check the result of a previous call to [Application.RequestUserAuthorization](/engine/6000.6/script-reference/unityengine/application/requestuserauthorization.md). On WebGL, the system asks users for consent to use these features every time the app is reloaded. On iOS, the system asks for consent only once and remembers the user’s choice. For all other platforms, this function always returns true.
