ActiveDirectoryService.SearchUsers Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
SearchUsers(PrincipalContext, string, int, int)
Returns a paged list of User objects from Active Directory.
public static PagedList<User> SearchUsers(PrincipalContext context, string name, int top = 25, int skip = 0)
Parameters
- context
- System.DirectoryServices.AccountManagement.PrincipalContext
- name
- string
The name to search for. Wildcards are allowed, e.g. Joh* will return both John and Johan.
- top
- int
- skip
- int
Returns
Weavy.Core.Collections.PagedList
A paged list of User objects.