Property Name
Trustee
Property Type
String
Description
Gets the name of the trustee to whom the current ACE belongs. The
SecurityIdentifier in the ACE is converted to a trustee name, which
can be a user or group. This is done by looking up on the current
domain's DC (Domain Controller) and on the user specified lookup
computer.
Example
Dim ObjSec As IObjectSecurity
Dim ACL As IAccessList
Dim ACE As IAccessEntry
Set ObjSec = CreateObject("DirectScript.ObjectSecurity")
ObjSec.AttachFile "c:\test.txt"
Set ACL = ObjSec.GetAccessList
For Each ACE In ACL
Debug.Print ACE.Trustee
Next
See Also