Single sign-on (SSO) lets users sign in to all their enterprise cloud applications using their managed Google account credentials. Google offers pre-integrated SSO with over 200 popular cloud applications.
To set up SAML-based SSO with a custom application not in the pre-integrated catalog, follow the steps below.
Set up your own custom SAML app
-
Sign in to your Google Admin console.
Sign in using an account with super administrator privileges (does not end in @gmail.com).
-
In the Admin console, go to Menu
Apps
Web and mobile apps.
- Click Add App
Add custom SAML app.
- On the App Details page:
- Enter the name of the custom app.
- (Optional) Upload an app icon. The app icon appears on the Web and mobile apps list, on the app settings page, and in the app launcher. If you don't upload an icon, an icon is created using the first two letters of the app name.
- Click Continue.
- On the Google Identity Provider details page, get the setup information needed by the service provider using one of these options:
- Download the IDP metadata.
- Copy the SSO URL and Entity ID and download the Certificate (or SHA-256 fingerprint, if needed).
- (Optional) In a separate browser tab or window, sign in to your service provider and enter the information you copied in Step 4 into the appropriate SSO configuration page, then return to the Admin console.
- Click Continue.
- In the Service Provider Details window, enter:
- ACS URL: The service provider's Assertion Consumer Service URL is responsible for receiving the SAML response and it must start with https://.
- Entity ID: This is a globally unique name that the service provider gives you.
- Start URL: (Optional) This is used to set the RelayState parameter in a SAML Request, which can be a URL to redirect to after authentication.
- (Optional) If your service provider requires the entire SAML authentication response to be signed, check the Signed Response box. If this is unchecked (the default), only the assertion within the response is signed.
- The default Name ID is the primary email. Multi-value input is not supported.
Tip: Check the setup articles in our SAML apps catalog for any Name ID mappings required for apps in the catalog. If needed, you can also create custom attributes, either in the Admin console or via Google Admin SDK APIs, and map to those. You need to create custom attributes before setting up your SAML app.
- Click Continue.
- (Optional) On the Attribute mapping page, click Add another mapping to map additional attributes.
Note: You can define a maximum of 1500 attributes over all apps. Because each app has one default attribute, the total number includes the default attribute plus any custom attributes you add.
- Under Google Directory attributes, click the Select field menu to choose a field name.
Not all Google directory attributes are available in the drop-down list. If an attribute you want to map (for example, Manager's email) is not available, you can add that attribute as a custom attribute, which will make it available here for selection.
- Under App attributes, enter the corresponding attribute for your custom SAML app.
- Under Google Directory attributes, click the Select field menu to choose a field name.
-
(Optional) If you want to send a user’s group membership information in the SAML response, enter the group names that are relevant for this app in the Group membership field.
- Under Google groups, click in the Search for a group entry field.
- Type one or more letters of the group name.
- Choose the group name from the list.
- Add additional groups as needed (total groups cannot exceed 75).
- Under App attribute, enter the service provider’s corresponding groups attribute name.
Note: Regardless of how many group names you enter, the SAML response will only include groups that a user is a member of (directly or indirectly). For more information, see About group membership mapping.
- Click Finish.
Turn on your SAML app
-
Sign in to your Google Admin console.
Sign in using an account with super administrator privileges (does not end in @gmail.com).
-
In the Admin console, go to Menu
Apps
Web and mobile apps.
- Select your SAML app.
-
Click User access.
-
To turn a service on or off for everyone in your organization, click On for everyone or Off for everyone, and then click Save.
-
(Optional) To turn a service on or off for an organizational unit:
- At the left, select the organizational unit.
- To change the Service status, select On or Off.
- Choose one:
- If the Service status is set to Inherited and you want to keep the updated setting, even if the parent setting changes, click Override.
- If the Service status is set to Overridden, either click Inherit to revert to the same setting as its parent, or click Save to keep the new setting, even if the parent setting changes.
Note: Learn more about organizational structure.
-
To turn on a service for a set of users across or within organizational units, select an access group. For details, go to turn on a service for a group.
- Ensure that the email addresses your users use to sign in to the SAML app match the email addresses they use to sign in to your Google domain.
Verify that SSO is working with your custom app
You can test both Identity Provider (IdP) initiated SSO, and (if your app supports it) Service Provider (SP) initiated SSO.
IdP-initiated
-
Sign in to your Google Admin console.
Sign in using an account with super administrator privileges (does not end in @gmail.com).
-
In the Admin console, go to Menu
Apps
Web and mobile apps.
- Select your custom SAML app.
- At the top left, click Test SAML login.
Your app should open in a separate tab. If it doesn’t, use the information in the resulting SAML app error messages to update your IdP and SP settings as needed, then retest SAML login.
SP-initiated
- Open the SSO URL for your new SAML app. You should be automatically redirected to the Google sign-in page.
- Enter your username and password.
After your sign-in credentials are authenticated, you're automatically redirected back to your new SAML app.
Configure a pre-integrated cloud application
Google offers pre-integrated SSO for over 200 cloud applications. To configure a pre-integrated application:
-
Sign in to your Google Admin console.
Sign in using an account with super administrator privileges (does not end in @gmail.com).
-
In the Admin console, go to Menu
Apps
Web and mobile apps.
-
Click Add app
Search for apps.
- Enter the SAML app name in the search field.
- In the search results, hover over the SAML app and click Select.
- Follow the steps in the wizard to configure SSO for the app.