Get a filtered list of users based on a number of criteria and filters - utilised for advanced searches

Namespace: DotNetNuke.Entities.Users
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
IList<UserInfo> GetUsersAdvancedSearch(
	int portalId,
	int userId,
	int filterUserId,
	int filterRoleId,
	int relationTypeId,
	bool isAdmin,
	int pageIndex,
	int pageSize,
	string sortColumn,
	bool sortAscending,
	string propertyNames,
	string propertyValues
)
Visual Basic
Function GetUsersAdvancedSearch ( 
	portalId As Integer,
	userId As Integer,
	filterUserId As Integer,
	filterRoleId As Integer,
	relationTypeId As Integer,
	isAdmin As Boolean,
	pageIndex As Integer,
	pageSize As Integer,
	sortColumn As String,
	sortAscending As Boolean,
	propertyNames As String,
	propertyValues As String
) As IList(Of UserInfo)

Parameters

portalId
Type: System..::..Int32
the portalid of the user(s)
userId
Type: System..::..Int32
the userid accessing - for determining correct visibility permissions
filterUserId
Type: System..::..Int32
for filtering relationships on
filterRoleId
Type: System..::..Int32
for filtering by roles
relationTypeId
Type: System..::..Int32
for filtering by relationships
isAdmin
Type: System..::..Boolean
determines visibility
pageIndex
Type: System..::..Int32
0 based page index
pageSize
Type: System..::..Int32
page size
sortColumn
Type: System..::..String
sort field
sortAscending
Type: System..::..Boolean
sort flag indicating whether sort is asc or desc
propertyNames
Type: System..::..String
list of property names to filter
propertyValues
Type: System..::..String
list of property values to filter

Return Value

Users as a list of UserInfo objects

See Also