PyACL.AddAccessAllowedObjectAce

AddAccessAllowedObjectAce(AceRevision, AceFlags, AccessMask, ObjectTypeGuid, InheritedObjectTypeGuid, sid)

Adds an ACCESS_ALLOWED_OBJECT_ACE to the ACL

Parameters

AceRevision : int

Must be at least ACL_REVISION_DS

AceFlags : int

Combination of ACE inheritance flags (CONTAINER_INHERIT_ACE,INHERIT_ONLY_ACE,INHERITED_ACE,NO_PROPAGATE_INHERIT_ACE, and OBJECT_INHERIT_ACE)

AccessMask : int

Specifies the mask of access rights to be granted to the specified SID

ObjectTypeGuid : PyIID

GUID of object type or property set to which ace applies, can be None

InheritedObjectTypeGuid : PyIID

GUID of object type or property that will inherit ACE, can be None

sid : PySID

A SID object representing a user, group, or logon account being granted access.