You must be signed in as a super administrator for this task.
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 Salesforce
Here's how to set up single sign-on (SSO) via SAML for the Salesforce application.
Note: Before configuring SSO, make sure you've set up your Salesforce subdomain.
Step 1: Set up Google as a SAML identity provider (IdP)-
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 Salesforce in the search field.
- In the search results, hover over the Salesforce SAML app and click Select.
- On the Google Identity Provider details page:
- Copy and save the SSO URL and Entity ID.
- Download the Certificate file.
- Click Continue.
- On the Service provider details section:
- For ACS URL, enter https://{domain specific}.my.salesforce.com, replacing {domain specific} with your Salesforce subdomain..
- Edit the Entity ID and Start URL fields, replacing {domain specific} with your Salesforce subdomain.
- Click Continue.
- (Optional) On the Attribute Mapping page, map Google directory attributes to corresponding application attributes:
- Click Add Mapping.
- Click the Select field menu and select a Google directory attribute.
- Enter the corresponding application attribute under App attributes.
- (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.
- On the Attribute mapping page, click Finish.
- (Optional) Configure auto-provisioning for Salesforce, or click OK to finish setup.
- Sign in to Salesforce with your administrator account.
- Click Setup.
- In the Quick Find box, enter 'Single Sign-On' and click Single Sign-On Settings.
- Under Single Sign-on Settings, click Edit and select the SAML enabled checkbox.
- Click Save.
- In SAML Single Sign-On Settings, click New.
- Enter the following information:
- Name: Google
- API Name: Google
- Issuer: The Entity ID you copied from Google in Step 1 above.
- Identity Provider Certificate: Click Choose File, then select the certificate file you downloaded in Step 1.
- Set Service Provider Initiated Request Binding: HTTP Redirect
- Identity Provider Login URL: The SSO URL you copied in Step 1.
- Click Save.
(Optional) To enable Service Provider-initiated SSO:
- Click Domain Management
My Domain.
- In the Authentication Configuration section, click Edit.
- In Authentication Service area, check 'Google'.
- Click Save.
-
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 Salesforce.
-
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.
-
(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 - Ensure that your Salesforce user account email IDs match those in your Google domain.
Salesforce supports both Identity Provider (IdP) initiated and Service Provider (SP) initiated SSO. Follow these steps to verify SSO in either mode:
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 Salesforce.
- At the top left, click Test SAML login.
Salesforce 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
- Open https://your-domain-name.my.salesforce.com.
- You should be automatically redirected to the Google sign in page.
- Enter your sign in credentials.
- After your sign in credentials are authenticated, you are automatically redirected back to Salesforce.
As a super administrator, you can automatically provision users in the Salesforce application.
Google, Google Workspace, 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.