group groupRef hasGlobalPermission

Available for: Content Management Server

Task: Checks whether the user group with the name name has the specified permission.

Additional information: A group has the permission permission if and only if it was granted this permission. It is not sufficient if a member of the group has the permission.

Syntax:

group withName name hasGlobalPermission permission

Function parameters:

  • permission designates a global permission.

Return value if successful: 1, if the user has the permission, otherwise 0.

Necessary permissions: none

Example:

CM>group withName admins hasGlobalPermission permissionGlobalRTCEdit
1