Identity and people

Google Workspace

Create a custom SAML application for your Workspace users.

Deployment
BYOC

A Google Workspace administrator connects Workspace to Diakrin with a custom SAML app. This is separate from the consumer Continue with Google button. You need permission to manage SAML apps in Google Admin console and the setup packet.

Create the application

  1. Open Apps → Web and mobile apps → Add app → Add custom SAML app.
  2. Name the app Diakrin. Download the Google identity-provider metadata XML.
  3. In Service provider details, enter the values below. Set Name ID format to PERSISTENT.
  4. Set Name ID to a user field that never changes and is never reassigned, such as an employee id. Add an attribute mapping named email from Basic Information → Primary email.
  5. Turn the app on for your pilot organizational unit or group only.

Map the fields

Google Workspace fieldValue
ACS URLhttps://auth.diakrin.com/saml2/idpresponse
Entity IDurn:amazon:cognito:sp:<poolId> from the setup packet
Name ID formatPERSISTENT
Name IDA never-reassigned id field, not the primary email
App attribute emailPrimary email

The Name ID is Persistent and identifies the person for good. Do not use the primary email as the Name ID: an address can pass to a new employee, who would then sign in as the person who had it before. If your directory has no field like this, tell your onboarding contact before you continue.

Activate and test

In Settings → Sign-in → SSO identity provider, paste the metadata URL or upload the XML, then select Verify and connect. After activation, start from the console's company SSO form and follow Test and roll out SSO. Google app-access changes can take time to apply; wait before retesting.

If it fails

SymptomCauseFix
Google says the app is not enabledThe person's organizational unit or group is not turned onTurn the app on for them
Google succeeds but Diakrin refusesThe person is not a member of your organization yetSee Sign in and join your team

Official reference: Set up your own custom SAML app ↗.

Next stepTest and roll out SSO →