# Event.user.groups is not listing all the groups in auth0 actions

**URL:** <https://community.auth0.com/t/event-user-groups-is-not-listing-all-the-groups-in-auth0-actions/147620>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [September 20, 2024, 9:02am UTC](https://community.auth0.com/t/event-user-groups-is-not-listing-all-the-groups-in-auth0-actions/147620 "2024-09-20T09:02:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganesh.kumaresan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ganesh.kumaresan/32/49201_2.png) [@ganesh.kumaresan](https://community.auth0.com/u/ganesh.kumaresan)\
**Post date:** [September 20, 2024, 9:02am UTC](https://community.auth0.com/t/event-user-groups-is-not-listing-all-the-groups-in-auth0-actions/147620/1 "2024-09-20T09:02:37Z")

</div>

Hi Team,

There are some groups has been defined in auth0 - authorization. I expect all the groups would be listed in event.user.groups in auth0 action. But it is not listing the groups defined in auth0 - authorization page.

Should I follow any other approach to fetch all the groups. (Earlier we have used user.groups in rules which lists all the groups).

I am migrating rules to auth0 action. user.groups in rules and event.user.groups are not listing same values.

Thanks!

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 20, 2024, 9:08pm UTC](https://community.auth0.com/t/event-user-groups-is-not-listing-all-the-groups-in-auth0-actions/147620/3 "2024-09-20T21:08:26Z")

</div>

Hi @ganesh.kumaresan,

The `event.user.groups` property only returns the groups defined by the IdP.

If you need to get groups defined from RBAC, you need to use the Management API in Actions. Check out our [Using the Management API in Actions](https://community.auth0.com/t/using-the-management-api-in-actions/64947) documentation for an example of using the Management API to get the user’s Roles.

If you continue having difficulties, could you share the Rule and Action script you have so far?

Thanks,  
Rueben

---

<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:** [October 4, 2024, 9:09pm UTC](https://community.auth0.com/t/event-user-groups-is-not-listing-all-the-groups-in-auth0-actions/147620/4 "2024-10-04T21:09:02Z")

</div>

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