ActiveDirectoryService.GetMembers Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
GetMembers(PrincipalContext, IdentityType, string, bool)
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<User> GetMembers(PrincipalContext context, IdentityType identityType, string identityValue, bool recursive)
Parameters
- context
- System.DirectoryServices.AccountManagement.PrincipalContext
- identity
Type - System.DirectoryServices.AccountManagement.IdentityType
A IdentityType enumeration value that specifies the format of the identityValue parameter.
- identity
Value - string
The identity of the user principal.
- recursive
- bool
Returns
System.Collections.Generic.IEnumerable
A list of User objects.