/// <summary> /// Get SIDs associated with an account right. /// </summary> /// <param name="logon_type">The logon account right to query.</param> /// <returns>The list of SIDs assigned to the account right.</returns> public static IEnumerable <Sid> GetAccountRightSids(AccountRightLogonType logon_type) { return(GetAccountRightSids(logon_type, true).Result); }
/// <summary> /// Get SIDs associated with an account right. /// </summary> /// <param name="logon_type">The logon account right to query.</param> /// <param name="throw_on_error">True to throw on error.</param> /// <returns>The list of SIDs assigned to the account right.</returns> public static NtResult <IEnumerable <Sid> > GetAccountRightSids(AccountRightLogonType logon_type, bool throw_on_error) { return(GetAccountRightSids(logon_type.ToString(), throw_on_error)); }