# How to solve “Unable to get groups: unauthorized” in a 'Google Workspace' Enterprise connection?

**URL:** <https://community.auth0.com/t/how-to-solve-unable-to-get-groups-unauthorized-in-a-google-workspace-enterprise-connection/133865>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [May 10, 2024, 3:53pm UTC](https://community.auth0.com/t/how-to-solve-unable-to-get-groups-unauthorized-in-a-google-workspace-enterprise-connection/133865 "2024-05-10T15:53:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arilsonbarcelos](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/arilsonbarcelos/32/49596_2.png) [@arilsonbarcelos](https://community.auth0.com/u/arilsonbarcelos)\
**Post date:** [May 10, 2024, 3:53pm UTC](https://community.auth0.com/t/how-to-solve-unable-to-get-groups-unauthorized-in-a-google-workspace-enterprise-connection/133865/1 "2024-05-10T15:53:49Z")

</div>

Hello, everyone!

I’m trying to get information about groups when users log in using a ‘Google Workspace’ Enterprise connection. I’ve checked “Extended Attributes \> Groups” in the connection settings, but I’m getting the error “Unable to get groups: unauthorized” in the logs.

How to solve it?

Thank you for helping!

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [February 28, 2025, 8:24pm UTC](https://community.auth0.com/t/how-to-solve-unable-to-get-groups-unauthorized-in-a-google-workspace-enterprise-connection/133865/3 "2025-02-28T20:24:36Z")

</div>

Hi there,

Thank you for reaching out to us!

Wanted to provide some information here, in case others are also facing this issue, but I recommend checking out the solution from this following [Community Post](https://community.auth0.com/t/how-to-map-users-roles-or-groups-from-google-for-use-in-auth0/133861/6), where the same issue seems to have been resolved.

Adding a few additional resources to help out :

- [http://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp](http://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp)
- You should be able to use the following endpoint to retrieve groups: [Method: groups.list &nbsp;|&nbsp; Admin console &nbsp;|&nbsp; Google for Developers](https://developers.google.com/admin-sdk/directory/reference/rest/v1/groups/list)

Hope this helped!  
Gerald

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 14, 2025, 8:24pm UTC](https://community.auth0.com/t/how-to-solve-unable-to-get-groups-unauthorized-in-a-google-workspace-enterprise-connection/133865/4 "2025-03-14T20:24:48Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
