Google - How to Setup Google API Service Account with Google G-Suite

Last updated About 2 months ago

Google - How to Setup Google API Service Account with Google G-Suite

There are 2 steps for setting up a Google API Service account with your Google G-Suite system.

Security Information:Β  Β  Setting up a service account is Google's preferred method for allowing 3rd party applications to have access to your systems data. Β  The security of this setup can be broken down into 2 main points:

1. Β User Account Created in Google G-Suite System - You will be creating a user account in your Google G-Suite system that we can impersonate with API calls. Β You should not share the password with us. Β  We do not need to login to the Google G-Suite system. Β We are only using the API Β to access information, and should never need to login. Β 

2. Β API Scopes - Β In later steps in the instructions you will be adding API scopes to the system. Β These scopes tell the Google G-Suite system we can only read basic user information and read your list of org units. Β The scopes are read only. Β They do not give us access to creating, updating, or deleting any information in your system.

The combination of these 2 items means we can only access your system through API, and our API access is limited to read only. Β 

Please let the Pathful representative know if you have any questions regarding the security of the setup.

Step 1:Β  Create a user in Google G-Suite with the User Management Admin role level.

  • We recommend creating a user vjs-admin@yourdomain.com

  • Let the VirtualJobShadow.com/VjsJunior.com developer know what username you have chosen.

Step 2:Β  Add Service Account client ID to the your Google G-Suite system.

  • In your Google G-Suite Admin ConsoleΒ go to Security section.

  • While in Security section, scroll down to the bottom of the page and click API Controls.

  • In API Controls section, click Manage Domain Wide Delegation at the bottom of the page.

  • Click Add New in the API Clients section.

  • Add the Client ID, check Overwrite existing Client ID, and add both of the Oauth Scopes and click Authorize.

    • Client ID : 117372373967232733069

    • Oauth Scope 1: Β https://www.googleapis.com/auth/admin.directory.user.readonly

    • Oauth Scope 2: Β https://www.googleapis.com/auth/admin.directory.orgunit.readonly

  • You are all done!