Summary
This article provides a solution to the Microsoft Entra authentication error AADSTS50107. This error occurs when a guest user attempts to redeem an invitation from a tenant that uses a Security Assertion Markup Language (SAML) external trust.
Symptoms
Consider the following scenario:
- Your tenant has a direct federation trust with an external organization that uses a SAML or WS-Fed identity provider (IdP).
- The external organization invites a user to your tenant as a guest.
- The guest user attempts to redeem the invitation.
In this scenario, the invitation redemption fails with the following error message:
Error: AADSTS50107: The requested federation realm object 'https://abc.contoso.com' does not exist.
Cause
This issue occurs when the issuer URL value in the SAML response doesn't match the one configured in Microsoft Entra ID. The issuer URL in the SAML response corresponds to the URL mentioned in the error message.
Resolution
To resolve this issue, follow these steps:
-
Ensure that the issuer URL in the external IdP matches the one configured in Microsoft Entra ID.
-
Verify or update the issuer URL in Microsoft Entra ID to align with the one in the SAML response.
To verify the issuer URL in Microsoft Entra ID, follow these steps:
- Sign in to the Microsoft Entra admin center as an administrator.
- Select Manage > External Identities.
- Select View all identity providers.
- Under the Custom tab, select the desired SAML trust (such as
Contoso.com). - Select Edit Configuration for the desired SAML trust.
- Check if the issuer URL configured in Microsoft Entra ID matches the
saml:Issuervalue in the SAML response sent by the external IdP.
For more information, see Add federation with SAML/WS-Fed identity providers.
More information
For a full list of Microsoft Entra authentication and authorization error codes, see Microsoft Entra authentication and authorization error codes.
Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
