Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

How to remove Roles

$
0
0

I added these roles in my code.

if (!Roles.RoleExists("Administrators"))
                Roles.CreateRole("Administrators");

            //create intern roles if they don't exist
            if (!Roles.RoleExists("Intern"))
                Roles.CreateRole("Intern");

Everything works just fine with my app in IIS. However, now I want to remove both of these roles. Is there a way to remove them?

I tried to recycle my web app in IIS, didn't seem to work.

Where are the roles stored when they are first created? just curious.

Please advise.

Thanks


Viewing all articles
Browse latest Browse all 4737

Trending Articles