Configuring Google Workspace SAML Login Estimated Reading Time: 4 Minutes Google Workspace can be a SAML identity provider (IdP) for Ubersmith. Your users can then log in to Ubersmith with their Google Workspace account. To set up Google Workspace login, do these tasks: Add a custom SAML app in the Google Admin console. Add a SAML authentication module in Ubersmith. Optional: Match Google Workspace groups to Ubersmith roles. In this article, replace ubersmith.example.com with the domain name of your Ubersmith. You must have a Google Workspace account with administrator access to the Google Admin console. Add a custom SAML app in Google Workspace In the Google Admin console, add a custom SAML app. For more information, refer to the Google Workspace help about custom SAML apps. On the App details page, in App name, type Ubersmith. Optional: add an app icon. Click Continue. On the Google Identity Provider details page, copy the SSO URL, the Entity ID, and the Certificate. You type these values in Ubersmith later. Click Continue. On the Service provider details page, complete these fields: Field Value ACS URL https://ubersmith.example.com Entity ID https://ubersmith.example.com Start URL Leave empty. Signed response Select it. Name ID format EMAIL Name ID Basic Information > Primary email Click Continue. On the Attribute mapping page, add these attributes: Google Directory attribute App attribute Basic Information > Primary email EMAIL Basic Information > First name FIRST Basic Information > Last name LAST Employee Details > Department DEPARTMENT Click Finish. Turn on the app for your users. In the Google Admin console, open the app. In User access, set the service status to ON for the users or organizational units that use Ubersmith. Google Workspace adds a new custom SAML app with the status OFF. Type the ACS URL and the Entity ID without a / at the end. If you type https://ubersmith.example.com/, the login fails. Add the SAML authentication module in Ubersmith Go to Settings > User Authentication. In the Authentication Modules section, click Add New Authentication Module. The Add Authentication Module window opens. On the Details tab, complete these fields: Enabled: YES. Module: SAML. Priority: the order in which Ubersmith uses the authentication modules. Ubersmith uses the lowest number first. Create User on Login: select it if Ubersmith must add a user the first time that a person logs in with Google Workspace. If you do not select it, the user must already exist in Ubersmith. Click the Config tab, then complete the fields. See the table below. Click Save. Section Field Value Login Page IdP Display Name Google Workspace. This text shows on the link on the Ubersmith login page. Login Page IdP Icon Optional. The URL of an icon for the link, for example https://workspace.google.com/static/favicon.ico. Service Provider (SP) - Ubersmith SP Entity ID https://ubersmith.example.com. This must be the same as the Entity ID on the Service provider details page in Google. Identity Provider (IdP) IdP Entity ID The Entity ID from Google. Identity Provider (IdP) IdP Login URL The SSO URL from Google. Identity Provider (IdP) IdP Logout URL Leave empty. When a user logs out, Ubersmith logs out the user from Ubersmith only. Identity Provider (IdP) IdP x509 Certificate The Certificate from Google. Paste all of the text, also the BEGIN CERTIFICATE and END CERTIFICATE lines. SAML Attributes Mapping Ubersmith "Login Name" Attribute Name EMAIL SAML Attributes Mapping First Name Attribute Name FIRST SAML Attributes Mapping Last Name Attribute Name LAST SAML Attributes Mapping Email Address Attribute Name EMAIL SAML Attributes Mapping Permission Group Attribute Name DEPARTMENT Keep the default values for the other fields. Keep Enable SAML Module Strict mode set to YES. If Ubersmith is behind a load balancer or a proxy, set Use "X-Forwarded-*" HTTP headers to YES. Then Ubersmith uses the public URL to check the SAML response. The SP x509 Certificate and SP x509 Private Key fields are necessary only if you set Ubersmith to sign or encrypt SAML messages in Advanced Security Settings. Google Workspace does not need them. How users log in The Ubersmith login page shows a link with the IdP Display Name and the IdP Icon. When a user clicks the link, Google Workspace asks the user to log in. Then Google Workspace sends the user back to Ubersmith. Ubersmith finds the user whose Login Name is the same as the primary email of the Google Workspace account. If no user has that login name: If Create User on Login is selected, Ubersmith adds the user. Ubersmith uses the first name, the last name, and the email from Google Workspace. If Create User on Login is not selected, Ubersmith shows "Invalid login or password." Match Google Workspace departments to Ubersmith roles The Permission Group Attribute Name sends the department of the user from Google Workspace. You can match each department to an Ubersmith role. Go to Settings > User Authentication. In the row of the SAML module, click edit access. In the blank row, type the name of the department exactly as it is in Google Workspace. Select the Role and the brand access. Click Update. For more information, refer to the article "Managing Authentication Modules".