Skip to content

Commit

Permalink
Change: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzlyn committed Apr 20, 2021
1 parent d4f438b commit d4f19d0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,26 @@ ISAS Implementation for User- and Group Management in Google Workspace (formerly

Go to [IAM service accounts](https://console.developers.google.com/iam-admin/serviceaccounts) and create a Service account.
* enter Service account name
* add yourself to 'Grant users access to this service account
* download the key as JSON
* add yourself to 'Grant users access to this service account'

#### **Add key**
In the Service account overview open the 'Actions' menu on the right of the dedicated service account and choose **Manage keys**.
Click on 'Add key' and create a new key in JSON format, this key will be used for Terraform.

#### **Add domain-wide delegation for GSuite**
In the Service account overview open the 'Actions' menu on the right of the dedicated service account and choose **Manage details**.

Open this part below and **Enable GSuite Domain-wide Delegation**.
* Enter Product name, f.e. Terraform GSuite service
* add impersonate user account (default: self). This account will do the terraform job and needs admin permission.
* the impersonated user account will do the terraform job and needs admin permission.
* copy ID for next step

#### **Grant Google Workspace admin permissions**
Now go to [Google Admin Console](https://admin.google.com) and open the Burger menu on the left. Choose **Security** > **API controls**.

Get the Service account with the ID provided before (Service account details), then add the following oauth scopes:
```
https://www.googleapis.com/auth/admin.directory.user, https://www.googleapis.com/auth/admin.directory.group
https://www.googleapis.com/auth/admin.directory.user, https://www.googleapis.com/auth/admin.directory.userschema, https://www.googleapis.com/auth/admin.directory.group, https://www.googleapis.com/auth/apps.groups.settings
```

## Usage
Expand Down

0 comments on commit d4f19d0

Please sign in to comment.