Google Workspace Configuration User Provisioning
Step 1:
Log in to the Google Cloud Console.
Navigate to "Enabled APIs and Services" and enable the Admin SDK API.
Link - https://console.cloud.google.com/
Search “APIs and Services”.
Step 2:
Click on the "Create Credentials" button.
Choose "Service Account" from the options.
Assign a name to the Service account.
Next, click on Create and continue.
Keep the default settings and click on Continue.
In the service account section, you can view the service account that you have created.
Select the KEYS tab.
Click on "Add Key" and select "Create New Key".
Choose the JSON option and click on "Create". It will automatically download the credentials.json file.
Step 3:
Log in to [https://admin.google.com/].
In the side menu, go to Security → Access and data controls → API controls.
Select Domain-wide delegation.
Click the "Add New" button.
Paste the Client ID obtained from the credentials.json file.
Include the following scopes in that section.
[ https://www.googleapis.com/auth/admin.directory.user]
[ https://www.googleapis.com/auth/admin.directory.group ]
Once all the fields are completed, Authorise button will be enabled click and proceed to complete the setup
Note: The above procedures can only be performed by a SuperAdmin.