IAuditSecurity Method: GetAccessAudit

 Trustee As String
) As String;


[in] String Trustee
Name of the account or group for whom auditing permissions are to be obtained.

Gets the auditing permissions for a trustee.

Return Values
Auditing permissions for a user (or group) on the currently attached object. Refer to Access Permissions for a complete list of the possible permissions.


Dim AuditSec As IObjectSecurity
Set AuditSec = CreateObject("DirectScript.ObjectSecurity")
'Attach to the registrykey "HKEY_CURRENT_USER\RemoteAccess" on the computer MOON.
AuditSec.AttachRegistryKey "HKEY_CURRENT_USER\RemoteAccess", "MOON"
'Get audit access that John has
Debug.Print AuditSec.GetAccessAudit ("John")


See Also