Office 365 cloud application

Using Security Assertion Markup Language (SAML), your users can use their Google Cloud credentials to sign in to enterprise-cloud applications.

Set up SSO via SAML for Microsoft Office 365

Here's how to set up single sign-on (SSO) via SAML for the Microsoft Office 365 application.

Step 1: Get Google identity provider (IdP) information
  1. Sign in to your Google Admin console.

    Sign in using your administrator account (does not end in @gmail.com).

  2. From the Admin console Home page, go to Securityand thenSet up single sign-on (SSO) for SAML applications.

    You must be signed in as a super administrator for this task.

  3. In the Set up single sign-on (SSO) section, do either of the following, depending on how you want to configure SSO in Microsoft Office 365:
    • Copy and save the SSO URL and Entity ID, and download the Certificate.
    • Download the IDP metadata file.

Next you'll switch to Office 365 to do the setup steps in Step 2. You'll return to the Admin console in Step 3 below to finish SSO configuration.

Step 2: Set up Office 365 as a SAML 2.0 service provider (SP)
  1. In a new browser tab, log into your Office 365 application as an administrator.
  2. Set up a federation of your On-Premises Active Directory and Azure Active Directory.

    You must set up the federation to execute the Active Directory PowerShell commands. Refer to Use a SAML 2.0 Identity Provider (IdP) for Single Sign On for more information.

  3. Using the PowerShell console, set up immutable IDs for your users. Refer to the Microsoft PowerShell documentation for specific instructions.
  4. Using the PowerShell console, configure your federated Active Directory domain with the information you downloaded from Google in Step 1 (either the IDP metadata file, or the certificate file, SSO URL, and Entity ID). Refer to the Microsoft PowerShell documentation for specific instructions.
  5. Proceed to the next section to set up Google as a SAML identity provider (IdP).
Step 3: Set up Google as a SAML identity provider (IdP)
  1. In the Admin console, click Apps SAML apps.
  2. Click Add at the bottom right.
  3. Locate and click Microsoft Office 365 in the application list. The values on the Google IDP Information page automatically populate.
  4. Click Next.

    The Basic information window shows the Application name and Description seen by users.

  5. Click Next.
  6. On the Service Provider Details page:
    1. Check Signed Response.
    2. Set the default Name ID to match the Immutable ID that you configured in Active Directory. Multi-value input is not supported.
      Note: If the Name ID mapping for SSO configuration is not the same as the Immutable ID, you will see an error.
      If you click Continue, your users might not be able to sign in.
      You can click Cancel to change the mapping
    3. Set the NameID format to “persistent”.
  7. Click Next.
  8. On the Attribute Mapping page, set the Select category and Select user field values as follows for the listed attributes:
     
    Application attribute Select category Select user field
    IDPEmail Basic Information Primary Email
  9. Click Finish.
Step 4: Enable the Office 365 app
  1. Sign in to your Admin console.
  2. Go to Apps SAML apps.
  3. Select Office 365.
  4. Click User access.
  5. To turn on or off a service for everyone in your organization, click On for everyone or Off for everyone, and then click Save.

  6. To turn on or off a service only for users in an organizational unit:

    1. At the left, select the organizational unit.
    2. Select On or Off.
    3. To keep the service turned on or off even when the service is turned on or off for the parent organizational unit, click Override.
    4. If the organization's status is already Overridden, choose an option:
      • Inherit—Reverts to the same setting as its parent.
      • Save—Saves your new setting (even if the parent setting changes).

    Learn more about organizational structure.

  7. (Optional) Turn on the service for a group of users.
    Use access groups to turn on a service for specific users within or across your organizational units. Learn more

  8. Ensure that your Office 365 user account email IDs match those in your Google domain.
Step 5: Verify that the SSO is working between Google and Office 365

Office 365 supports both Identity Provider (IdP) initiated and Service Provider (SP) initiated SSO. Follow these steps to verify SSO in either mode:

IdP-initiated

  1. Sign in to your Google Admin console.

    Sign in using your administrator account (does not end in @gmail.com).

  2. From the Admin console Home page, go to Appsand thenSAML apps.
  3. Select Office 365.
  4. At the top left, click Test SAML login

    Office 365 should open in a separate tab. If it doesn’t, use the information in the resulting SAML error messages to update your IdP and SP settings as needed, then retest SAML login.

SP-initiated

  1. Open https://login.microsoftonline.com/.
    You should be automatically redirected to the Google sign in page.
  2. Enter your sign in credentials.
  3. After your sign in credentials are authenticated you will be automatically redirected back to Office 365.
Step 6: Set up auto-provisioning
Google, G Suite, and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.
Was this helpful?
How can we improve it?