public IList<User> FindUsersByNameOrGroup( string searchPattern, NameSearchField searchField, int groupId, bool searchByName, int maximumRows, int startRowIndex, 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, pass zero (0) to search users having no group
- searchByName
- If true match is made for search pattern otherwise it is made on group
- maximumRows
- Maximum number of rows to retrieve.
- startRowIndex
- Starting index from where to start retrieving.
- sortExpression
- The sort expression to use for sorting the loaded objects.
Return Value
A collection of User objects matching the search criteria or group