- 1 minute to read
- Print
- DarkLight
- PDF
How to connect a Google Cloud Platform organization
- 1 minute to read
- Print
- DarkLight
- PDF
In this article, you’ll learn how to connect a Google Cloud Platform (GCP) organization, including all its projects, to Cloud Entitlements.
Requirements
- Create a Role that contains the following permissions:
iam.serviceAccountKeys.list
iam.serviceAccounts.list
iam.roles.list
iam.roles.get
resourcemanager.organizations.getIamPolicy
resourcemanager.projects.getIamPolicy
resourcemanager.projects.list
resourcemanager.projects.get
resourcemanager.organizations.get
- Enable the following GCP APIs:
- Resource Manager.
- Identity and Access Management (IAM).
- Cloud Assets.
- Create a Service account with the required role and register it as a Principal in the organization's IAM.
- Provision a Key for the Service account.
Setup a service account with organization-level permissions in Google Cloud Platform
Before you connect your organization to Cloud Entitlements, you must create a service account with organization-level permissions. To do so, follow the steps:
- Access the GCP Console.
- Click the Select project dropdown and switch to your GCP Organization.
- Go to IAM & Admin > Roles.
- Click Create custom role with the required permissions.
- Click Save.
- Navigate to IAM.
- In Permissions, click Grant access to add a service account as a principal.
As an organization, you can select from service accounts created within projects. If needed, you can create a new service account in IAM & Admin > Service Accounts > Create service account.
- Paste the Service account email and select the Custom role.
- Click Save.
- Go to Service Accounts and select the service account selected as a principal.
- Click Actions > Manage keys.
- Create and download the new key in JSON format.
Connect a Google Cloud Platform organization
To connect your GCP organization to Cloud Entitlements, follow these steps:
- Go to Cloud Entitlements left menu.
- Click Cloud setup to open a dropdown menu.
- Select Google Cloud Platform.
- On the upper-right corner, click + Connect.
- Select the option Organization.
- Enter a Name to identify your GCP organization within Cloud Entitlements.
- Enter your Organization ID.
Your organization ID can be found in the GCP Console by clicking the Select project dropdown > All.
- Upload the Service account key's JSON file.
- Click Save.
If connected successfully, your GCP organization will appear in the list of connected organizations.
If the connection is unsuccessful, review the organization ID, the attributed roles, and the enabled APIs. You can't connect an organization already connected to the same Cloud Entitlements tenant.
To make any necessary changes, click the Actions button, represented by three vertical dots, and click Edit.
Additionally, you can activate or deactivate the organization by turning the Status switch on or off.