Limit user's Role to max of x

Hey guys,
I’m currently want to limit users to have max of one role
but i couldn’t find a way to limit it…
any ideas?

Hi @neilmi,

Welcome to the Auth0 Community!

This isn’t a setting we have in Auth0, but there are some ways you could throw an error if the user has more than one role. For example, you could create an Action that checks how many roles the user has and blocks the login if there is more than one.

With that said, you should be controlling how the user is assigned roles. What is the scenario where the user could end up with multiple roles without your applications allowing it?

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