How to create a RBAC rule based on user roles

How to create a rule that is based on user’s role where the role is created within Auth0. This role assignment is not adding up to users metadata.

Hi @karthick.vankayala,

Welcome to the Community!

When you use Auth0 Authorization Core (i.e., assign roles in the dashboard), you can access the user’s roles in rules with context.authorization.roles (Sample Use Cases: Rules with Authorization).

You may want to consider using a post-login Action instead, in which case you can use event.authorization.roles