Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.provisionr.io/llms.txt

Use this file to discover all available pages before exploring further.

Primary Integration

The primary integration is used for the unified Directory User profile including name and email address, manager relationships, employee IDs, and lifecycle timestamps when a user is provisioned and deprovisioned as an employee or contractor. Additional integrations are used for enriching Directory Attributes and having user metadata for each vendor for group or resource membership assignment. The first integration that you create is your primary integration and cannot be changed later. Please use your Identity Provider (IdP) as your primary source of truth for Directory Users. If you already have an Okta integration, then that is your primary integration.
Is Okta your Identity Provider (IdP)? Please stop here and create the Okta integration first before creating your Google Workspace integration.
Is your Identity Provider (IdP) Google Workspace? If yes, then you’re in the right place.

Security Architecture

Provisionr uses OAuth2 Domain-Wide Delegation to authenticate with the Google API using a service account in your Google Cloud Platform (GCP) project that has been granted the necessary scopes in Google Workspace using domain-wide delegation. This allows Provisionr to securely access your Google Workspace data without needing to store user passwords or use less secure authentication methods.
Learn more about the Google OAuth2 scopes needed and architecture for how Provisionr syncs with the Google API in the Google Authentication docs.

Steps

We encourage you to use a Provisionr-managed service account if you are just getting started. This allows you to get up and running quickly without needing to manage your own GCP project and service account.You have full control of what the service account has access to with domain-wide delegation of authority and you can revoke access at any time from the Google Workspace Admin UI.You can always switch to a customer managed service account later if you need more control.
1

Create Workspace Integration

Use the Provisionr CLI to create a new Google Workspace integration in your workspace.
prv google-integration:create
Your integration is created in a staged state. Your Provisionr workspace automatically generates a Google service account in Provisionr’s GCP organization that we will manage on your behalf.In the upcoming steps, you will grant this service account the necessary OAuth2 scopes using domain-wide delegation of authority to access your Google Workspace data.After you complete the steps below in the Google Workspace Admin UI, you will return here to activate the integration.
2

Workspace Super Admin Role

You will need to have access to a Google Workspace account with the Super Admin role in order to grant a service account scopes using domain-wide delegation of authority.Please contact your Google Workspace administrator to perform these steps if you do not have permission. You will need to share the integration metadata from the previous step.
3

Grant OAuth2 Scopes

Provisionr requires the following OAuth2 scopes to be granted to the service account for domain-wide delegation of authority in order to read Google Workspace Users and manage Groups and Group Members.In future releases, we will be adding support for managing additional resources. You can proactively grant the additional scopes now or wait until those features are released to use that functionality.You can learn more about the scopes in the Google Authentication Architecture documentation.Follow the vendor instructions to grant your service account the domain-wide delegation scopes listed below.You will need the Client ID of your service account which you can see in the Provisionr CLI output when you created your integration in the first step.
https://www.googleapis.com/auth/admin.directory.user.readonly
https://www.googleapis.com/auth/admin.directory.group.readonly
https://www.googleapis.com/auth/admin.directory.group.member
4

Activate Integration

Use the Provisionr CLI to activate your Google Workspace integration now that you have granted the necessary OAuth2 scopes.
prv google-integration:activate
This command will validate that the service account can successfully authenticate and has the necessary permissions to access your Google Workspace data.If successful, the integration will be activated and start the initial sync of your Google Workspace users, groups, and organization units into Provisionr.Please refer to the Google Integration Documentation to learn more about how Provisionr syncs with Google Workspace and manages your users and groups.