# HasEntitlements(string[])

> Returns which of a list of entitlements are granted to the current user.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Licensing](/engine/7000.0/script-reference/unityeditor/licensing.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static string[] HasEntitlements(string[] entitlements)
```

### Parameters

**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): The requested list of entitlement strings.

### Returns

| Type                                                               | Description                                                                   |
| ------------------------------------------------------------------ | ----------------------------------------------------------------------------- |
| [string\[\]](https://learn.microsoft.com/dotnet/api/system.string) | The entitlement strings from the requested list that the user is entitled to. |

### Remarks

This method returns only the granted entitlements, and returns an empty array when the licensing system is unreachable, which is the right default for a permission check.
