Google Cloud Platform (GCP) | Entitle

What is the Google Cloud Platform (GCP) integration?

The Entitle integration with Google Cloud Platform (GCP) connects your GCP environment to Entitle to enable centralized access discovery and management across your organization. Using a dedicated service account or a pod-based identity connection, Entitle can securely interact with GCP APIs to discover resources and manage permissions without requiring persistent human credentials.

This integration allows Entitle to model GCP resources and access relationships accurately, forming the foundation for automated access requests and governance.

How is this integration useful?

By integrating GCP with Entitle, your organization can enforce just-in-time (JIT) access and least-privilege permissions across Google Cloud resources. When a user requests access, Entitle can automatically grant the required permissions for a limited time and revoke them when access expires.

This approach reduces standing access, improves security posture, and simplifies access workflows across projects and services. It also helps administrators maintain consistent access controls, improve auditability, and scale access governance as GCP environments grow.

What resources does this integration support?

With this integration enabled, Entitle can manage access to the following GCP resource types:

  • Organizations
  • Folders
  • Projects
  • BigQuery datasets and tables
  • Storage buckets
  • Google Compute Engine (GCE) instances
  • Cloud Functions
  • Cloud SQL instances
  • Secret Manager secrets
  • Service accounts
  • Groups (These can also be managed via Google Workspace integration)

General guidelines

To integrate your Google Cloud Platform in Entitle, you must run the entitle_google_integrator setup you have downloaded and unzipped on the Google Integrations page and configure domain-wide delegation.

Service account key vs. Workload Identity Federation

✅

Choose your authentication method

You should now choose whether to use a Service Account Key or Workload Identity Federation.

  • Service Account Key: The simpler option. Create a key pair for the Entitle dedicated service account through the GCP portal user interface, and provide Entitle with the private key. This method works for most cases and takes only a few minutes to set up.
  • Workload Identity Federation: A more advanced option that uses GCP identity federation to avoid long-lived secrets and strengthen your security posture.
    • Support OIDC-based federation for GCP applications.
    • Work alongside existing service account key methods without affecting current setups.
    • Enable access to common GCP resources through role assignments.
    • Prevent cross-tenant access by isolating each customer’s federated identity.
    • Automatically remove temporary onboarding credentials after setup.

Federated credentials are supported only for integrations saved on Entitle's Cloud or on an on-premises agent hosted in Amazon Elastic Kubernetes Service (EKS).

Create Workload Identity Pools – Workload Identity Federation only
  1. In the GCP console, select the project for the Entitle service account, or the project where you plan to create it. Then go to IAM & Admin > Workload Identity Pools.

Project selection page showing available Google Cloud projects

Workload Identity Pools page in Google Cloud IAM & Admin

  1. Create an identity pool. Click the Create Pool button and enter the following information:
    1. Name: entitle
      🚧

      Use entitle only. Never use special characters.

    2. Description: Enter a description to help you identify this identity pool later.
    3. Enabled pool: toggled on
  1. Add a provider to the pool. Enter the following information:

    1. Select a provider: OpenID Connect (OIDC)

    2. Provider name: entitle

      🚧

      Use entitle only. Never use special characters.

    3. Issuer (URL): Enter the issuer URL provided for your Entitle agent environment.

      ℹ️
      • If your Entitle agent is hosted in the cloud within Entitle Europe (Ireland), use:
        https://oidc.eks.eu-west-1.amazonaws.com/id/7104B0E9ED58DCD19AE0DC0EC7D46D5D
      • If your Entitle agent is hosted in the cloud within Entitle USA use:
        https://oidc.eks.us-east-1.amazonaws.com/id/E1F031C91539B03EE726ED530E719F4C
      • If your Entitle agent is hosted in the cloud within Entitle Canada use:
        https://oidc.eks.ca-central-1.amazonaws.com/id/7A1DB459F431A4AFAE24BC244ACE88BB
      • If you are using an EKS-hosted agent running on your AWS account, run this command on your EKS cluster and use its output:
        aws eks describe-cluster --name <your eks cluster name> --query "cluster.identity.oidc.issuer" --output text --region <your eks cluster's region id>
    4. JWK file (JSON): Leave this field empty.

    5. Audiences: Allowed audiences

      • Audience 1: sts.amazonaws.com

  1. Configure provider attributes. Enter the following information:
    1. Google 1: google.subject
    2. OIDC 1: assertion.sub
    3. Google 2: attribute.env
    4. OIDC 2: assertion.iss

Configure provider attributes section showing Google and OIDC mapping fields.

  1. Click Save.

Run the setup script

The setup consists of the following actions:

  • Create an Entitle service account in the chosen project
  • Create an organization-level role with the required permissions or add permissions to it if it already exists (stated in the .yaml file)
View the permissions attached to the role
resourcemanager.projects.get
resourcemanager.projects.list
// Manages tables and datasets
bigquery.datasets.get
bigquery.datasets.getIamPolicy
bigquery.datasets.update
bigquery.tables.get
bigquery.tables.getIamPolicy
bigquery.tables.list
bigquery.tables.setIamPolicy
resourcemanager.organizations.get
resourcemanager.organizations.getIamPolicy
resourcemanager.organizations.setIamPolicy
resourcemanager.folders.get
resourcemanager.folders.getIamPolicy
resourcemanager.folders.list
resourcemanager.folders.setIamPolicy
resourcemanager.projects.get
resourcemanager.projects.list
resourcemanager.projects.getIamPolicy
resourcemanager.projects.setIamPolicy
compute.instances.get
compute.instances.getIamPolicy
compute.instances.list
compute.instances.setIamPolicy
compute.zones.get
compute.zones.list
cloudsql.instances.get
cloudsql.instances.list

resourcemanager.projects.get
resourcemanager.projects.list
resourcemanager.projects.getIamPolicy
resourcemanager.projects.setIamPolicy
secretmanager.secrets.get
secretmanager.secrets.list

resourcemanager.projects.get
resourcemanager.projects.list
resourcemanager.projects.getIamPolicy
resourcemanager.projects.setIamPolicy
cloudfunctions.functions.get
cloudfunctions.functions.getIamPolicy
cloudfunctions.functions.list
cloudfunctions.functions.setIamPolicy
storage.buckets.get
storage.buckets.getIamPolicy
storage.buckets.list
storage.buckets.setIamPolicy
iam.serviceAccounts.get
iam.serviceAccounts.list
iam.serviceAccounts.getIamPolicy
iam.serviceAccounts.setIamPolicy


  1. Go to your GCP web console.
  2. Choose the project that you chose to create Entitle's service account at the top left corner.
  3. Click on the shell icon at the top right corner.
  1. Navigate to the path of the unzipped folder entitle_google_integrator, and run the following commands:
# For a basic configuration, create a service account in the current project and assign the role to it at the project-level
bash run.sh -i gcp -k

# You may also assign the role in the parent folder or organization-level
bash run.sh -i gcp -b folder -k
bash run.sh -i gcp -b organization -k

# For more options use the -h flag
bash run.sh -h
# For a basic configuration, create a service account in the current project and assign the role to it at the project-level
bash run.sh -i gcp

# You may also assign the role in the parent folder or organization-level
bash run.sh -i gcp -b folder
bash run.sh -i gcp -b organization

# For more options use the -h flag
bash run.sh -h
ℹ️

Be sure to select the correct tab, For a Service Account Key or For Workload Identity Federation, in the code block above.

For a Service Account Key
  1. Download the created JSON file on setup completion. You will use it later in this guide.
For Workload Identity Federation
  1. Open the GCP shell and execute:
# 1. Define the variables
export projectId=<your GCP project ID>
export poolId="entitle"
export providerId="entitle" 
export serviceAccountName="entitle-integrations-sa"  # The name of the service account Entitle's Google integrator scripts create
# 2. Run the commands
# 2.1 Identify your GCP project number
export projectNumber=$(gcloud projects describe ${projectId} --format="value(projectNumber)")
echo $projectNumber
# 2.2 Allow Entitle to authenticate to the service account you created:
export issuerUrl=$(gcloud iam workload-identity-pools providers describe "${providerId}" \
    --workload-identity-pool="${poolId}" \
    --location="global" \
    --project="${projectId}" \
    --format="value(oidc.issuerUri)")

gcloud iam service-accounts add-iam-policy-binding \
    "${serviceAccountName}@${projectId}.iam.gserviceaccount.com" \
    --role="roles/iam.workloadIdentityUser" \
    --member="principalSet://iam.googleapis.com/projects/${projectNumber}/locations/global/workloadIdentityPools/${poolId}/attribute.env/${issuerUrl}"
# 2.3 Identify your organization's universe domain value used in authentication
universeDomain=$(gcloud config get-value core/universe_domain)
echo $universeDomain
# 2.4 Grant yourself the serviceAccountTokenCreator role on the service account
export shellUser=$(gcloud auth list --filter=status:ACTIVE --format="value(account)")
gcloud iam service-accounts add-iam-policy-binding \
    ${serviceAccountName}@${projectId}.iam.gserviceaccount.com \
    --member="user:${shellUser}" \
    --role="roles/iam.serviceAccountTokenCreator" \
    --project=${projectId}

# 2.5 Wait up to five minutes for the role granting to take effect.

# 2.6 Generate a temporary token for the integration onboarding
nonceValue=$(gcloud auth print-access-token \
    --impersonate-service-account="${serviceAccountName}@${projectId}.iam.gserviceaccount.com" \
    --lifetime=10m)
echo $nonceValue

Configure domain-wide delegation

ℹ️

This step is required only if:

  • You want to manage Google Groups in your GCP integration, or
  • The identity provider configured in Entitle is different from the Google Workspace tenant used by this GCP environment.

Otherwise, you can skip this step.

  1. To manage users in groups, your service account needs to have domain-wide delegation on certain scopes. Go to Manage domain-wide delegation.
  2. Click Add new:
  1. In the Client ID field, enter the 21-digit number obtained from the key JSON file under the client_id field.
  2. In the OAuth scopes field, enter the following values (comma-delimited):
https://www.googleapis.com/auth/admin.directory.group,
https://www.googleapis.com/auth/admin.directory.group.readonly,
https://www.googleapis.com/auth/admin.directory.user,
https://www.googleapis.com/auth/admin.directory.user.readonly
  1. Click Authorize.
ℹ️

After completing the required configuration in GCP, you may need to wait 2 to 5 minutes before creating the integration. GCP does not guarantee immediate propagation of IAM permission changes across all entities.

Create the integration in Entitle

  1. Log in to Entitle and go to the Integrations page.
  2. After clicking the Add Integration button, type Google Cloud Platform in the Application field.
  3. For Save on, choose whether you would like this integration to be saved on your own hosted agent or in Entitle’s cloud.
  4. In the Connection drop-down, select one of three options:
Option 1: Service Account Key connection
  1. Select Service Account Key if you created a service account key for the integration.

  2. In the connection JSON, under the "service_account_key" field, paste the downloaded key JSON of your service account.

  3. If you want to manage groups in your GCP integrations, provide "credential_subject" with the email address of an admin in your organization who has permission to view all users and groups. Otherwise, enter entitle-integrations-sa@<your project ID>.com.

  4. If you want to limit which organizations, folders, or projects Entitle syncs, add one or more of the following lists to an "options": {} object beneath "credential_subject": "":

    OptionWhat it limitsValue
    organization_ids_constraintsOrganizationsNumeric organization IDs, for example "123456789012" or "organizations/123456789012"
    folder_ids_constraintsFoldersNumeric folder IDs, for example "222" or "folders/222"
    project_ids_constraintsProjectsProject IDs, for example "my-project-id-1"

    This is useful when the service account is bound at the folder or organization level, but you only want to expose part of your hierarchy in Entitle. If an option is omitted or empty, it does not filter anything.

    🚧

    project_ids_constraints filters projects only. It does not hide folders or organizations. To limit those, use organization_ids_constraints and folder_ids_constraints.

    🚧

    organization_ids_constraints and folder_ids_constraints require Entitle agent version 2.30.0 or later. Older agents ignore these options without an error, so the sync is not scoped. Confirm your agent version before you rely on them.

    For details on how these options work together, see How scope constraints work.

  5. If you want to limit the resource types managed by Entitle, add "resource_types_constraints": [] in an "options": {} object beneath "credential_subject": "", and specify the allowed resources types as a list of strings.

    organizations
    folders
    projects
    datasets
    tables
    buckets
    instances
    functions
    sql_instances
    secrets
    service_accounts
    service_account_keys
    groups
    ✅

    Example

    …
      "credential_subject": "[email protected]",
      "options": {
        "resource_types_constraints": ["projects", "folders", "datasets"]
      }
    …
    ℹ️

    A non-existent field or an empty list means all Entitle-supported resource types, except tables and instances, can be managed.

  6. If Domain-wide delegation for managing groups was set as .readonly for this integration, add "read_only": true to the "options" object.

    ✅

    Example

    …
      "credential_subject": "[email protected]",
      "options": {
        "read_only": true
      }
    …
  7. If you want to audit when and how often Entitle grants permissions, enable this option to record the grant time and request number in the GCP IAM policy.

    In the options object, add "iam_policy_auditing": true.

    Limitations of the GCP IAM policy given by Google:

    • The policy cannot be larger than approximately 100kb.

      ℹ️

      Auditing significantly increases policy size. In environments with high usage, this can cause Entitle to reach the maximum policy size limit, preventing further access grants.

    • Maximum of 250 assignments in a binding (mapping between a role and users)

    • Maximum of 1500 assignments in a policy.

✅

Example configuration JSON

{
  "service_account_key": {
    // A dictionary from the downloaded JSON file
  },
  "credential_subject": "an email of an admin in your organization which has permission to view all users",
  "options": {
    "organization_ids_constraints": ["123456789012"],
    "folder_ids_constraints": ["folders/222"],
    "project_ids_constraints": ["my-project-id-1", "my-project-id-2"],
    "resource_types_constraints": ["buckets", "groups"],
    "read_only": false,
    "iam_policy_auditing": false
  }
}

Below is an example of how the options section should look. Make sure to add double quotations and commas in the appropriate places.

ℹ️

After access is granted, the user receives a message in Slack or the Entitle web app indicating that the user was added to the GCP IAM policy for the first time, not that a new user account was created.

Option 2: Workload Identity Federation connection
  1. Under the "workload_identity_federation" field, complete the relevant sub-fields:

    {
      "workload_identity_federation": {
        "project_number": "<your GCP project number>",
        "pool_id": "entitle",
        "provider_id": "entitle",
        "service_account_email": "entitle-integrations-sa@<your project ID>.iam.gserviceaccount.com",
        "universe_domain": "<your GCP universe domain>",
        "nonce_value": "<the nonce value generated in the GCP shell>"
      },
      "credential_subject": "[email protected]"
    }
  2. If you want to manage groups in your GCP integrations, provide "credential_subject" with the email address of an admin in your organization who has permission to view all users and groups. Otherwise, enter entitle-integrations-sa@<your project ID>.com.

  3. If you want to limit which organizations, folders, or projects Entitle syncs, add one or more of the following lists to an "options": {} object beneath "credential_subject": "":

    OptionWhat it limitsValue
    organization_ids_constraintsOrganizationsNumeric organization IDs, for example "123456789012" or "organizations/123456789012"
    folder_ids_constraintsFoldersNumeric folder IDs, for example "222" or "folders/222"
    project_ids_constraintsProjectsProject IDs, for example "my-project-id-1"

    This is useful when the service account is bound at the folder or organization level, but you only want to expose part of your hierarchy in Entitle. If an option is omitted or empty, it does not filter anything.

    🚧

    project_ids_constraints filters projects only. It does not hide folders or organizations. To limit those, use organization_ids_constraints and folder_ids_constraints.

    🚧

    organization_ids_constraints and folder_ids_constraints require Entitle agent version 2.30.0 or later. Older agents ignore these options without an error, so the sync is not scoped. Confirm your agent version before you rely on them.

    For details on how these options work together, see How scope constraints work.

  4. If you want to limit the resource types managed by Entitle, add "resource_types_constraints": [] in an "options": {} object beneath "credential_subject": "", and specify the allowed resources types as a list of strings.

    organizations
    folders
    projects
    datasets
    tables
    buckets
    instances
    functions
    sql_instances
    secrets
    service_accounts
    service_account_keys
    groups
    ✅

    Example

    …
      "credential_subject": "[email protected]",
      "options": {
        "resource_types_constraints": ["projects", "folders", "datasets"]
      }
    …
    ℹ️

    A non-existent field or an empty list means all Entitle-supported resource types, except tables and instances, can be managed.

  5. If Domain-wide delegation for managing groups was set as .readonly for this integration, add "read_only": true to the "options" object.

    ✅

    Example

    …
      "credential_subject": "[email protected]",
      "options": {
        "read_only": true
      }
    …
  6. If you want to audit when and how often Entitle grants permissions, enable this option to record the grant time and request number in the GCP IAM policy.

    In the options object, add "iam_policy_auditing": true.

    Limitations of the GCP IAM policy given by Google:

    • The policy cannot be larger than approximately 100kb.

      ℹ️

      Auditing significantly increases policy size. In environments with high usage, this can cause Entitle to reach the maximum policy size limit, preventing further access grants.

    • Maximum of 250 assignments in a binding (mapping between a role and users)

    • Maximum of 1500 assignments in a policy.

✅

Example configuration JSON

{
  "workload_identity_federation": {
    "project_number": "1079892362871",
    "pool_id": "entitle",
    "provider_id": "entitle",
    "service_account_email": "[email protected]",
    "universe_domain": "googleapis.com",
    "nonce_value": "ya29.c.c0AZ1aNiXnE52LzJcIpo-FHo*****************"
  },
  "credential_subject": "[email protected]",
  "options": {
    "organization_ids_constraints": ["123456789012"],
    "folder_ids_constraints": ["folders/222"],
    "project_ids_constraints": ["my-project-id-1", "my-project-id-2"],
    "resource_types_constraints": [],
    "read_only": false,
    "iam_policy_auditing": false
  }
}

Below is an example of how the options section should look. Make sure to add double quotations and commas in the appropriate places.

ℹ️

After access is granted, the user receives a message in Slack or the Entitle web app indicating that the user was added to the GCP IAM policy for the first time, not that a new user account was created.

Option 3: GKE Pod-based identity connection
  1. Select GKE Pod-based identity if you’re using the pre-configured Workload Identity service account of your GKE cluster.
  2. Leave the connection JSON blank, and click Save.

How scope constraints work

Use organization_ids_constraints, folder_ids_constraints, and project_ids_constraints to control which parts of your GCP resource hierarchy Entitle syncs.

Rules

  • An empty option means no filter. If an option is not set or is an empty list, it does not filter anything. If none of the three options are set, Entitle syncs everything the service account can see.
  • Each option filters only its own level. project_ids_constraints filters projects only. It never hides folders or organizations. To limit those, set organization_ids_constraints or folder_ids_constraints.
  • Options combine with AND. A resource must pass every option that is set. If a project's organization or folder is not allowed, Entitle drops the project, even when it is listed in project_ids_constraints.
  • A listed folder includes its whole subtree. Entitle includes the listed folder and all subfolders and projects beneath it. You don't need to list parent folders. If you also set organization_ids_constraints, a listed folder under an organization that isn't listed is excluded.
  • Projects outside any folder pass a folder-only constraint. Projects directly under the organization, and projects with no organization, still sync when only folder_ids_constraints is set. To exclude them, also set project_ids_constraints.

Filter order

Entitle applies the constraints from the top of the hierarchy down:

  1. Organizations: If organization_ids_constraints is set, Entitle keeps only the listed organizations.
  2. Folders: If folder_ids_constraints is set, Entitle keeps only the listed folders and their subfolders.
  3. Projects: If project_ids_constraints is set, Entitle keeps only the listed projects.

Scope constraints example

The following example uses this hierarchy:

Organization (organizations/1000)
├── Folder A (folders/111)
│   ├── Folder B (folders/222)
│   │   ├── Folder C (folders/333)
│   │   │   └── project-c
│   │   └── project-b
│   └── project-a
├── Folder X (folders/444)
│   └── project-x
└── project-org-level            <- directly under the organization, in no folder

With "folder_ids_constraints": ["222"], Entitle syncs the following resources:

ResourceSyncedReason
Organization (organizations/1000)Yesfolder_ids_constraints does not filter organizations.
Folder A (folders/111)NoFolder A is a parent of Folder B. A folder constraint includes descendants of the listed folder, not its ancestors.
Folder B (folders/222)YesListed.
Folder C (folders/333)YesUnder Folder B.
project-cYesUnder Folder B.
project-bYesUnder Folder B.
project-aNoIn Folder A, but not under Folder B.
Folder X (folders/444)NoNot listed and not under Folder B.
project-xNoNot under Folder B.
project-org-levelYesDirectly under the organization, in no folder. To exclude it, also set project_ids_constraints.

Invalid values

🚧

Entitle validates organization_ids_constraints and folder_ids_constraints. If any value is not a valid numeric ID, the integration reports a configuration error, and every operation on the integration fails until you fix the value. This includes sync, access grants, and access revokes.

The following values are rejected:

  • Display names, such as "Folder B"
  • The wrong prefix, such as "folders/1000" for an organization or "organizations/222" for a folder
  • Project values, such as "projects/my-project"
  • Full paths, such as "organizations/1000/folders/222"
  • Trailing slashes

Surrounding whitespace is ignored.

ℹ️

project_ids_constraints is not validated. A wrong value matches nothing. Use the project ID string, such as "my-project-id-1", not the project number or "projects/my-project-id-1".

Permissions

The organization and folder constraints rely on the service account being able to see the folders. GCP folder search returns only folders on which the caller has resourcemanager.folders.get. If the service account can't see a project's folder path:

  • With organization_ids_constraints set: Entitle excludes the project, because it can't confirm the project's organization.
  • With only folder_ids_constraints set: Entitle keeps the project if the listed folder is on the visible part of its path, including its first hidden parent.

Frequently asked questions

What ID format do organization_ids_constraints and folder_ids_constraints use?

Use the numeric ID, either on its own ("222") or with its prefix ("folders/222"). Display names are not accepted.

To find the IDs, use the Google Cloud console resource picker, or run the following commands:

gcloud organizations list
gcloud resource-manager folders list --organization=<ORG_ID>
gcloud resource-manager folders list --folder=<FOLDER_ID>    # subfolders
My hierarchy is Organization > Folder A > Folder B. Should I list both A and B, or only B?

List only B. A listed folder includes its entire subtree.

folder_ids_constraintsResult
["222"] (Folder B)Folder B and everything under it: Folder C, project-b, project-c
["111"] (Folder A)Folder A and everything under it: Folder B, Folder C, project-a, project-b, project-c
["111", "222"]Same as ["111"]. Listing Folder B as well is redundant but harmless.
If I list only Folder B, do Folder A and the organization still sync?

The organization still syncs, because only organization_ids_constraints filters organizations. Folder A does not sync, because a folder constraint includes the listed folder and its descendants, not its ancestors. For a full example, see Scope constraints example.

Can I keep the projects but not manage the organization resource itself?

Yes. Leave organizations out of resource_types_constraints. Entitle still syncs the projects.

When you don't sync the organization resource:

  • Users can't request organization-level roles in Entitle.
  • Entitle doesn't show organization-level IAM bindings.

resource_types_constraints is an allowlist. When you set it, only the listed types sync, so list every type you want. It also replaces the default, which syncs every type except tables and instances. Include those two only if you want them. If you use complex_constraints instead, omit the organizations key there.

🚧

Don't use organization_ids_constraints for this. Leaving an organization out of that option excludes everything beneath it.

Do I need a specific Helm chart version?

No. Agent version 2.30.0 or later is enough. The options are integration settings, and the agent applies them. The Helm chart only determines which agent image runs:

  • If you pin agent_version (for example, "2.29.0") or set agent.image.tag, change it to 2.30.0 or later.
  • If agent_version is "default" or "auto-update", confirm which version your agent pods are running.
ℹ️

Should you need to allowlist this integration, these are the IP addresses from which Entitle's service reaches the integration:

  • Entitle EU (Cloud deployment)
    • 34.243.199.171
    • 54.216.133.226
  • Entitle US (Pathfinder deployment)
    • 52.45.229.219
    • 54.88.235.213
    • 3.224.15.134
  • Entitle CA (Pathfinder deployment)
    • 35.182.218.208
    • 15.156.179.153
✅

What's next?

Make sure your setup is complete by testing your integration.


Did this page help you?

©2003-2026 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.