Fortinet black logo

Online Help

Grant Service Account API Access

Copy Link
Copy Doc ID 623e79e5-e0e1-11eb-97f7-00505692583a:109217

Grant Service Account API Access

  1. Click the Navigation Menu in the upper-left corner of the page, and then select IAM & admin > Service Accounts.
  2. In the Domain-wide delegation column, click View Client ID.
  3. In the pop-up window, save the client ID for step 7.
  4. Go to https://admin.google.com and log into the same Google account.
  5. Scroll down and click on More Controls > Security.
  6. In Security, scroll down and select Advanced Settings.
  7. Click Manage API client access.
  8. In the Client Name field, enter the Client ID saved in Step 3. Your Client ID must be a string of numbers.
  9. In the One or More API Scopes field, enter:

"https://www.googleapis.com/auth/admin.directory.user,https://www.googleapis.com/auth/admin.reports.audit.readonly".

After getting your service account ID and JSON private key, grant the service account with Owner and Organization Administrator role for the projects to be monitored.

Grant Service Account API Access

  1. Click the Navigation Menu in the upper-left corner of the page, and then select IAM & admin > Service Accounts.
  2. In the Domain-wide delegation column, click View Client ID.
  3. In the pop-up window, save the client ID for step 7.
  4. Go to https://admin.google.com and log into the same Google account.
  5. Scroll down and click on More Controls > Security.
  6. In Security, scroll down and select Advanced Settings.
  7. Click Manage API client access.
  8. In the Client Name field, enter the Client ID saved in Step 3. Your Client ID must be a string of numbers.
  9. In the One or More API Scopes field, enter:

"https://www.googleapis.com/auth/admin.directory.user,https://www.googleapis.com/auth/admin.reports.audit.readonly".

After getting your service account ID and JSON private key, grant the service account with Owner and Organization Administrator role for the projects to be monitored.