win32security.LsaEnumerateAccountsWithUserRight

(PySID,...) = LsaEnumerateAccountsWithUserRight(PolicyHandle, UserRight )

Return SIDs that hold specified priv

Parameters

PolicyHandle : PyLSA_HANDLE

An LSA policy handle as returned by win32security::LsaOpenPolicy

UserRight : str/unicode

Name of privilege (SE_*_NAME unicode constant)