Get the users in a role (as User objects)
Namespace: DotNetNuke.Security.RolesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
IList<UserInfo> GetUsersByRole( int portalId, string roleName ) |
Visual Basic |
---|
Function GetUsersByRole ( portalId As Integer, roleName As String ) As IList(Of UserInfo) |
Parameters
- portalId
- Type: System..::..Int32
Id of the portal (If -1 all roles for all portals are retrieved.
- roleName
- Type: System..::..String
The role to fetch users for