IAuditSecurity Method: GetEffectiveAudit

GetEffectiveAudit
(
 Trustee As String,
) As String;

[in] String Trustee
User or group name whose permissions are to be checked.

Description
Returns the effective auditing permissions for the user or group on the current object. The method also checks for indirect auditing permissions. Indirect permissions mean permissions due to global group memberships on the current DC (Domain Controller) and local group memberships on the local computer or the computer specified by the user during the Attach operation.

Return Values
Effective audit permissions for a trustee on the currently attached object. Refer to Access Permissions for a complete list of the possible permissions.

Example

Dim AuditSec As IAuditSecurity
Set AuditSec= CreateObject("DirectScript.ObjectSecurity")
'Read the auditing information of the file c:\test.txt
AuditSec.AttachFile "c:\test.txt"
'Get the effective audit permissions for "John"
Debug.Print AuditSec.GetEffectiveAudit("John")

 

See Also