大网数据广告活动
域与目录服务

The requested federation realm object does not exist when authentication fails

· 52CE 我爱测

Describes and provides a resolution for an error that occurs when Authentication fails with an error stating 'The requested federation realm object '' does not exist'.

Authentication fails with the error "The requested federation realm object '< Object ID >' does not exist" for users who are part of domain that is federated with a third party identity provider in either Microsoft Entra ID or Microsoft 365.

This failure happens when the third Party identity provider returns the wrong IssuerURI within the Issuer field in the Security Assertion Markup Language (SAML) response.

Resolution 1

Contact the support team for the third party identity provider and have them correct the IssuerURI, returned as Issuer, in the SAML the response returned to either Microsoft Entra ID or Microsoft 365, through the client.

Resolution 2

Use the command Set-MsolDomainFederationSettings to modify the IssuerURI of the federated domain to match the realm object listed in the error.

  1. Connect to Microsoft Entra ID using the MSONLINE module. To check that the module is installed, open PowerShell and execute the get-module MSONLINE -ListAvailable command.

  2. Follow the steps outlined in Install the Azure AD module to install the module.

  3. Run the following commands to verify the preferred authentication protocol of the federated domain.

    $federationSettings=Get-MsolDomainFederationSettings -DomainName domain.com
    
    $federationSettings.PreferredAuthenticationProtocol
    
  4. If the PreferredAuthenticationProtocol value listed in step 3 is shown as WSFED, run the following command to update the IssuerURI.

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

    The necessary IssuerURI value is listed by Microsoft Entra ID in the authentication failure message.

  5. If the PreferredAuthenticationProtocol value listed in step 3 is SAMLP (SAML Protocol), run the following command to update the IssuerURI.

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

    The necessary IssuerURI value is listed by Microsoft Entra ID in the authentication failure message.

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.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 07/30/2021
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。