Membership API Controls - Manage Roles and Users

S

Steven Nagy

Hi all,

I'm getting across the membership API stuff.
However it seems that we would have benefitted from some extra
controls for "Manage Users" and "Manage Roles".

Is there some additional controls for this somewhere? Perhaps some 3rd
party free ones?
Seems like the login toolbox is a little "incomplete" to me.

Cheers,
Steven
 
C

Cowboy \(Gregory A. Beamer\)

The API is easy enough to use on your own without additional
"administrative" controls. The focus of the Membership and Profile APIs is a
"help yourself" type of scenario. I agree that it could be improved with
other implementations, but it is not that hard to work around.
 
S

SAL

It is pretty easy like Cowboy says:

Get all roles:
Return Roles.GetAllRoles

Get users in a role
Roles.GetUsersInRole(roleName)

Add user to a role
Roles.AddUserToRole(user, role)

Remove a user from a role
Roles.RemoveUserFromRole(user, role)

HTH
S
 
S

Steven Nagy

Thanks guys.
I knew it would be easy.
I'm just wondering why MS opted to create a login control,
registration form, etc since it is that easy.
I guess I'm asking "Why both creating any controls if you're not going
to create them all?"

Cheers,
Steven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top