user userRef hasGlobalPermission

Available for: Content Management Server

Task: Checks whether the user with the login login has the specified global permission.

Additional information: Users have a specific permission if they have the permission permission, if they are super user or they are members of a group with the permission.

Syntax:

user withLogin login hasGlobalPermission permission

Function parameters:

  • permission The designation for a global permission.

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

Necessary permissions: none

Example:

CM>user withLogin jane hasGlobalPermission permissionGlobalRTCEdit
1