Microsoft Entra ID Governance
Microsoft identity platform

Privileged Identity Management Custom Extensions

In brief

The documentation now consistently uses a different application client ID in the endpoint URI, calling application claim, and `resourceId` examples.

What Entra admins need to know

Administrators configuring PIM custom extensions should use the updated identifier values shown in the guidance.

This editorial summary was generated by AI from the documentation changes. Verify important details in the full Microsoft Learn article.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

  1. Open the app registration and go to Expose an API.

  2. Select Set next to Application ID URI.

  3. Enter a value that represents your API. The URI must end with the Application (client) ID of the app registration. For example, if your custom extension endpoint is https://api.contoso.com/webhooks/entra-role-assignments and the Application (client) ID is 00001111-aaaa-2222-bbbb-3333cccc4444aaaabbbb-0000-cccc-1111-dddd2222eeee, set the Application ID URI to: api://api.contoso.com/00001111-aaaa-2222-bbbb-3333cccc4444aaaabbbb-0000-cccc-1111-dddd2222eeee

  4. Select Save. :::image type="content" source="media/privileged-identity-management-custom-extensions/app-registration-expose-api.png" alt-text="Screenshot of the app registration to expose API page." lightbox="media/privileged-identity-management-custom-extensions/app-registration-expose-api.png":::

When PIM calls your custom extension REST API, it sends an HTTP Authorization header with a bearer token issued by Microsoft Entra ID. Implement the following token validation checks in your API:

  • Calling application claim - Validate that the appid claim (for V1 tokens) or azp claim (for V2 tokens) contains the value 1c67c054-65c8-4f7f-92a1-eb7ba6e4862700001111-aaaa-2222-bbbb-3333cccc4444. This value identifies Microsoft Entra Privileged Identity Management as the caller.

  • Audience claim - Validate that the aud claim contains the Application ID URI you configured for your app registration.

  • Issuer claim - Validate that the iss claim contains the Microsoft Entra issuer URL for your tenant: https://login.microsoftonline.com/{tenantId}/v2.0.

    }, "authenticationConfiguration": { "@odata.type": "#microsoft.graph.azureAdTokenAuthentication", "resourceId": "api://api.contoso.com/00001111-aaaa-2222-bbbb-3333cccc4444aaaabbbb-0000-cccc-1111-dddd2222eeee" }, "resourceType": "entraGroups", "customAttributes": []

Daily Entra.News

Get daily email updates

Get a concise summary of the latest Microsoft Entra updates delivered straight to your inbox.

Loading the secure signup form…