Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
1 answer
539 views

How to remove admin role permissions programatically?

I tried changing it via protected void RemoveRoles(User user) { using (new SecurityDisabler()) { UserRoles.FromUser(user).RemoveAll(); UserProfile profile =...
user1439090's user avatar