ActiveDirectoryService.GetMembers Method

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

GetMembers(PrincipalContext, IdentityType, String, Boolean)

Get the members of the specified role. When the recursive flag is set to true, this method searches the specified role recursively and returns all nested role members.

public static IEnumerable GetMembers(PrincipalContext context, IdentityType identityType, string identityValue, bool recursive)

Parameters

context
System.DirectoryServices.AccountManagement.PrincipalContext
identityType
System.DirectoryServices.AccountManagement.IdentityType
identityValue
System.String
recursive
System.Boolean

Returns

System.Collections.Generic.IEnumerable{Weavy.Core.Models.User}

A list of objects.