TestimoX

API Reference

Class

DirectoryQuery

Namespace ADPlayground.DirectoryQueries
Assembly ADPlayground
Modifiers static

Facade for common AD queries (Groups/Users/Computers) that accepts flexible identities (SID/DN/UPN/SAM/Friendly) and routes through the Identity layer. Includes a small TTL cache to avoid redundant lookups in a single run.

Inheritance

  • Object
  • DirectoryQuery

Methods

public static Void ClearCache() #
Returns: Void

Clears the in-memory identity/result cache.

GetAsync 2 overloads
public static async Task<List<UserRecord>> GetAsync(IEnumerable<String> identities, UserQueryOptions options = null, CancellationToken ct = null) #
Returns: Task<List<UserRecord>>

Mixed-identity retrieval for computers (SID/DN/UPN/SAM). Normalizes via IdentityResolver and fetches a minimal subset using sAMAccountName per domain where possible.

Parameters

identities System.Collections.Generic.IEnumerable{System.String} requiredposition: 0
options ADPlayground.ComputerQueryOptions = null optionalposition: 1
ct System.Threading.CancellationToken = null optionalposition: 2
GetAsync(System.Collections.Generic.IEnumerable{System.String} identities, ADPlayground.UserQueryOptions options, System.Threading.CancellationToken ct) #

Mixed-identity retrieval for users (SID/DN/UPN/SAM/friendly). Normalizes via IdentityResolver and fetches a minimal subset using sAMAccountName per domain where possible.

Parameters

identities System.Collections.Generic.IEnumerable{System.String} required
options ADPlayground.UserQueryOptions required
ct System.Threading.CancellationToken required
public static Void SetCacheTtl(TimeSpan ttl) #
Returns: Void

Sets the in-memory cache TTL used to avoid redundant lookups within a single run.

Parameters

ttl System.TimeSpan requiredposition: 0
Desired time-to-live; values <= 0 fallback to 1 second.