Add the Zluri's service Account client Id in the Admin Console.

A Super Administrator of the Google Workspace Domain must complete the following steps:

  1. From your Google Workspace domain’s Admin console, Go to Main menu > Security > API Controls.

  2. In the Domain wide delegation pane, select Manage Domain Wide Delegation.

  3. Click Add new.

  4. In the Client ID field, enter the Zluri service account's Client ID = ''.

  5. In the OAuth scopes (comma-delimited) field, enter the list of scopes that your application should be granted access to.

    1. Directory APIs

      1. https://www.googleapis.com/auth/admin.directory.domain.readonly

      2. https://www.googleapis.com/auth/admin.directory.group.readonly

      3. https://www.googleapis.com/auth/admin.directory.orgunit.readonly

      4. https://www.googleapis.com/auth/admin.directory.user.readonly

    2. Reports API

      1. https://www.googleapis.com/auth/admin.reports.audit.readonly

      2. https://www.googleapis.com/auth/admin.reports.usage.readonly

    3. Licensing APIs

      1. https://www.googleapis.com/auth/apps.licensing

  6. Copy and Paste the following scopes in the text box.

    https://www.googleapis.com/auth/admin.directory.domain.readonly,https://www.googleapis.com/auth/admin.directory.group.readonly,https://www.googleapis.com/auth/admin.directory.orgunit.readonly,https://www.googleapis.com/auth/admin.directory.user.readonly,https://www.googleapis.com/auth/admin.reports.audit.readonly,https://www.googleapis.com/auth/admin.reports.usage.readonly,https://www.googleapis.com/auth/admin.directory.user.security,https://www.googleapis.com/auth/apps.licensing
  7. Click Authorize.

Read More : https://developers.google.com/identity/protocols/oauth2/service-account#delegatingauthority

Did this answer your question?