Skip to content

Set up single sign-on with Google Workspace

Available on Gold

These steps let your people sign in to Acadenix through your Google Workspace as a SAML app. It uses your Workspace’s own rules, such as which people may use the app. You work in two places: Acadenix gives Google two addresses, and Google gives Acadenix a metadata file.

If you only want people to sign in with their Google account, you don’t need SAML. Switch on Google under Sign-in methods instead (see Sign-in methods and single sign-on).

Before you start

  • Your organization needs its own Gold licence.
  • In the Google Admin console you need the Super Admin role.
  • People sign in to the Acadenix account that has the same email address. Someone without one gets a learner account the first time they sign in, if their address is at your organization’s Email registration domains. That’s Allow learner JIT provisioning, on unless you switch it off.

In Acadenix: create the connection

  1. Choose Settings, then the Authentication tab.

  2. Under Identity provider connections, choose Add identity provider. Enter a Connection name, such as “Google Workspace”. People see it on the sign-in button. Choose Create SAML connection.

  3. Open the connection and keep its Entity ID and ACS URL at hand.

    Settings → Authentication, the Google Workspace connection under Identity provider connections, with its Entity ID and ACS URL

Replacing an earlier Google setup? Open the existing connection and choose Create configuration update instead. Its Entity ID and ACS URL stay the same, and the old setup keeps working until you activate the new one.

In Google Admin: create the app

  1. At admin.google.com, choose Apps, then Web and mobile apps, then Add app, then Add custom SAML app.

    Google Admin console, Apps → Web and mobile apps, with the Add app menu open on Add custom SAML app

  2. Name it (for example “Acadenix”) and choose Continue.

  3. On Google Identity Provider details, choose Download metadata and keep the file. Choose Continue.

    Google Admin console, the new custom SAML app's Google Identity Provider details step, with the Download metadata button

  4. On Service provider details:

    • ACS URL: the ACS URL from Acadenix.
    • Entity ID: the Entity ID from Acadenix.
    • Leave Start URL empty and Signed response unticked.
    • Name ID format: PERSISTENT. Name ID: Basic Information > Primary email.

    Choose Continue.

    Google Admin console, the Service provider details step, with ACS URL and Entity ID filled in from Acadenix, Start URL empty, Signed response unticked, Name ID format PERSISTENT and Name ID Basic Information > Primary email

  5. On Attribute mapping, add these three and choose Finish:

    Google Directory attribute App attribute
    Primary email email
    First name first_name
    Last name last_name

    Google Admin console, the Attribute mapping step, with First name, Last name and Primary email mapped to first_name, last_name and email

  6. The new app is off for everyone. Open it, choose User access, and set it to ON for everyone, or switch it on for the organizational units or groups who will sign in to Acadenix, yourself included. Choose Save. It can take a few minutes to apply.

    Google Admin console, the Acadenix app's User access, Service status set to ON for everyone, and the Save button

In Acadenix: finish and switch on

  1. Open the connection and choose Configure SAML (or your configuration update):

    • Configuration method: choose Paste IdP metadata. Google has no metadata address to fetch.
    • IdP metadata XML: open the file from step 6 in a text editor and paste all of it.
    • Leave the Attribute mapping as it is: Stable subject NameID, Verified email claim email, First name claim first_name, Last name claim last_name.
    • Leave Accept encrypted assertions unticked. Choose Save draft.

    Settings → Authentication, Configure SAML with Configuration method set to Paste IdP metadata, the IdP metadata XML pasted in, the Attribute mapping with Stable subject NameID, Verified email claim email, First name claim first_name and Last name claim last_name, and Save draft

  2. Choose Test configuration and sign in at Google with an account the app is on for. When the test passes, choose Activate configuration.

  3. Under Sign-in methods, switch the connection on. If it’s your only SAML connection, your sign-in page now takes people straight to Google. Emailed codes and Google, LinkedIn or Microsoft, where they’re on, are the fallback: someone Google turns away, or who goes back, sees the sign-in page with every choice. Select the connection under Sign-in methods to show it as a button instead (Display Sign On with SAML button on login screen), to switch off Allow learner JIT provisioning, or to limit the email domains it accepts.

The first time someone signs in with Google, Acadenix emails a code to their account’s address to confirm the link. This happens once per person. People can also start from the app in their Google apps menu.

Good to know

Google can’t send an ID that stays the same when a person’s email address changes, so Acadenix knows each person by their primary email:

  • When you rename someone’s primary email in Google, change the email on their Acadenix account too. The next time they sign in, they confirm with a code, as on their first sign-in.
  • Before you give a departed person’s email address to someone new, archive the departed person’s Acadenix account (Archive account on Users), so the newcomer can’t sign in as them.

If the test fails

What you see What to change
Configure the IdP NameID format as Persistent Set Name ID format to PERSISTENT in Google (step 7).
Verify the IdP sends the configured email claim The result lists the attribute names Google sent. Match the app attributes in step 8 exactly, in lower case.
The assertion could not be validated Check that Signed response is unticked in Google (step 7) and that you pasted the whole metadata file (step 10).
Google error app_not_configured_for_user The app isn’t on for that person yet (step 9), or the Entity ID in Google doesn’t exactly match Acadenix’s (step 7).
Save draft says Please fill out this field Configuration method is still Manual configuration. Choose Paste IdP metadata (step 10).

If this didn’t help

Ask Nix to log a support ticket, or open Support under Need help?.