Tutorial: Azure AD SSO integration with Google Cloud / G Suite Connector by Microsoft

In this tutorial, you'll learn how to integrate Google Cloud / G Suite Connector by Microsoft with Azure Active Directory (Azure AD). When you integrate Google Cloud / G Suite Connector by Microsoft with Azure AD, you can:

  • Control in Azure AD who has access to Google Cloud / G Suite Connector by Microsoft.
  • Enable your users to be automatically signed-in to Google Cloud / G Suite Connector by Microsoft with their Azure AD accounts.
  • Manage your accounts in one central location - the Azure portal.

Prerequisites

To get started, you need the following items:

  • An Azure AD subscription.
  • Google Cloud / G Suite Connector by Microsoft single sign-on (SSO) enabled subscription.
  • A Google Apps subscription or Google Cloud Platform subscription.

Note

To test the steps in this tutorial, we do not recommend using a production environment. This document was created using the new user Single-Sign-on experience. If you are still using the old one, the setup will look different. You can enable the new experience in the Single Sign-on settings of G-Suite application. Go to Azure AD, Enterprise applications, select Google Cloud / G Suite Connector by Microsoft, select Single Sign-on and then click on Try out our new experience.

To test the steps in this tutorial, you should follow these recommendations:

  • Do not use your production environment, unless it is necessary.
  • If you don't have a subscription, you can get a free account.

Frequently Asked Questions

  1. Q: Does this integration support Google Cloud Platform SSO integration with Azure AD?

    A: Yes. Google Cloud Platform and Google Apps share the same authentication platform. So to do the GCP integration you need to configure the SSO with Google Apps.

  2. Q: Are Chromebooks and other Chrome devices compatible with Azure AD single sign-on?

    A: Yes, users are able to sign into their Chromebook devices using their Azure AD credentials. See this Google Cloud / G Suite Connector by Microsoft support article for information on why users may get prompted for credentials twice.

  3. Q: If I enable single sign-on, will users be able to use their Azure AD credentials to sign into any Google product, such as Google Classroom, GMail, Google Drive, YouTube, and so on?

    A: Yes, depending on which Google Cloud / G Suite Connector by Microsoft you choose to enable or disable for your organization.

  4. Q: Can I enable single sign-on for only a subset of my Google Cloud / G Suite Connector by Microsoft users?

    A: Yes, the SSO profiles can be selected per User, Organizational Unit or Group in the Google Workspace.

    Screenshot for SSO profile assignment.

    Select the SSO profile as "none" for the Google Workspace group. This prevents members of this (Google Workspace group) from being redirected to Azure AD for logon.

  5. Q: If a user is signed in through Windows, are they automatically authenticate to Google Cloud / G Suite Connector by Microsoft without getting prompted for a password?

    A: There are two options for enabling this scenario. First, users could sign into Windows 10 devices via Azure Active Directory Join. Alternatively, users could sign into Windows devices that are domain-joined to an on-premises Active Directory that has been enabled for single sign-on to Azure AD via an Active Directory Federation Services (AD FS) deployment. Both options require you to perform the steps in the following tutorial to enable single sign-on between Azure AD and Google Cloud / G Suite Connector by Microsoft.

  6. Q: What should I do when I get an "invalid email" error message?

    A: For this setup, the email attribute is required for the users to be able to sign-in. This attribute cannot be set manually.

    The email attribute is autopopulated for any user with a valid Exchange license. If user is not email-enabled, this error will be received as the application needs to get this attribute to give access.

    You can go to portal.office.com with an Admin account, then click in the Admin center, billing, subscriptions, select your Microsoft 365 Subscription and then click on assign to users, select the users you want to check their subscription and in the right pane, click on edit licenses.

    Once the Microsoft 365 license is assigned, it may take some minutes to be applied. After that, the user.mail attribute will be autopopulated and the issue should be resolved.

Scenario description

In this tutorial, you configure and test Azure AD SSO in a test environment.

  • Google Cloud / G Suite Connector by Microsoft supports SP initiated SSO.

  • Google Cloud / G Suite Connector by Microsoft supports Automated user provisioning.

To configure the integration of Google Cloud / G Suite Connector by Microsoft into Azure AD, you need to add Google Cloud / G Suite Connector by Microsoft from the gallery to your list of managed SaaS apps.

  1. Sign in to the Azure portal using either a work or school account, or a personal Microsoft account.
  2. On the left navigation pane, select the Azure Active Directory service.
  3. Navigate to Enterprise Applications and then select All Applications.
  4. To add new application, select New application.
  5. In the Add from the gallery section, type Google Cloud / G Suite Connector by Microsoft in the search box.
  6. Select Google Cloud / G Suite Connector by Microsoft from results panel and then add the app. Wait a few seconds while the app is added to your tenant.

Alternatively, you can also use the Enterprise App Configuration Wizard. In this wizard, you can add an application to your tenant, add users/groups to the app, assign roles, as well as walk through the SSO configuration as well. Learn more about Microsoft 365 wizards.

Alternatively, you can also use the Enterprise App Configuration Wizard. In this wizard, you can add an application to your tenant, add users/groups to the app, assign roles, as well as walk through the SSO configuration as well. You can learn more about O365 wizards here.

Configure and test Azure AD single sign-on for Google Cloud / G Suite Connector by Microsoft

Configure and test Azure AD SSO with Google Cloud / G Suite Connector by Microsoft using a test user called B.Simon. For SSO to work, you need to establish a link relationship between an Azure AD user and the related user in Google Cloud / G Suite Connector by Microsoft.

To configure and test Azure AD SSO with Google Cloud / G Suite Connector by Microsoft, perform the following steps:

  1. Configure Azure AD SSO - to enable your users to use this feature.
    1. Create an Azure AD test user - to test Azure AD single sign-on with B.Simon.
    2. Assign the Azure AD test user - to enable B.Simon to use Azure AD single sign-on.
  2. Configure Google Cloud/G Suite Connector by Microsoft SSO - to configure the single sign-on settings on application side.
    1. Create Google Cloud/G Suite Connector by Microsoft test user - to have a counterpart of B.Simon in Google Cloud / G Suite Connector by Microsoft that is linked to the Azure AD representation of user.
  3. Test SSO - to verify whether the configuration works.

Configure Azure AD SSO

Follow these steps to enable Azure AD SSO in the Azure portal.

  1. In the Azure portal, on the Google Cloud / G Suite Connector by Microsoft application integration page, find the Manage section and select single sign-on.

  2. On the Select a single sign-on method page, select SAML.

  3. On the Set up single sign-on with SAML page, click the pencil icon for Basic SAML Configuration to edit the settings.

    Edit Basic SAML Configuration

  4. On the Basic SAML Configuration section, if you want to configure for the Gmail perform the following steps:

    a. In the Identifier textbox, type a URL using one of the following patterns:

    Identifier
    google.com/a/<yourdomain.com>
    google.com
    https://google.com
    https://google.com/a/<yourdomain.com>

    b. In the Reply URL textbox, type a URL using one of the following patterns:

    Reply URL
    https://www.google.com
    https://www.google.com/a/<yourdomain.com>

    c. In the Sign on URL textbox, type a URL using the following pattern: https://www.google.com/a/<yourdomain.com>/ServiceLogin?continue=https://mail.google.com

  5. On the Basic SAML Configuration section, if you want to configure for the Google Cloud Platform perform the following steps:

    a. In the Identifier textbox, type a URL using one of the following patterns:

    Identifier
    google.com/a/<yourdomain.com>
    google.com
    https://google.com
    https://google.com/a/<yourdomain.com>

    b. In the Reply URL textbox, type a URL using one of the following patterns:

    Reply URL
    https://www.google.com/acs
    https://www.google.com/a/<yourdomain.com>/acs

    c. In the Sign on URL textbox, type a URL using the following pattern: https://www.google.com/a/<yourdomain.com>/ServiceLogin?continue=https://console.cloud.google.com

    Note

    These values are not real. Update these values with the actual Identifier,Reply URL and Sign on URL. Google Cloud / G Suite Connector by Microsoft doesn't provide Entity ID/Identifier value on Single Sign On configuration so when you uncheck the domain specific issuer option the Identifier value will be google.com. If you check the domain specific issuer option it will be google.com/a/<yourdomainname.com>. To check/uncheck the domain specific issuer option you need to go to the Configure Google Cloud / G Suite Connector by Microsoft SSO section which is explained later in the tutorial. For more information contact Google Cloud / G Suite Connector by Microsoft Client support team.

  6. Your Google Cloud / G Suite Connector by Microsoft application expects the SAML assertions in a specific format, which requires you to add custom attribute mappings to your SAML token attributes configuration. The following screenshot shows an example for this. The default value of Unique User Identifier is user.userprincipalname but Google Cloud / G Suite Connector by Microsoft expects this to be mapped with the user's email address. For that you can use user.mail attribute from the list or use the appropriate attribute value based on your organization configuration.

    image

    Note

    Ensure that the the SAML Response doesn't include any non-standard ASCII characters in the DisplayName and Surname attributes.

  7. On the Set up single sign-on with SAML page, in the SAML Signing Certificate section, find Certificate (Base64) and select Download to download the certificate and save it on your computer.

    The Certificate download link

  8. On the Set up Google Cloud / G Suite Connector by Microsoft section, copy the appropriate URL(s) based on your requirement.

    Copy configuration URLs

    https://login.microsoftonline.com/common/wsfederation?wa=wsignout1.0
    

Create an Azure AD test user

In this section, you'll create a test user in the Azure portal called B.Simon.

  1. From the left pane in the Azure portal, select Azure Active Directory, select Users, and then select All users.
  2. Select New user at the top of the screen.
  3. In the User properties, follow these steps:
    1. In the Name field, enter B.Simon.
    2. In the User name field, enter the username@companydomain.extension. For example, B.Simon@contoso.com.
    3. Select the Show password check box, and then write down the value that's displayed in the Password box.
    4. Click Create.

Assign the Azure AD test user

In this section, you'll enable B.Simon to use Azure single sign-on by granting access to Google Cloud / G Suite Connector by Microsoft.

  1. In the Azure portal, select Enterprise Applications, and then select All applications.
  2. In the applications list, select Google Cloud / G Suite Connector by Microsoft.
  3. In the app's overview page, find the Manage section and select Users and groups.
  4. Select Add user, then select Users and groups in the Add Assignment dialog.
  5. In the Users and groups dialog, select B.Simon from the Users list, then click the Select button at the bottom of the screen.
  6. If you are expecting a role to be assigned to the users, you can select it from the Select a role dropdown. If no role has been set up for this app, you see "Default Access" role selected.
  7. In the Add Assignment dialog, click the Assign button.

Configure Google Cloud/G Suite Connector by Microsoft SSO

  1. Open a new tab in your browser, and sign into the Google Cloud / G Suite Connector by Microsoft Admin Console using your administrator account.

  2. Go to the Menu -> Security -> Authentication -> SSO with third party IDP.

    G suite security page.

  3. Perform the following configuration changes in the Third-party SSO profile for your organization tab:

    Configure SSO.

    a. Turn ON the SSO profile for your organization.

    b. In the Sign-in page URL field in Google Cloud / G Suite Connector by Microsoft, paste the value of Login URL which you have copied from Azure portal.

    c. In the Sign-out page URL field in Google Cloud / G Suite Connector by Microsoft, paste the value of Logout URL which you have copied from Azure portal.

    d. In Google Cloud / G Suite Connector by Microsoft, for the Verification certificate, upload the certificate that you have downloaded from Azure portal.

    e. Check/Uncheck the Use a domain specific issuer option as per the note mentioned in the above Basic SAML Configuration section in the Azure AD.

    f. In the Change password URL field in Google Cloud / G Suite Connector by Microsoft, enter the value as https://account.activedirectory.windowsazure.com/changepassword.aspx

    g. Click Save.

Create Google Cloud/G Suite Connector by Microsoft test user

The objective of this section is to create a user in Google Cloud / G Suite Connector by Microsoft called B.Simon. After the user has manually been created in Google Cloud / G Suite Connector by Microsoft, the user will now be able to sign in using their Microsoft 365 login credentials.

Google Cloud / G Suite Connector by Microsoft also supports automatic user provisioning. To configure automatic user provisioning, you must first configure Google Cloud / G Suite Connector by Microsoft for automatic user provisioning.

Note

Make sure that your user already exists in Google Cloud / G Suite Connector by Microsoft if provisioning in Azure AD has not been turned on before testing Single Sign-on.

Note

If you need to create a user manually, contact the Google support team.

Test SSO

In this section, you test your Azure AD single sign-on configuration with following options.

  • Click on Test this application in Azure portal. This will redirect to Google Cloud / G Suite Connector by Microsoft Sign-on URL where you can initiate the login flow.

  • Go to Google Cloud / G Suite Connector by Microsoft Sign-on URL directly and initiate the login flow from there.

  • You can use Microsoft My Apps. When you click the Google Cloud / G Suite Connector by Microsoft tile in the My Apps, this will redirect to Google Cloud / G Suite Connector by Microsoft Sign-on URL. For more information about the My Apps, see Introduction to the My Apps.

Next steps

Once you configure Google Cloud / G Suite Connector by Microsoft you can enforce Session Control, which protects exfiltration and infiltration of your organization’s sensitive data in real time. Session Control extends from Conditional Access. Learn how to enforce session control with Microsoft Defender for Cloud Apps.