IList<User> FindUsersByNameOrGroup( string searchPattern, NameSearchField searchField, int groupId, bool searchByName, string sortExpression )
Parameters
- searchPattern
- The search pattern to check against the user table.
- searchField
- The name field to check against the search pattern.
- groupId
- Id of the group to match
- searchByName
- If true match is made for search pattern otherwise it is made on group
- sortExpression
- The sort expression to use for sorting the loaded objects.
Return Value
A collection of User objects matching the search criteria or group