Webbo_1980
asked on
How can i call Membership.GetAllUsers but only get users within a specified role
How can i call Membership.GetAllUsers but only get users within a specified role.
I'm aware of Roles.GetUsersInRole("Comg em") however this doesnt return the membersip columns i'm looking for.
Is this possible, while maintaining the same results set returned by GetAllusers?
Thanks
I'm aware of Roles.GetUsersInRole("Comg
Is this possible, while maintaining the same results set returned by GetAllusers?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The MembershipUser itself has no knowledge of what roles a user belongs to, that has to be queried from the RoleProvider as you've shown.
But, if you can use linq, a pretty easy to query the objects to get what you're after:
Open in new window