Default role with Authorization Extension

Hi guys I am new to auth0, I wonder if it is possible to automatically grant all new users a default role through Authorization Extension?

I have found a rule script for Authorization core, but seems it doesn’t work for authorization extension :frowning:

Thank you very much for help

Hi @xliu617,

Welcome to the Community!

Using a similar process to “How do I add a default role to a new user on first login?”, you can make an API call to the Authorization Extension API to add a new role to the user.

It shouldn’t be too complicated, let me know if you run into any issues.

Hi Dan,

Thank you very much for help :slight_smile:

I have also found the solution you linked. I have tried it but it seems the script (rules) only work for Authorization Core.
I wonder how to add those rules for the Authorization Extension?

Thank you very much

Yes, you should be able to call the authorization extension API to add the role to the user. (It looks like I added the wrong link in my original post. Here is the link to the authorization extension API docs.

Specifically, you can use this endpoint to add a role to your user in the authorization extension.

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