Azure B2B External Identity using Google Workspace

HK G 516 Reputation points

Sorry for posting this question the 2nd time. I have spend quite a bit of time on this and are really hoping someone to help me with this.

I am setting up an External Identity Provider using Google Workspace on my Azure tenant. The intention is to be able to use the guest account (via invitation) managed from by Google Workspace to sign in to the Office 365 app.
I have read though the B2B Saml federation doc. from Microsoft along with other web references, however I am still unable to get it working. From the saml web\mobile app that I created under the Google workspace, whenever I click on the test saml login, I always got the error: AADSTS50107: The requested federation realm object '' does not exist. The account that is being used to login to Google Workspace has been added to Azure AD as guest.

Here is what I did with the setup.

In Azure
Created an External Identity SAML configuration using the following powershell command.
$federationSettings = New-Object Microsoft.Open.AzureAD.Model.DomainFederationSettings
$federationSettings.PassiveLogOnUri =""
$federationSettings.ActiveLogOnUri = ""
$federationSettings.LogOffUri = ""
$federationSettings.IssuerUri = ""
$federationSettings.SigningCertificate= "signing cert from Google"
$domainName = ""
New-AzureADExternalDomainFederation -ExternalDomainName $domainName -FederationSettings $federationSettings

In Google Workspace
Create an SAML web\mobile app using the Micorosft Office 365 template from their app store.
using the following settings for the app:
ACS URL: (default)
Entity ID: urn:federation:MicrosoftOnline (default)
Enabled signed response
Name ID format: Persistent, Name ID: Basic Information > Primary email
SAML attribute mapping: Primary email > IDPEmail

I added the following txt record in the domain  IN   TXT   DirectFedAuthUrl=

Any help will be much appreciated.

Thank you.

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,752 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,448 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vishal Patel 6 Reputation points

    @HK G where you able to get past this error? I am stuck at the same error for Azure B2b collaboration with Google Workspace IDP

    0 comments No comments