Getting user roles in rules

Hello,

Just wanted to add that the user’s assigned roles are available in context.authorization.roles in the rules context. You use that data to then add the roles to the tokens (with context.accessToken with a custom claim).

Regards,
Justin

9 Likes