Signing up with Google Identity / Google Workspace
This page creates your XplicitTrust tenant with Google Workspace as the identity provider.
In short
Create a Google IAM service account with a JSON key, enable the Admin SDK API, authorize the service account for two read-only scopes through domain-wide delegation, and sign up with a Workspace admin user and the key file.
Overview
Users sign in with their Google account. XplicitTrust uses a service account to read users and groups from your Workspace directory, impersonating a Workspace admin user. It reads whether a user is an administrator and which groups the user belongs to, and it imports your groups for policies.
Prerequisites
- A Google Identity or Google Workspace account.
- A Google IAM Service Account, which you create below.
- A Google Workspace user with admin privileges sufficient to read users and groups.
Configure Google
Create a service account
-
Visit https://console.cloud.google.com/iam-admin/serviceaccounts and select or create a project.
-
Click
Create Service Account -
Fill in the required service account details and click
Done
- Select the newly created service account, navigate to the
Keystab and clickAdd Key, selectJSONand save the key.
Key creation may be blocked by an organization policy
Google Cloud organizations created on or after May 3, 2024 enforce the
organization policy Disable service account key creation
(iam.managed.disableServiceAccountKeyCreation, formerly
iam.disableServiceAccountKeyCreation) by default. While it is enforced,
Add Key fails with Key creation is not allowed on this service account.
To lift it for this project only:
- Visit https://console.cloud.google.com/iam-admin/orgpolicies and select the project in the project picker.
- Open the
Disable service account key creationconstraint and clickManage policy. - Under
Applies tochooseOverride parent's policy, clickAdd a rule, setEnforcementtoOff, and clickSet policy.
Changing an organization policy requires the Organization Policy Administrator
role (roles/orgpolicy.policyAdmin), which is granted at the organization
level; a project owner alone cannot do this. Afterwards return to the Keys
tab and add the key.
-
Enable the
Admin SDK APIin the same Google Cloud project: visit https://console.cloud.google.com/apis/library/admin.googleapis.com, make sure the project that owns the service account is selected, and clickEnable.The Admin SDK API is disabled by default
Every new Google Cloud project starts with the Admin SDK API disabled, and Domain-Wide Delegation alone does not turn it on. As long as the API is disabled, the service account cannot reach the Workspace directory and the signup fails with an error similar to
Admin SDK API has not been used in project ... before or it is disabled. -
Under
API ClientsclickAdd new, paste the service account'sClient ID(visible on the service account's detail page in Google Cloud, or as theclient_idfield in the downloaded JSON file), add the following scopes, and clickAuthorize:https://www.googleapis.com/auth/admin.directory.group.readonlyhttps://www.googleapis.com/auth/admin.directory.user.readonly
Choose the admin user
- Pick (or create) a Google Workspace user with admin privileges sufficient
to read users and groups. You will enter this user's email address as the
Service Account Userduring signup — the service account does not have a Workspace identity itself, so it impersonates this admin user via Domain-Wide Delegation when calling the Admin SDK.
Roles and admins
Users get the admin role if the isAdmin attribute of their Workspace user is set (they are Workspace administrators), or if they are members of one of the user groups chosen under Administration User Groups in the Admin Console. Other users get the user role. See Authentication and Roles and groups by IdP.
Groups
Supported. XplicitTrust reads the groups of your users and imports Workspace groups for use in policies, next to the groups you create in XplicitTrust.
Sign up in XplicitTrust
-
Fill in the fields:
Field Where to find it Service Account UserThe email address of the Workspace admin user from Choose the admin user Service Account ConfigUpload the JSON key file you downloaded for the service account -
Click the Signup button.
- Follow the Google login process.
Verify
You are signed in to the XplicitTrust Admin Console at https://console.xplicittrust.com/.
Next steps
Choose the Administration User Groups and verify your domain: see Authentication and the After sign-up checklist.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Add Key fails with Key creation is not allowed on this service account |
The organization policy Disable service account key creation is enforced (the default for Google Cloud organizations created on or after May 3, 2024) |
Override the policy for this project, as described in Create a service account |
The sign-up fails with Admin SDK API has not been used in project ... before or it is disabled |
The Admin SDK API is disabled, which is the default for every new project | Enable the Admin SDK API in the project that owns the service account |
Why these permissions
A Google IAM service account is required. It allows XplicitTrust to query the isAdmin attribute and the group membership
of users, and to fetch the existing user groups for the group import. The service
account needs the following scopes of the
Admin SDK API:
| Scope | Description | Reason |
|---|---|---|
https://www.googleapis.com/auth/admin.directory.group.readonly |
Read group information. | Required by the User Groups Import feature, that allows to import groups from the Google Directory to be used in XplicitTrust Policies. |
https://www.googleapis.com/auth/admin.directory.user.readonly |
Read user information. | Required to read the users isAdmin attribute, that indicates a user with administrator privileges. |
See also
- Overview and choosing an IdP
- Roles and groups by IdP
- Authentication in the Admin Console

