“G Suite domain names could not be retrieved” error in Hexnode UEMSolved

Participant
Discussion
7 days ago

Hey team,

We’re trying to add additional domains to the Hexnode UEM portal but keep hitting this error: “G Suite domain names could not be retrieved.”

We’ve updated the OAuth scopes and refreshed the domains, but no luck so far. The admin account seems to have the required privileges in Google Workspace, and the client ID matches the service account and API clients. Any idea what’s causing this?

Replies (3)

Marked SolutionPending Review
Participant
6 days ago
Marked SolutionPending Review

Hi @ronnie!

Have you checked if the directory domain scope https://www.googleapis.com/auth/admin.directory.domain is added?

This scope is essential for syncing domains, users, and user groups from Google Workspace to the Hexnode console. Without it, the sync will fail, resulting in the error message you’re encountering. Give it a try!

Marked SolutionPending Review
Participant
4 days ago
Marked SolutionPending Review

@remi Yes, I’ve added the directory domain scope you mentioned, but I’m still seeing the error in the Hexnode UEM portal.

Marked SolutionPending Review
Hexnode Expert
3 days ago
Marked SolutionPending Review

Hey @ronnie,
@remi is correct! The error usually pops up when the directory domain OAuth scope https://www.googleapis.com/auth/admin.directory.domain hasn’t been configured in the Google Admin console. Since you’ve already added it, the problem could be related to the admin account you’re using. It might not have the necessary permissions to fetch domain details from Google Workspace. Here’s how you can fix it:

  1. Assign the Super Admin role: Head to your Google Admin console and assign the Super Admin role to the account. This role comes with all the privileges required for managing domain settings.

    Assign super admin role to the admin account in Google Admin console

  2. Use a Custom Admin role: If you prefer not to use a Super Admin role, you can create a Custom Admin role with the necessary permissions. Make sure the custom role includes Domain Settings and Domain Management privileges.

    Create custom role settings to be configured in Google Admin console

Either of these solutions should fix the issue. After applying one of the solutions, try adding domains to your Hexnode UEM portal. If you run into any trouble while setting it up, feel free to reach out.

Regards
Ben Clarke
Hexnode UEM

Save