obj objRef permission grantTo

Available for: Content Management Server

Task: The specified permission for the respective file is granted to the specified group. Other permissions of the group remain unaffected.

Syntax:

obj (withId objId) | (withPath path) | root permission permission grantTo group {group}

Function parameters:

  • permission specifies the permission to be granted. The validPermissions file parameter returns the names of the existing permissions.

  • group specifies the name of the group the permission is to be granted to.

Return value if successful: none

Necessary permissions (CM only): The user must have the permissionRoot permission for the specified file.

Example:

CM>obj withId 41735 permission permissionCreateChildren grantTo editors