Quantcast
Channel: Security Vulnerability
Viewing all articles
Browse latest Browse all 317

list all the roles the user is in

$
0
0

When a user opens my web app, I want to list all the roles the user is in. How do I extract roles from HttpContext.Current.User ?

I am able to check if the user is in a role with HttpContext.Current.User.IsInRole but I want to list what roles the user has. 


Viewing all articles
Browse latest Browse all 317

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>