Delegate domain-wide authority to your service account
Steps
-
From your domain's Admin console, go to Main menu > Security > Access and data control > API controls.
-
In the Domain wide delegation pane, select Manage Domain Wide Delegation.
-
Click Add new.
- In the Client ID field, enter the client ID obtained from the service account creation steps above.
-
In the OAuth Scopes field, enter a comma-delimited list of the scopes required for the application.
-
Use the below scopes:
- For scanning
- https://www.googleapis.com/auth/admin.directory.user.readonly
- https://www.googleapis.com/auth/admin.directory.group.readonly
- https://www.googleapis.com/auth/drive.readonly
- For revoke permissions
- https://www.googleapis.com/auth/drive
- For tagging
- https://www.googleapis.com/auth/drive.file
- https://www.googleapis.com/auth/drive
- https://www.googleapis.com/auth/drive.admin.labels
- https://www.googleapis.com/auth/drive.metadata
- https://www.googleapis.com/auth/drive.labels
- For scanning
- Click Authorize.