Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Retrieve a list of all users having a specific role View modes: 
User avatar
Member
Member
gatsby0121 - 11/25/2011 4:38:23 AM
   
Retrieve a list of all users having a specific role
I have looked into the UserInfoProvider class, and I can't find a method that returns all users. It has a where paramater, but the role table is not included in the procedure. Is there another way for me to do this?

User avatar
Member
Member
kentico_michal - 11/25/2011 4:45:53 AM
   
RE:Retrieve a list of all users having a specific role
Hello,

You can use the RoleInfoProvider.GetRoleUsers(int roleId) method that returns the table of the role users.

Best regards
Michal Legen

User avatar
Member
Member
gatsby0121 - 11/25/2011 6:08:15 AM
   
RE:Retrieve a list of all users having a specific role
Thanks, I had written something to do this, but I'll use this instead now that I know it exists.