Access roles of current logged in user

Hi Team,

I am working on blazor web assembly application and integrated Auth0 login screen.
Assigned Role to a logged-in user from Auth0 Dashboard. I want to try to access logged in user roles from blazor app, but not getting.

Tried with @context.User.IsInRole(“admin”) method which returns
always false.

Hi @rakeshkananigtu,

Welcome to the Community!

You can add the user’s roles to the token, and then you can check it out in your application.

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