Add Google as an identity provider
By setting up federation with Google, you can allow customers to sign in to your applications with their own Gmail accounts. After you've added Google as one of your application's sign-in options, on the sign-in page, customers can sign in to Azure AD for customers with a Google account. (Learn more about authentication methods and identity providers for customers.)
Create a Google application
To enable sign-in for customers with a Google account, you need to create an application in Google Developers Console. For more information, see Setting up OAuth 2.0. If you don't already have a Google account, you can sign up at
- Sign in to the Google Developers Console with your Google account credentials.
- Accept the terms of service if you're prompted to do so.
- In the upper-left corner of the page, select the project list, and then select New Project.
- Enter a Project Name, select Create.
- Make sure you're using the new project by selecting the project drop-down in the top-left of the screen. Select your project by name, then select Open.
- Under the Quick access, or in the left menu, select APIs & services and then OAuth consent screen.
- For the User Type, select External and then select Create.
- On the OAuth consent screen, under App information
- Enter a Name for your application.
- Select a User support email address.
- Under the Authorized domains section, select Add domain, and then add
- In the Developer contact information section, enter comma separated emails for Google to notify you about any changes to your project.
- Select Save and Continue.
- From the left menu, select Credentials
- Select Create credentials, and then OAuth client ID.
- Under Application type, select Web application.
- Enter a suitable Name for your application, such as "Azure AD for customers."
- In Valid OAuth redirect URIs, enter the following URIs, replacing
<tenant-ID>with your customer tenant ID and
<tenant-name>with your customer tenant name:
To find your customer tenant ID, go to the Microsoft Entra admin center. Under Azure Active Directory, select Overview. Then select the Overview tab and copy the Tenant ID.
- Select Create.
- Copy the values of Client ID and Client secret. You need both values to configure Google as an identity provider in your tenant. Client secret is an important security credential.
In some cases, your app might require verification by Google (for example, if you update the application logo). For more information, check out the Google's verification status guid.
Configure Google federation in Azure AD for customers
After you create the Google application, in this step you set the Google client ID and client secret in Azure AD. You can use the Microsoft Entra admin center or PowerShell to do so. To configure Google federation in the Microsoft Entra admin center, follow these steps:
Sign in to the Microsoft Entra admin center as the global administrator of your customer tenant.
Go to Azure Active Directory > External Identities > All identity providers.
Select + Google.
Enter a Name. For example, Google.
For the Client ID, enter the Client ID of the Google application that you created earlier.
For the Client secret, enter the Client Secret that you recorded.
To configure Google federation by using PowerShell, follow these steps:
Install the latest version of the Azure AD PowerShell for Graph module (AzureADPreview).
Run the following command:
At the sign-in prompt, sign in with the managed Global Administrator account.
Run the following command:
New-AzureADMSIdentityProvider -Type Google -Name Google -ClientId <client ID> -ClientSecret <client secret>
Use the client ID and client secret from the app you created in Create a Google application step.
Add Google identity provider to a user flow
At this point, the Google identity provider has been set up in your Azure AD, but it's not yet available in any of the sign-in pages. To add the Google identity provider to a user flow:
In your customer tenant, go to Azure Active Directory > External Identities > User flows.
Select the user flow where you want to add the Facebook identity provider.
Under Settings, select Identity providers
Under Other Identity Providers, select Google.
Submit and view feedback for