obj objRef permission set

Available for: Content Management Server

Task: The groups to which the access permission for a file are granted, are redefined.

Syntax:

obj (withId objId) | (withPath path) | root permission permission set {permSpec}

Function parameters:

  • permission specifies the permission to which the assignment refers. The validPermissions file parameter returns the names of the existing permissions.

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

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 set editors admins