API Reference
Class
AdminAccountHelper
Helper methods for evaluating admin account activity.
Inheritance
- Object
- AdminAccountHelper
Methods
public static IEnumerable<AdminAccountInfo> FilterStaleAccounts(IEnumerable<AdminAccountInfo> accounts, Int32 maxInactiveDays) #Returns:
IEnumerable<AdminAccountInfo>Filters the provided accounts to only those that have not logged in within the specified number of days.
Parameters
- accounts System.Collections.Generic.IEnumerable{ADPlayground.AdminAccountInfo}
- Accounts to evaluate.
- maxInactiveDays System.Int32
- Number of days after which an account is considered stale.
Returns
List of stale admin accounts.
public static Void GenerateAlerts(IEnumerable<AdminAccountInfo> accounts, Int32 maxInactiveDays) #Returns:
VoidGenerates warning messages using LoggingMessages for accounts returned by Int32).
Parameters
- accounts System.Collections.Generic.IEnumerable{ADPlayground.AdminAccountInfo}
- Accounts to evaluate.
- maxInactiveDays System.Int32
- Number of days after which an account is considered stale.