Once user authenticated, how do I redirect the url based on role?

All I can think about is a naive way approaching this with a bunch of if statements for the roles. Is there a way where a user logs into an superadmin role the url would be url.com/admin and read/write/post/edit ability. Then another user logs into a writeadmin role and the url would be redirected to url.com/writedamin and read/write ability. The only difference would be slight ui changes of an edit button.

Is there a way to do this?

Hi @lester.hairston,

Welcome to the Auth0 Community Forum!

This could probably be achieved numerous ways. You could add the roll to the id token via a custom claim and then setup the pages and permissions on your end.