user userRef grantGlobalPermissions

Available for: Content Management Server

Task: Grants the specified permissions to the user with the login login.

Syntax:

user withLogin login grantGlobalPermissions {permission}

Function parameters:

  • permission: The designation for a global permission. The global permissions which are permitted are given in the system configuration under the content.globalPermissions key.

Return value if successful: none

Necessary permissions:

  • The logged-in user must be a super user or
  • have the permissionGlobalUserEdit permission and be the direct or indirect owner of the login user.

Example:

CM>user withLogin jane grantGlobalPermissions permissionGlobalRoot