/// <summary> /// Get SIDs associated with an account right. /// </summary> /// <param name="privilege">The account right privilege 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(TokenPrivilegeValue privilege, bool throw_on_error) { return(GetAccountRightSids(privilege.ToString(), throw_on_error)); }