Restrictions on identifier URIs of Microsoft Entra applications
In brief
The documentation replaces script-based instructions with Microsoft Entra admin center steps to review and manage identifier URI restrictions, including status, scope, enforcement/report mode, and exceptions.
What Entra admins need to know
Administrators can use Application policies in the admin center to check policy state and manage protections or scoped exceptions.
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.
Enabling and managing the policy
Microsoft maymight have already enabled this policy in your organization to improve its security. Check its configuration in the Microsoft Entra admin center:
- Open Application policies in the Microsoft Entra admin center. You can
check by running this scriptalso browse to Entra ID > Enterprise apps > Application policies. - Under Identifier URI restrictions, select Block identifier URIs without unique tenant identifiers. This setting corresponds to the
uriAdditionWithoutUniqueTenantIdentifierrestriction. - Review Status to see whether the policy is on. Review Applies to, any exclusions, and Only apply to apps created after to understand its scope.
If Mode is shown, Enforce mode (block operations) enforces the restriction, while Report mode (log but don't block) only logs operations.
Even if Microsoft enabled the policy inpolicy, your organization, a tenant administrator still has fullretains control over it. They can grant exemptionsUse the Microsoft Entra admin center instructions in Configure app management policies, including its prerequisites. Select Block identifier URIs without unique tenant identifiers when following those instructions:
- Enable a restriction for all applications to turn on the protection (recommended).
- Grant an exception to an application to exclude a specific
Microsoft Entra application,app. - Grant an exception to a user or service to
themselves,exclude calls made by a user or service principal. This procedure requires additional roles.
To disable the protection, set Status to another user in the organization, or to any service or process the organization uses. Or, an administrator can disable the policyOff and save your changes (not recommended). Prefer a scoped exception for a blocked business scenario.
Microsoft won't enable the policy in your organization if it detects your organization has processes that might be disrupted by the change. Instead, anAn administrator in your organization can enable it themselves (recommended).enable it using the same admin-center instructions.
Guidance for developers
:::image type="content" source="media/identifier-uri-restrictions/update-access-token-version-cropped.png" alt-text="Screenshot of update token version experience." lightbox="media/identifier-uri-restrictions/update-access-token-version.png":::
However, you should **proceed with caution when making this change**. This is because once the app has been updated to the v2.0 token format, it won't be able to switch back to v1.0 tokens if it has noncompliant identifier URIs configured, unless it's been granted an exemption (see option 3).
- If you need to add a noncompliant identifier URI to your app before you're able to update to the v2.0 token format,
you can requestask your administrator togrant your app an exemptiongrant your app an exception using the Microsoft Entra admin center. For this policy, select Block identifier URIs without unique tenant identifiers.
Additional security settings
- The identifier URI being added to the app is one of the 'default' URIs, meaning it is in the format of
api://{appId}orapi://{tenantId}/{appId} - The app accepts
v2.0Entra tokens. This is true if the app'sapi.requestedAccessTokenVersionproperty is set to2. - The app uses the SAML protocol for single sign-on (SSO). This is true if the service principal for the app has its
preferredSingleSignOnModeproperty set toSAML. - An
exemptionadministrator hasbeengrantedbyanadministrator to the app the URI is being added to,exception to the app, or to theuser or service performing the addition.user or service performing the addition.
Once this protection is enabled, if anyone in your organization attempts to add a custom identifier URI to a v1 application, they'll receive an error like:
This more restrictive policy can help protect your organization from common token validation errors in the audience claim. We recommend enabling it if possible, but Microsoft won't enable it on your behalf.
To enablecheck or manage this more restrictive policyrestriction, open Application policies in the Microsoft Entra admin center. Under Identifier URI restrictions, select Block custom identifier URIs. Review Status and the scope settings as described in your organization, you can run this scriptEnabling and managing the policy.
LikeFollow the other policy, administrators can also grant exemptionsMicrosoft Entra admin center instructions to enable the restriction, grant an app an exception, or grant a user or service an exception. Select Block custom identifier URIs for this policy, or disable it after it's been enabled.restriction. To disable it, set Status to Off and save your changes (not recommended).
FAQ
How do these policies work?
The enforcementsrestrictions are turned on by configuring anconfigured through your organization's app management policiesapp management policies. A tenantAn administrator can check their status, turn itthem on or off. Microsoft is enabling it by default in some organizations during the months of Juneoff, and July 2025.
Learn how to check if the protection has been enabled in your organization
Even though Microsoft is enabling this setting by default, tenant administrators retain control over it. They can turn it on, off, or grant exceptions in Application policies in the Microsoft Entra admin center.
For the policy names and where to it.check their configuration, see Enabling and managing the policy and Additional security settings.
Why am I hitting this error when configuring my SAML application?
@@ -1,9 +1,10 @@ --- title: Restrictions on identifier URIs of Microsoft Entra applications description: Understand why an app management policy may block the addition of an identifier URI, and learn more about the policy and the restrictions it enforces on identifier URIs-ms.date: 1/29/2025+ms.date: 12/05/2026 ms.service: identity-platform ms.topic: concept-article+ai-usage: ai-assisted #Customer intent: As a developer integrating with the Microsoft identity platform, I want to understand why an app management policy blocked the addition of an identifier URI I tried to add, and learn more about the policy and the restrictions it enforces on identifier URIs. --- @@ -33,11 +34,23 @@ When it isn't enabled, some insecure patterns can still be used. For example, UR ### Enabling and managing the policy -Microsoft may have already enabled this policy in your organization to improve its security. You can check by running [this script](https://aka.ms/check-identifier-uri-protection-state).+Microsoft might have already enabled this policy in your organization to improve its security. Check its configuration in the Microsoft Entra admin center: -Even if Microsoft enabled the policy in your organization, a tenant administrator still has full control over it. They can [grant exemptions](https://aka.ms/identifier-uri-protection-grant-exemptions) to a specific Microsoft Entra application, to themselves, to another user in the organization, or to any service or process the organization uses. Or, an administrator can [disable the policy](https://aka.ms/disable-identifier-uri-protection) (**not recommended**).+1. Open [Application policies in the Microsoft Entra admin center](https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/AppPolicies.ReactView). You can also browse to **Entra ID** > **Enterprise apps** > **Application policies**.+1. Under **Identifier URI restrictions**, select **Block identifier URIs without unique tenant identifiers**. This setting corresponds to the `uriAdditionWithoutUniqueTenantIdentifier` restriction.+1. Review **Status** to see whether the policy is on. Review **Applies to**, any exclusions, and **Only apply to apps created after** to understand its scope. -Microsoft won't enable the policy in your organization if it detects your organization has processes that might be disrupted by the change. Instead, an administrator in your organization can [enable it themselves](https://aka.ms/enable-identifier-uri-protection) (**recommended**).+If **Mode** is shown, **Enforce mode (block operations)** enforces the restriction, while **Report mode (log but don't block)** only logs operations.++Even if Microsoft enabled the policy, your administrator retains control over it. Use the **Microsoft Entra admin center** instructions in [Configure app management policies](~/identity/enterprise-apps/configure-app-management-policies.md), including its [prerequisites](~/identity/enterprise-apps/configure-app-management-policies.md#prerequisites). Select **Block identifier URIs without unique tenant identifiers** when following those instructions:++- [Enable a restriction for all applications](~/identity/enterprise-apps/configure-app-management-policies.md#enable-a-restriction-for-all-applications) to turn on the protection (**recommended**).+- [Grant an exception to an application](~/identity/enterprise-apps/configure-app-management-policies.md#grant-an-exception-to-an-application) to exclude a specific app.+- [Grant an exception to a user or service](~/identity/enterprise-apps/configure-app-management-policies.md#grant-an-exception-to-a-user-or-service) to exclude calls made by a user or service principal. This procedure requires additional roles.++To disable the protection, set **Status** to **Off** and save your changes (**not recommended**). Prefer a scoped exception for a blocked business scenario.++Microsoft won't enable the policy in your organization if it detects processes that might be disrupted by the change. An administrator can enable it using the same admin-center instructions. ### Guidance for developers @@ -51,7 +64,7 @@ There are three possible ways that you can add an identifier URI to your app. We :::image type="content" source="media/identifier-uri-restrictions/update-access-token-version-cropped.png" alt-text="Screenshot of update token version experience." lightbox="media/identifier-uri-restrictions/update-access-token-version.png"::: However, you should **proceed with caution when making this change**. This is because once the app has been updated to the v2.0 token format, it won't be able to switch back to v1.0 tokens if it has noncompliant identifier URIs configured, unless it's been granted an exemption (see option 3).-1. If you need to add a noncompliant identifier URI to your app before you're able to update to the v2.0 token format, you can request your administrator to [grant your app an exemption](https://aka.ms/identifier-uri-protection-grant-exemptions).+1. If you need to add a noncompliant identifier URI to your app before you're able to update to the v2.0 token format, ask your administrator to [grant your app an exception using the Microsoft Entra admin center](~/identity/enterprise-apps/configure-app-management-policies.md#grant-an-exception-to-an-application). For this policy, select **Block identifier URIs without unique tenant identifiers**. ## Additional security settings @@ -62,7 +75,7 @@ When this protection is enabled, new custom identifier URIs can't be added to an - The identifier URI being added to the app is one of the 'default' URIs, meaning it is in the format of `api://{appId}` or `api://{tenantId}/{appId}` - The app accepts `v2.0` Entra tokens. This is true if the app's `api.requestedAccessTokenVersion` property is set to `2`. - The app uses the SAML protocol for single sign-on (SSO). This is true if the service principal for the app has its `preferredSingleSignOnMode` property set to `SAML`.-- An [exemption](https://aka.ms/exempt-identifier-uri-additional-restriction) has been granted by an administrator to the app the URI is being added to, or to the user or service performing the addition.+- An administrator has granted an [exception to the app](~/identity/enterprise-apps/configure-app-management-policies.md#grant-an-exception-to-an-application), or to the [user or service performing the addition](~/identity/enterprise-apps/configure-app-management-policies.md#grant-an-exception-to-a-user-or-service). Once this protection is enabled, if anyone in your organization attempts to add a custom identifier URI to a v1 application, they'll receive an error like: @@ -70,9 +83,9 @@ Once this protection is enabled, if anyone in your organization attempts to add This more restrictive policy can help protect your organization from common token validation errors in the `audience` claim. We recommend enabling it if possible, but Microsoft won't enable it on your behalf. -To enable this more restrictive policy in your organization, you can run [this script](https://aka.ms/enable-identifier-uri-additional-restriction).+To check or manage this restriction, open [Application policies in the Microsoft Entra admin center](https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/AppPolicies.ReactView). Under **Identifier URI restrictions**, select **Block custom identifier URIs**. Review **Status** and the scope settings as described in [Enabling and managing the policy](#enabling-and-managing-the-policy). -Like the other policy, administrators can also [grant exemptions](https://aka.ms/exempt-identifier-uri-additional-restriction) to this policy, or [disable it](https://aka.ms/disable-identifier-uri-additional-restriction) after it's been enabled.+Follow the **Microsoft Entra admin center** instructions to [enable the restriction](~/identity/enterprise-apps/configure-app-management-policies.md#enable-a-restriction-for-all-applications), [grant an app an exception](~/identity/enterprise-apps/configure-app-management-policies.md#grant-an-exception-to-an-application), or [grant a user or service an exception](~/identity/enterprise-apps/configure-app-management-policies.md#grant-an-exception-to-a-user-or-service). Select **Block custom identifier URIs** for this restriction. To disable it, set **Status** to **Off** and save your changes (**not recommended**). ## FAQ @@ -86,11 +99,9 @@ Identifier URIs are configured using the 'Expose an API' page in [App registrati ### How do these policies work? -The enforcements are turned on by configuring an organization's [app management policies](/graph/api/resources/applicationauthenticationmethodpolicy?view=graph-rest-beta&preserve-view=true). A tenant administrator can turn it on or off. Microsoft is enabling it by default in some organizations during the months of June and July 2025.--[Learn how to check if the protection has been enabled in your organization](https://aka.ms/check-identifier-uri-protection-state)+The restrictions are configured through your organization's [app management policies](~/identity/enterprise-apps/configure-app-management-policies.md). An administrator can check their status, turn them on or off, and grant exceptions in [Application policies in the Microsoft Entra admin center](https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/AppPolicies.ReactView). -Even though Microsoft is enabling this setting by default, tenant administrators retain control over it. They can turn it on, off, or grant exceptions to it.+For the policy names and where to check their configuration, see [Enabling and managing the policy](#enabling-and-managing-the-policy) and [Additional security settings](#additional-security-settings). ### Why am I hitting this error when configuring my SAML application? 