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:
permissionspecifies the permission to which the assignment refers. ThevalidPermissionsfile parameter returns the names of the existing permissions.permSpecspecifies the name of a group to which thepermissionpermission 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