Permission claim empty if logging on using Organization

Hi @nahvinden,

Welcome to the Auth0 Community!

I understand that you encountered issues populating the permissions claim in the token when logging in with an Organization.

After testing this myself, I was able to reproduce the same observations as you. That is, the permissions array is empty when logging in with an Organization.

I will follow up with our Engineering teams to see if this is a bug.

For now, one workaround is to create a Post-Login action to add the Permissions as a custom claim in the token.

To do so, I recommend using the Management API in Actions to call the Get a User’s Permission endpoint to include the permissions into the Token.

Reference:

I hope this helps!

Please let me know how this goes for you.

Thanks,
Rueben

1 Like