TestimoX

API Reference

Class

Users (DirectoryQuery)

Namespace ADPlayground.DirectoryQueries.DirectoryQuery
Assembly ADPlayground
Modifiers static

User-centric helpers.

Inheritance

  • Object
  • Users

Methods

public static async Task<List<UserRecord>> GetBySamAsync(String domainName, IEnumerable<String> samAccountNames, UserProperties propertySet = Basic, CancellationToken ct = null) #
Returns: Task<List<UserRecord>>

Returns a subset of users by sAMAccountName within a single domain, using the existing UserGatherer for efficient, batched LDAP access (cached per domain/property set).

Parameters

domainName System.String requiredposition: 0
samAccountNames System.Collections.Generic.IEnumerable{System.String} requiredposition: 1
propertySet ADPlayground.Helpers.UserProperties = Basic optionalposition: 2
ct System.Threading.CancellationToken = null optionalposition: 3