TestimoX

API Reference

Class

TemporaryAdminTracker

Namespace ADPlayground.Audit
Assembly ADPlayground
Modifiers sealed

Tracks privileged group membership changes and records them with timestamps.

Inheritance

  • Object
  • TemporaryAdminTracker

Constructors

public TemporaryAdminTracker(String logPath, Func<String, HashSet<String>> resolver = null) #

Initializes a new instance of the TemporaryAdminTracker class.

Parameters

logPath System.String requiredposition: 0
Path to the JSON log file.
resolver System.Func{System.String,System.Collections.Generic.HashSet{System.String}} = null optionalposition: 1
Optional delegate used to resolve group members.

Methods

public static IReadOnlyList<TemporaryAdminEvent> Load(String path) #
Returns: IReadOnlyList<TemporaryAdminEvent>

Loads change events from a log file.

Parameters

path System.String requiredposition: 0
Path to the JSON log file.

Returns

Collection of events.

public static Task<IReadOnlyList<TemporaryAdminEvent>> LoadAsync(String path, CancellationToken cancellationToken = null) #
Returns: Task<IReadOnlyList<TemporaryAdminEvent>>

Loads change events from a log file.

Parameters

path System.String requiredposition: 0
Path to the JSON log file.
cancellationToken System.Threading.CancellationToken = null optionalposition: 1
Token to cancel the operation.

Returns

Collection of events.

public Void RecordChanges(String groupDn) #
Returns: Void

Checks the group for membership changes and records them.

Parameters

groupDn System.String requiredposition: 0
Distinguished name of the group.
public Task SaveAsync(CancellationToken cancellationToken = null) #
Returns: Task

Saves change events to the log file.

Parameters

cancellationToken System.Threading.CancellationToken = null optionalposition: 0
Token to cancel the operation.
public Void TrackGroup(String groupDn) #
Returns: Void

Stores the current membership of a group for comparison.

Parameters

groupDn System.String requiredposition: 0
Distinguished name of the group.

Properties

public IReadOnlyList<TemporaryAdminEvent> Events { get; } #

Gets recorded membership changes.