GetAccessPermissions
(
Trustee As String
); As String
Parameters
[in] String Trustee
User or group name for whom permissions have to be returned.
Description
Gets the access permissions for a trustee. Note that this operation
does not check for indirect access permissions users might have due
to their group memberships. To get the indirect access permission,
use the GetEffectivePermissions
method.
Return Values
Permissions for the Trustee on the currently attached object. See
Access Permissions for all possible permissions.
Example
Dim ObjSec As IObjectSecurity
Set ObjSec = CreateObject("DirectScript.ObjectSecurity")
'Attach to the file c:\test.txt
ObjSec.AttachFile "c:\test.txt"
'Print the permissions that "TrusteeName" has on the file
c:\test.txt
Debug.Print ObjSec.GetAccessPermissions("TrusteeName")
See Also
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.