Microsoft 365 sign-in (Entra ID)

AADSTS50107: the requested federation realm object does not exist

AADSTS50107 means the issuer in a SAML or WS-Fed response does not match what Microsoft Entra ID has configured. How to compare the issuer URL and fix it.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

AADSTS50107 means Microsoft Entra ID received a federated sign-in and could not match it to a federation it knows. The reference describes it as an application error: the login request was malformed and could not be matched with an existing authentication endpoint or instance. The message names the federation realm object that was requested, and Microsoft explains that this name is the issuer URL sent in the SAML response.

Microsoft documents two scenarios. In the first, your tenant has a direct federation trust with an external organization that uses a SAML or WS-Fed identity provider (IdP), that organization's user is invited as a guest, and redeeming the invitation fails with AADSTS50107. In the second, users of a domain federated with a third-party identity provider cannot sign in to Microsoft Entra ID or Microsoft 365, and see "The requested federation realm object does not exist".

Common causes

  • For guest redemption: the issuer URL in the SAML response does not match the issuer configured for the SAML/WS-Fed trust in Microsoft Entra ID.
  • For a federated domain: the third-party identity provider returns the wrong IssuerURI in the Issuer field of the SAML response.

How to fix it

1. Note the issuer URL from the error

Copy the URL in quotes from the error message. Microsoft states that this is the issuer value sent by the identity provider, and it is the value you compare against Microsoft Entra ID in the next steps.

2. Check the issuer of a SAML/WS-Fed guest trust

Sign in to the Microsoft Entra admin center as an administrator and select Manage, External Identities, then View all identity providers. Under the Custom tab, select the SAML trust for the partner, then Edit Configuration. Check whether the issuer URL configured in Microsoft Entra ID matches the saml:Issuer value in the SAML response.

3. Align the issuer on one side

Microsoft's fix is to make sure the issuer URL in the external IdP matches the one in Microsoft Entra ID, or to verify or update the issuer URL in Microsoft Entra ID so it aligns with the SAML response. Agree with the partner which side is correct before changing it, then ask the guest to redeem the invitation again.

4. For a federated domain, have the IdP send the right IssuerURI

When your own users of a federated domain see the error, Microsoft's first resolution is to contact the support team of the third-party identity provider and have them correct the IssuerURI returned as Issuer in the SAML response.

5. Or update the domain's IssuerUri in Microsoft Entra ID

Microsoft's second resolution updates the federated domain to use the IssuerURI listed in the authentication failure message. Its article uses the MSOnline module and also warns that the Azure AD and MSOnline PowerShell modules are deprecated and recommends Microsoft Graph PowerShell. The documented command is:

Set-MsolDomainFederationSettings -DomainName domain.com -IssuerUri "value of federated realm object listed in the authentication failure message"

If nothing works

As a general step, capture the SAML response, for example with an HTTP trace, and read the saml:Issuer value directly instead of relying on the identity provider's configuration screen. Compare it character by character with the configured value, including any trailing slash and the http or https prefix.

What we checked

Three Microsoft Learn pages were read on 2026-11-21. The Microsoft Entra error code reference defines AADSTS50107 as a federation realm object that does not exist. The guest redemption article covers the SAML/WS-Fed trust scenario, the issuer URL cause and the External Identities steps. The federation realm troubleshooting article covers federated domains, the wrong IssuerURI cause and the Set-MsolDomainFederationSettings fix. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does AADSTS50107 mean?

Microsoft Entra ID received a federated sign-in whose issuer value does not match any federation it has configured, so it reports that the requested federation realm object does not exist.

Where does the URL in the AADSTS50107 message come from?

Microsoft says the issuer URL in the SAML response corresponds to the URL mentioned in the error message. It is the value the external identity provider sent.

Who has to fix AADSTS50107?

An administrator, either in Microsoft Entra ID (the configured issuer URL of the SAML/WS-Fed trust or federated domain) or at the identity provider, which must send the correct issuer. The user cannot fix it.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.