Home > Appendices > Fly App Profile Permissions > How to Check and Activate Microsoft Rights Management Service?

    Export to PDF

    How to Check and Activate Microsoft Rights Management Service?

    When your app profile using the Fly app cannot be created or authorized, you can check if it is caused by the lack of Microsoft Rights Management Service subscription:

    1. When the authentication error occurs after you authorize the app, navigate to the Developer Tools interface by pressing F12 on the keyboard.

    2. Check the information under the Console tab.

    3. If you can find the access denied error shown in the screenshot below, the error is caused by the lack of Microsoft Rights Management Service subscription.

      The access denied error

    For this error, we provide you with the following two solutions:

    • Purchase and apply any of the licenses that can provide the rights for a user. After applying the license, assign the license to the authentication user. Refer to Microsoft 365 Guidance for the available licenses.

    • Solve it via Graph Explorer.

      1. Log in to Graph Explorer using your Global Administrator account with required permissions. Refer to Create servicePrincipal to view the required permissions.

      2. Create a new servicePrincipal object using the following request:

        POST https://graph.microsoft.com/v1.0/servicePrincipals
      3. Request body:

        {
            "appId": "00000012-0000-0000-c000-000000000000"
        }

        Create the servicePrincipal object.

        NOTE

        Enter the app ID of Microsoft Rights Management Service (00000012-0000-0000-c000-000000000000) in the appId field even if this is different from the app ID reported in the error message.

      4. Check if the AccountEnabled value is true using the following request:

        GET https://graph.microsoft.com/v1.0/servicePrincipals(appId='00000012-0000-0000-c000-000000000000')

        Check the AccountEnabled value.

      5. If the AccountEnabled value is false in the response, enable it using the following request:

        PATCH https://graph.microsoft.com/v1.0/servicePrincipals/{id}

        Replace {id} with the id value in step iii.

        Request body:

        {
            "accountEnabled":true
        }