You must be signed in as a super administrator for this task.
With Security Assertion Markup Language (SAML), your users can sign in to enterprise cloud applications with their Google Cloud credentials.
Set up SSO via SAML for Jenkins
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 Jenkins in the search field.
- In the search results, hover over the Jenkins SAML app and click Select.
- On the Google Identity Provider details page, download the IDP metadata.
- Click Continue.
- On the Service provider details page, 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) To enter group names that are relevant for this app:
- For Group membership (optional), click Search for a group, enter one or more letters of the group name, and select the group name.
- Add additional groups as needed (maximum of 75 groups).
- For App attribute, enter the service provider’s corresponding groups attribute name.
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.
- Open a new incognito browser window.
- Sign in to https://wiki.jenkins.io/login.action with your organization's Jenkins administrator account.
-
Click on your account name.
-
Click Manage Jenkins
Configure Global Security.
-
Check the Enable Security box.
-
Under the Security Realm section, select SAML 2.0.
-
In the IdP Metadata field, paste the content of the metadata you downloaded in Step 1.
-
At Authorization, select the appropriate option.
- 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 Jenkins.
-
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 Jenkins user account email IDs match those in your Google domain.
-
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 Jenkins.
- At the top left, click Test SAML login.
Jenkins 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.
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.