I'm having trouble working out how to quickly find out yes/no is a username in a role? I've gotten as far as:
Roles.FindUsersInRole("Admin", usersName)
But am a bit stuck, any easy way of doing this?
I'm having trouble working out how to quickly find out yes/no is a username in a role? I've gotten as far as:
Roles.FindUsersInRole("Admin", usersName)
But am a bit stuck, any easy way of doing this?
There is a better way just with
The below returns true or false depending on if the specified user is in the specified role
So, for example, if you wanted to remove a user from a specific role you could use