Step 5 - Tenant: post terraforming¶
Note
This step is done by the tenant administrators.
Set up domain-wide delegation (in tenant admin.google.com)¶
Nais performs some operations on behalf of the Nais admin user mentioned above. For this to work the, this user needs domain-wide delegation with some scopes. This must be manually set up in the Google Admin console:
- Go to https://admin.google.com/ac/owl/domainwidedelegation
- Get the client ID of the tenant directory service account
- Click on
Add newto add a new Client ID - Add the following scopes:
https://www.googleapis.com/auth/admin.directory.grouphttps://www.googleapis.com/auth/admin.directory.user.readonly
- Click on
Authorize
After this is done you should see something like the following:

- We recommend enabling Google Access Approval for your organization. This will log Google Access to your resources and require Google to get approval before accessing them.
Export billing data (tenants with their own billing account)¶
To present your cost data in Nais Console, your Cloud Billing data must be exported to a BigQuery dataset.
- Set up Cloud Billing data export to BigQuery
- We recommend creating a dedicated project for this export
- Enable the Detailed usage cost data export
- When the dataset is created, grant
nais-billing@nais.iotheBigQuery Data Viewerrole on the dataset - Notify the Nais team and include the project ID and dataset name