Federated identity management using Active Directory Federation Services
We had the same issue. Microsoft support had no idea what was going on, but the issue results from:
- A bug in the Microsoft Graph API which marks a domain as federated prior to a federation configuration being made. When the configuration is invalid when the underlying internal API call is made, there is no failsafe. This makes it impossible for the Graph API to ever update, delete or
- Entra ID federation identifies a configuration by the
entityID. With Google Workspace, this is always the same, as it's linked to your tenant.
Because of this, you may find your config worked for one domain, but running it again resulted in this 409 error:
New-MgDomainFederationConfiguration_CreateExpanded: Resource already exists.
Status: 409 (Conflict)
ErrorCode: Request_MultipleObjectsWithSameKeyValue
Date: 2024-12-23T15:13:51
If you cannot use Update-MgDomain -DomainId <domain name> -AuthenticationType "Managed" to reset the configuration (due to the bug in the Graph API), use Windows Powershell (not Powershell core) and run:
Install-Module MSOnline
Connect-MsolService
Set-MsolDomainAuthentication -DomainName <domain> -Authentication Managed
To fix the issue:
Open your SAML configuration XML file and find every URL. Change the last part of the string for each subsequent domain: &a
For Google Workspace, it might look like this:
https://accounts.google.com/o/saml2?idpid=xxxxxxxx
Then, append &a to the end, like this (or any string you like)
https://accounts.google.com/o/saml2?idpid=xxxxxxxx&a
This will resolve the duplication issue, and you'll be able to create the configuration.
Hope this helped.