ActiveDirectoryService.SearchGroups Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

SearchGroups(PrincipalContext, string, int, int)

Returns a paged list of Role objects from Active Directory.

public static PagedList<Role> SearchGroups(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. Adm* will return both Admins and Administrators.

top
int
skip
int

Returns

Weavy.Core.Collections.PagedList

A paged list of Role objects.