GetPermission

Description

Returns the one effective permission used to control access to the folder for the current user. This permission may or may not be applied to the folder itself. That is, the returned Permission object may be applied to a containing folder.

If there are no effective permissions for the folder, the result is a Permission object representing the default.
  • For Public Queries, the default group is Everyone and the permission kind is either Read-Write or Read-Only, depending on whether the user has the Public Folder Administrator privilege or not.
  • For Personal Queries, the default group is Everyone and the permission kind is Read-Write.

Use the GetAppliedPermissions method to determine what permissions are applied directly to a folder.

Note: This method became available in version 7.1.0.

Syntax

VBScript


folder.GetPermission 

Perl


$folder->GetPermission(); 
Identifier
Description
folder
A Folder object obtained from the current workspace.
Return value
Returns a Permission object that represents the one effective permission used to control access to the folder for the current user.