Adding an Action to return Azure AD Groups for a user logging in

I have an Azure AD enterprise connection already setup and it working great. When I look at my user raw json data I also see that it has synced my Azure AD groups into my profile.

How do I get these groups into an id_token with an Action? I’ve seen some old answers using Rules but nothing with Actions.

I’ve tried a ton of things already and can’t seem to figure it out.

Thanks

Hi @chris392817,

Thanks for reaching out to the Auth0 Community!

Unfortunately, it is not possible to get groups in Actions. Instead, you must use Rules to get the top-level IdP attributes.

See How to access user.groups in Actions? for more information.

Please let me know if you have additional questions.
Thanks,
Rueben

1 Like

Thank you for the quick reply. I got it working with Rules.

1 Like

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