# LicensingUtility

> Queries the entitlements granted to the current user.

## Definition

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

```csharp
public static class LicensingUtility
```

## Remarks

An entitlement is a string that identifies a permission, for example `com.unity.editor.ui`. Unity resolves entitlements through the licensing system, which the Editor cannot always reach.

Every entitlement check on this class fails closed: an unreachable licensing system reads the same as an entitlement that is not granted. This is the right default for gating a feature, where both cases deny access.

Use [LicensingUtility.HasEntitlement](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/hasentitlement.md) for a single entitlement, [LicensingUtility.HasEntitlements](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/hasentitlements.md) for several, and [LicensingUtility.HasEntitlementsExtended](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/hasentitlementsextended.md) when you need the license files behind an entitlement or the custom data attached to it.

## Examples

```csharp
using UnityEditor.Licensing;
using UnityEngine;

static class LicenseReport
{
    public static void LogEditorEntitlements()
    {
        // An unreachable licensing system returns an empty array, the same as nothing being granted.
        string[] granted = LicensingUtility.HasEntitlements(new[]
        {
            "com.unity.editor.ui",
            "com.unity.editor.disable-splash-screen",
        });

        foreach (var entitlement in granted)
        {
            Debug.Log($"{entitlement} is granted");
        }
    }
}
```

## Static Methods

| Method                                                                                                                                 | Description                                                                 |
| -------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [GetAuthToken](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/getauthtoken.md)                                 | Returns the authentication token for the current licensing session.         |
| [HasEduLicense](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/hasedulicense.md)                               | Checks whether the current user has an Education license.                   |
| [HasEntitlement](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/hasentitlement.md)                             | Checks whether the current user is entitled to a specific entitlement.      |
| [HasEntitlements](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/hasentitlements.md)                           | Returns which of a list of entitlements are granted to the current user.    |
| [HasEntitlementsExtended](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/hasentitlementsextended.md)           | Returns extended information about a list of entitlements.                  |
| [HasPro](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/haspro.md)                                             | Checks whether the current user has a Unity Pro license.                    |
| [InvokeLicenseUpdateCallbacks](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/invokelicenseupdatecallbacks.md) | Notifies all components that have registered to act upon licensing changes. |
| [IsPersonal](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/ispersonal.md)                                     | Checks whether the current user has a Unity Personal license.               |
| [UpdateLicense](/engine/7000.0/script-reference/unityeditor/licensing/licensingutility/updatelicense.md)                               | Triggers an update to all available license types found on this machine.    |
