Unable to configure flexible federated credential with issuer : https://token.actions.abc-xyz.ghe.com

Salman Kadaya 0 Reputation points
2026-04-21T13:42:10.0133333+00:00

While setting flexible federated credential with issuer : https://token.actions.abc-xyz.ghe.com getting attached error so suggest correct way to configure this similar permission. User's image

Microsoft Security | Active Directory Federation Services
0 comments No comments

1 answer

Sort by: Oldest
  1. AI answer

    2026-04-21T13:42:41.24+00:00

    The error occurs because flexible federated identity credentials and claims matching expressions are only available in supported regions/tenants and through supported issuers and APIs. When the feature or expression engine is not enabled for the cloud/region, Microsoft Entra ID returns an error similar to what is shown in the screenshot.

    To configure a similar permission today, use one of the supported approaches for federated identity credentials instead of the flexible (preview) claims-matching expression:

    1. Configure a standard federated identity credential using Other issuer:
      1. In Microsoft Entra admin center, open the target app registration.
      2. Go to Certificates & secretsFederated credentials+ Add credential.
      3. For Federated credential scenario, select Other issuer.
      4. Set Issuer to the external IdP’s OIDC issuer URL (must match the iss claim in its tokens).
      5. Use Explicit subject identifier and set Subject identifier to match the sub claim from the external IdP token (for example, the unique ID of the service account or workload identity).
      6. Save the credential.
    2. If flexible federated identity credentials are required (for example, to use a claims['sub'] matches 'repo:...:ref:refs/heads/*' expression), ensure that:
      • The tenant/region supports flexible federated identity credentials (preview).
      • The issuer is a valid OIDC issuer URL that Entra ID can use to retrieve signing keys.
      • The audience is the single supported audience api://AzureADTokenExchange when creating via Microsoft Graph, as shown in the example:
             {
               "audiences": [
                 "api://AzureADTokenExchange"
               ],
               "issuer": "https://token.actions.githubusercontent.com",
               "name": "MyFlexibleFIC",
               "claimsMatchingExpression": {
                 "value": "claims['sub'] matches 'repo:contoso/contoso-repo:ref:refs/heads/*'",
                 "languageVersion": 1
               }
             }
        
    3. If Azure CLI, Azure PowerShell, or Terraform are being used, do not attempt to manage flexible federated identity credentials directly with their native commands, because they do not yet support this feature. Use Microsoft Graph (or az rest) instead when working with flexible credentials.

    If the tenant’s region does not yet support flexible federated identity credentials, only the standard “Other issuer” configuration with explicit subject identifier can be used until the feature is available.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.