API Reference
GroupMembershipResolver
Resolves Active Directory group memberships.
Inheritance
- Object
- GroupMembershipResolver
Constructors
public GroupMembershipResolver(String domainController = null, NetworkCredential credential = null, Nullable<TimeSpan> timeout = null, Int32 maxDepth = 256, Int32 maxCacheSize = 10000, Nullable<Int32> maxBatchSize = null) #Initializes a new instance of the resolver.
Parameters
- domainController System.String = null
- Optional domain controller to query.
- credential System.Net.NetworkCredential = null
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan} = null
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32 = 256
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32 = 10000
- Maximum cache size. Defaults to 10000 entries.
- maxBatchSize System.Nullable{System.Int32} = null
- Maximum number of members processed concurrently. Defaults to 10.
Methods
public static IAsyncEnumerable<GroupMembershipEntry> EnumerateMembersAsync(IEnumerable<String> groupIdentities, String domainController = null, NetworkCredential credential = null, Nullable<TimeSpan> timeout = null, Int32 maxDepth = 256, Int32 maxCacheSize = 10000, CancellationToken ct = null) #IAsyncEnumerable<GroupMembershipEntry>Enumerates members for a single group using a shared cache.
Parameters
- groupIdentity System.String
- Group identity in DN, SID, UPN or SAM format.
- domainController System.String = null
- Optional domain controller to query.
- credential System.Net.NetworkCredential = null
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan} = null
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32 = 256
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32 = 10000
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken = null
- A cancellation token.
EnumerateMembersAsync(System.Collections.Generic.IEnumerable{System.String} groupIdentities, System.String domainController, System.Net.NetworkCredential credential, System.Nullable{System.TimeSpan} timeout, System.Int32 maxDepth, System.Int32 maxCacheSize, System.Threading.CancellationToken ct) #Enumerates members for multiple groups using a shared cache.
Parameters
- groupIdentities System.Collections.Generic.IEnumerable{System.String}
- Group identities in DN, SID, UPN or SAM format.
- domainController System.String
- Optional domain controller to query.
- credential System.Net.NetworkCredential
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan}
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken
- A cancellation token.
public IAsyncEnumerable<GroupMembershipEntry> EnumerateMembersAsync(IEnumerable<String> groupIdentities, CancellationToken ct) #IAsyncEnumerable<GroupMembershipEntry>Enumerates members of the specified group.
Parameters
- groupIdentity System.String
- Group identity in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
EnumerateMembersAsync(System.String[] groupIdentities, System.Threading.CancellationToken ct) #Enumerates members of the specified groups.
Parameters
- groupIdentities System.String[]
- Group identities in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
EnumerateMembersAsync(System.Collections.Generic.IEnumerable{System.String} groupIdentities, System.Threading.CancellationToken ct) #Enumerates members of the specified groups.
Parameters
- groupIdentities System.Collections.Generic.IEnumerable{System.String}
- Group identities in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
public static GroupMembershipResult ResolveMembers(IEnumerable<String> groupIdentities, String domainController = null, NetworkCredential credential = null, Nullable<TimeSpan> timeout = null, Int32 maxDepth = 256, Int32 maxCacheSize = 10000, CancellationToken ct = null) #GroupMembershipResultResolves members for a single group using a shared cache.
Parameters
- groupIdentity System.String
- Group identity in DN, SID, UPN or SAM format.
- domainController System.String = null
- Optional domain controller to query.
- credential System.Net.NetworkCredential = null
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan} = null
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32 = 256
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32 = 10000
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken = null
- A cancellation token.
ResolveMembers(System.String[] groupIdentities, System.String domainController, System.Net.NetworkCredential credential, System.Nullable{System.TimeSpan} timeout, System.Int32 maxDepth, System.Int32 maxCacheSize, System.Threading.CancellationToken ct) #Resolves members for multiple groups using a shared cache.
Parameters
- groupIdentities System.String[]
- Group identities in DN, SID, UPN or SAM format.
- domainController System.String
- Optional domain controller to query.
- credential System.Net.NetworkCredential
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan}
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveMembers(System.Collections.Generic.IEnumerable{System.String} groupIdentities, System.String domainController, System.Net.NetworkCredential credential, System.Nullable{System.TimeSpan} timeout, System.Int32 maxDepth, System.Int32 maxCacheSize, System.Threading.CancellationToken ct) #Resolves members for multiple groups using a shared cache.
Parameters
- groupIdentities System.Collections.Generic.IEnumerable{System.String}
- Group identities in DN, SID, UPN or SAM format.
- domainController System.String
- Optional domain controller to query.
- credential System.Net.NetworkCredential
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan}
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken
- A cancellation token.
public GroupMembershipResult ResolveMembers(IEnumerable<String> groupIdentities, CancellationToken ct) #GroupMembershipResultGets members of the specified group.
Parameters
- groupIdentity System.String
- Group identity in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveMembers(System.String[] groupIdentities, System.Threading.CancellationToken ct) #Gets members of the specified groups.
Parameters
- groupIdentities System.String[]
- Group identities in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveMembers(System.Collections.Generic.IEnumerable{System.String} groupIdentities, System.Threading.CancellationToken ct) #Gets members of the specified groups.
Parameters
- groupIdentities System.Collections.Generic.IEnumerable{System.String}
- Group identities in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
public static async Task<GroupMembershipResult> ResolveMembersAsync(IEnumerable<String> groupIdentities, String domainController = null, NetworkCredential credential = null, Nullable<TimeSpan> timeout = null, Int32 maxDepth = 256, Int32 maxCacheSize = 10000, CancellationToken ct = null) #Task<GroupMembershipResult>Resolves members for a single group using a shared cache.
Parameters
- groupIdentity System.String
- Group identity in DN, SID, UPN or SAM format.
- domainController System.String = null
- Optional domain controller to query.
- credential System.Net.NetworkCredential = null
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan} = null
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32 = 256
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32 = 10000
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken = null
- A cancellation token.
ResolveMembersAsync(System.String[] groupIdentities, System.String domainController, System.Net.NetworkCredential credential, System.Nullable{System.TimeSpan} timeout, System.Int32 maxDepth, System.Int32 maxCacheSize, System.Threading.CancellationToken ct) #Resolves members for multiple groups using a shared cache.
Parameters
- groupIdentities System.String[]
- Group identities in DN, SID, UPN or SAM format.
- domainController System.String
- Optional domain controller to query.
- credential System.Net.NetworkCredential
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan}
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveMembersAsync(System.Collections.Generic.IEnumerable{System.String} groupIdentities, System.String domainController, System.Net.NetworkCredential credential, System.Nullable{System.TimeSpan} timeout, System.Int32 maxDepth, System.Int32 maxCacheSize, System.Threading.CancellationToken ct) #Resolves members for multiple groups using a shared cache.
Parameters
- groupIdentities System.Collections.Generic.IEnumerable{System.String}
- Group identities in DN, SID, UPN or SAM format.
- domainController System.String
- Optional domain controller to query.
- credential System.Net.NetworkCredential
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan}
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken
- A cancellation token.
public Task<GroupMembershipResult> ResolveMembersAsync(IEnumerable<String> groupIdentities, CancellationToken ct) #Task<GroupMembershipResult>Gets members of the specified group.
Parameters
- groupIdentity System.String
- Group identity in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveMembersAsync(System.String[] groupIdentities, System.Threading.CancellationToken ct) #Gets members of the specified groups.
Parameters
- groupIdentities System.String[]
- Group identities in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveMembersAsync(System.Collections.Generic.IEnumerable{System.String} groupIdentities, System.Threading.CancellationToken ct) #Gets members of the specified groups.
Parameters
- groupIdentities System.Collections.Generic.IEnumerable{System.String}
- Group identities in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
public static GroupParentResult ResolveParentGroups(IEnumerable<String> identities, String domainController = null, NetworkCredential credential = null, Nullable<TimeSpan> timeout = null, Int32 maxDepth = 256, Int32 maxCacheSize = 10000, CancellationToken ct = null) #GroupParentResultGets parent groups of the specified identity using a shared cache.
Parameters
- identity System.String
- Object identity in DN, SID, UPN or SAM format.
- domainController System.String = null
- Optional domain controller to query.
- credential System.Net.NetworkCredential = null
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan} = null
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32 = 256
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32 = 10000
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken = null
- A cancellation token.
ResolveParentGroups(System.String[] identities, System.String domainController, System.Net.NetworkCredential credential, System.Nullable{System.TimeSpan} timeout, System.Int32 maxDepth, System.Int32 maxCacheSize, System.Threading.CancellationToken ct) #Gets parent groups of the specified identities using a shared cache.
Parameters
- identities System.String[]
- Object identities in DN, SID, UPN or SAM format.
- domainController System.String
- Optional domain controller to query.
- credential System.Net.NetworkCredential
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan}
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveParentGroups(System.Collections.Generic.IEnumerable{System.String} identities, System.String domainController, System.Net.NetworkCredential credential, System.Nullable{System.TimeSpan} timeout, System.Int32 maxDepth, System.Int32 maxCacheSize, System.Threading.CancellationToken ct) #Gets parent groups of the specified identities using a shared cache.
Parameters
- identities System.Collections.Generic.IEnumerable{System.String}
- Object identities in DN, SID, UPN or SAM format.
- domainController System.String
- Optional domain controller to query.
- credential System.Net.NetworkCredential
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan}
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken
- A cancellation token.
public GroupParentResult ResolveParentGroups(IEnumerable<String> identities, CancellationToken ct) #GroupParentResultGets parent groups of the specified identity.
Parameters
- identity System.String
- Object identity in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveParentGroups(System.String[] identities, System.Threading.CancellationToken ct) #Gets parent groups of the specified identities.
Parameters
- identities System.String[]
- Object identities in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveParentGroups(System.Collections.Generic.IEnumerable{System.String} identities, System.Threading.CancellationToken ct) #Gets parent groups of the specified identities.
Parameters
- identities System.Collections.Generic.IEnumerable{System.String}
- Object identities in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
public static async Task<GroupParentResult> ResolveParentGroupsAsync(IEnumerable<String> identities, String domainController = null, NetworkCredential credential = null, Nullable<TimeSpan> timeout = null, Int32 maxDepth = 256, Int32 maxCacheSize = 10000, CancellationToken ct = null) #Task<GroupParentResult>Gets parent groups of the specified identity using a shared cache.
Parameters
- identity System.String
- Object identity in DN, SID, UPN or SAM format.
- domainController System.String = null
- Optional domain controller to query.
- credential System.Net.NetworkCredential = null
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan} = null
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32 = 256
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32 = 10000
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken = null
- A cancellation token.
ResolveParentGroupsAsync(System.String[] identities, System.String domainController, System.Net.NetworkCredential credential, System.Nullable{System.TimeSpan} timeout, System.Int32 maxDepth, System.Int32 maxCacheSize, System.Threading.CancellationToken ct) #Gets parent groups of the specified identities using a shared cache.
Parameters
- identities System.String[]
- Object identities in DN, SID, UPN or SAM format.
- domainController System.String
- Optional domain controller to query.
- credential System.Net.NetworkCredential
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan}
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveParentGroupsAsync(System.Collections.Generic.IEnumerable{System.String} identities, System.String domainController, System.Net.NetworkCredential credential, System.Nullable{System.TimeSpan} timeout, System.Int32 maxDepth, System.Int32 maxCacheSize, System.Threading.CancellationToken ct) #Gets parent groups of the specified identities using a shared cache.
Parameters
- identities System.Collections.Generic.IEnumerable{System.String}
- Object identities in DN, SID, UPN or SAM format.
- domainController System.String
- Optional domain controller to query.
- credential System.Net.NetworkCredential
- Optional credentials used for binding.
- timeout System.Nullable{System.TimeSpan}
- Optional LDAP connection timeout. Defaults to 30 seconds.
- maxDepth System.Int32
- Maximum recursion depth. Defaults to 256.
- maxCacheSize System.Int32
- Maximum cache size. Defaults to 10000 entries.
- ct System.Threading.CancellationToken
- A cancellation token.
public Task<GroupParentResult> ResolveParentGroupsAsync(IEnumerable<String> identities, CancellationToken ct) #Task<GroupParentResult>Gets parent groups of the specified identity.
Parameters
- identity System.String
- Object identity in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveParentGroupsAsync(System.String[] identities, System.Threading.CancellationToken ct) #Gets parent groups of the specified identities.
Parameters
- identities System.String[]
- Object identities in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.
ResolveParentGroupsAsync(System.Collections.Generic.IEnumerable{System.String} identities, System.Threading.CancellationToken ct) #Gets parent groups of the specified identities.
Parameters
- identities System.Collections.Generic.IEnumerable{System.String}
- Object identities in DN, SID, UPN or SAM format.
- ct System.Threading.CancellationToken
- A cancellation token.