NIM

Add a Google Workspace system
  1. Go to Systems > Overview.

    2021-05-04_12-14-52.png
  2. Click Add.

  3. Select Google for System Type.

  4. Enter a System Name.

    2021-07-08_12-01-54.png
  5. Click Save.

  6. The new System is added to the Configured Systems pane.

    2021-07-08_12-05-13.png
  7. In a new tab, go to the Google Cloud Platform console at https://console.cloud.google.com/.

  8. Create a new project named NIMproject and switch to it.

  9. Expand the menu and go to APIs & Services > Library.

  10. Search for and enable the following APIs:

    • Admin SDK API

  11. Expand the menu and go to APIs & Services > OAuth Consent Screen.

  12. Select the Internal user type and click Create. Enter NIM for the App Name. Enter a relevant User Support Email and Developer Email Address. Click Save And Continue.

  13. On the Scopes page, click Save And Continue.

  14. On the Summary page, click Back To Dashboard.

  15. Expand the menu and go to APIs & Services > Credentials.

  16. Click Create Credentials > Service Account.

  17. For the Service Account Name, enter NIM. Accept the default generated Service Account ID value. Click Create and Continue. Click Done.

  18. Click the pencil icon to edit the newly created NIM service account. On the Details tab, click Show Domain-Wide Delegation to expand it. Select the Enable Google Workspace Domain-Wide Delegation checkbox. Click Save. Copy the Email and Unique ID to a local text editor application.

  19. Go to the Keys tab. Click Add Key > Create New Key. Select P12. Click Create. The .p12 file is downloaded. Copy the Private Key Password (notasecret) to a local text editor application. Click Close.

  20. Go to the Google Admin Console at https://admin.google.com/.

  21. Go to Security > Settings > API Controls.

  22. Click Manage Domain-Wide Delegation.

  23. Click Add New.

  24. Paste the Unique ID you copied earlier into the Client ID field.

  25. In the OAuth Scopes (Comma-Delimited) field, enter https://www.googleapis.com/auth/admin.directory.user,https://www.googleapis.com/auth/admin.directory.group,https://www.googleapis.com/auth/admin.directory.orgunit,https://www.googleapis.com/auth/admin.directory.rolemanagement.

  26. Click Authorize. The new OAuth application is added with 4 scopes.

  27. Return to your NIM browser tab. Add a certificate using the .p12 certificate you downloaded earlier, and the password you copied (notasecret). Name the certificate Google.

  28. In NIM, edit the Google system you created previously. See Edit a system.

  29. For the Application (Client) ID, paste the service account Email you copied previously. For the Directory (Tenant) ID, enter the email address you use to log in to Google Cloud Platform. For the Certificate, select the Google certificate you just added.

    2021-07-15_14-44-39.png
  30. Click Save.

  31. Click Test Connection. A success message is returned.

    2021-05-17_10-00-11.png