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

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!

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 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

1 Like

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