Assign a default role when using Authorization extension


I am new to Auth0. Using it with SPA. I want to assign a default role to a user, in case if no roles are assigned. How do we do that.

Shall I call auth0 api, after changing the scope (update: users) in auth0 or we can create any rule to do this correctly.

Hi Prachi, you may want to check out Actions. They allow you to hook into common flows tied to Auth0, and in there you can check a user’s roles and edit them accordingly.

Hope this helps!