API Reference
AdminAccountInfo
Represents comprehensive information for an account with adminCount=1. Enhanced with additional account status and staleness indicators.
Inheritance
- Object
- AdminAccountInfo
Remarks
See usage examples in the unit tests for typical scenarios.
Constructors
public AdminAccountInfo() #Methods
public Boolean IsMemberOf(String groupDn) #BooleanChecks if the account is a member of the provided group distinguished name.
Parameters
- groupDn System.String
- Group distinguished name.
Returns
true when the account is a member.
Inherited Methods
Properties
public String SamAccountName { get; set; } #Gets or sets the SAM account name.
public String DisplayName { get; set; } #Gets or sets the display name.
public String UserPrincipalName { get; set; } #Gets or sets the user principal name.
public String DistinguishedName { get; set; } #Gets or sets the distinguished name.
public String DomainName { get; set; } #Gets or sets the domain name the account belongs to.
public String PrimaryGroup { get; set; } #Gets or sets the distinguished name of the primary group.
public List<String> MemberOf { get; set; } #Gets or sets group membership distinguished names.
public Boolean Enabled { get; set; } #Gets or sets whether the account is enabled.
public Boolean IsEnabled { get; set; } #Gets or sets whether the account is enabled (alias for compatibility).
public Boolean IsAccountExpired { get; set; } #Gets or sets whether the account is expired based on accountExpires attribute.
public Boolean IsPasswordExpired { get; set; } #Gets or sets whether the password is expired based on configured threshold.
public Nullable<DateTime> LastLogon { get; set; } #Gets or sets the lastLogon attribute value.
public Nullable<DateTime> LastLogonTimestamp { get; set; } #Gets or sets the lastLogonTimestamp attribute value.
public Nullable<DateTime> LatestLogon { get; set; } #Gets or sets the latest logon time (alias for MostRecentLogon for compatibility).
public Nullable<DateTime> PasswordLastSet { get; set; } #Gets or sets when the password was last set.
public Boolean PasswordNeverExpires { get; set; } #Gets or sets whether the password never expires flag is set.
public Nullable<DateTime> WhenCreated { get; set; } #Gets or sets the account creation date.
public Nullable<DateTime> WhenChanged { get; set; } #Gets or sets the last modification date.
public Nullable<DateTime> AccountExpires { get; set; } #Gets or sets the account expiration date.
public Int32 UserAccountControl { get; set; } #Gets or sets the userAccountControl value.
public Int32 BadPasswordCount { get; set; } #Gets or sets the bad password count.
public Int32 LogonCount { get; set; } #Gets or sets the logon count.
public Boolean IsStaleByLogon { get; set; } #Gets or sets whether the account is stale based on logon activity.
public Boolean IsStaleByPassword { get; set; } #Gets or sets whether the account is stale based on password age.
public Int32 InactiveLogonDays { get; set; } #Gets or sets the number of days since last logon activity.
public Nullable<DateTime> MostRecentLogon { get; } #Gets the most recent logon time between LastLogon and LastLogonTimestamp.
public Int32 LastLogonDays { get; } #Gets the number of days since the most recent logon, or -1 if never logged on.
public Int32 PasswordAgeDays { get; set; } #Gets or sets the number of days since the password was last set, or -1 if unknown.
public Int32 AccountAgeDays { get; } #Gets the number of days since the account was created, or -1 if unknown.