...
- Go to the below address to start the process:
https://console.developers.google.com/flows/enableapi?apiid=admin,calendar,classroom,drive,driveactivity.googleapis.com,gmail,groupssettings,licensing,plus,contacts - Once there, keep the selection "Create a project" and select Continue (we'll rename the project later)
- Agree to terms and select your Country of Residence – Agree and Continue
- Click Go to credentials
- Now we'll edit the project name before making the credentials, click the hamburger icon on the top right corner and choose Project Settings
- Rename your new project and Save
- Now a service account has to be created, click the hamburger icon in the top left corner and select Credentials under APIs & Services
- Select Create Credentials > Help Me Choose at the top of the page
- Fill out the form as seen below:
Which API are you using? > Admin SDK
What data will you be accessing? Application data
Are you planning to use this API with App Engine or Compute Engine? > No, I'm not using them
Click NEXT to continue - Click What credentials do I need?
- Enter a name for the service account. Remember this name for later
Click CREATE to continue - For the role make it Owner which is in the sub menu Project
Click CONTINUE to move on - On the Grant users access to this service account just click DONE to continue and you will return to the Credentials screen that now shows the Service Account
- Click Manage Service accounts
- Click the hamburger on the right side of the Service Account and then click Manage keys
- Click ADD KEY > Create new key here to create the JSON file that will be used by the FileWave server
- Click CREATE to create the file and then save the file when prompted
- You will now have the needed JSON file that will be used later
Enable Google Apps Domain-wide delegation
...
Authorize API scopes
- From the top left hamburger go to the Credentials section under APIs & Services
- Once there copy the Client ID you created in the earlier steps under the OAuth 2.0 client ID section.
- In your browser, open another tab and go to the Google Admin console
admin.google.com - Once there select Security
- Scroll down and select API Controls
- Click Manage Domain Wide Delegation
- Select Add new
- Paste the copied Client ID from step 2 in this section into the Client Name field
Copy and paste the following into the One or More API Scopes field all at once then hit Authorize
Code Block https://www.googleapis.com/auth/admin.directory.device.chromeos, https://www.googleapis.com/auth/admin.directory.customer, https://www.googleapis.com/auth/admin.directory.orgunit
- After you Authorize you should see the new entry below (your Client ID will be different)
...