Available for: Content Management Server
Task: First, the specified access permission for the given file is revoked from all groups that currently have this permission. Then, the permission is given to the specified groups.
Syntax:
obj (withId objId) | (withPath path) | root setPermissions {permission permSpec}
Function parameters:
permissionspecifies the permission whose group assignment is to be modified.permSpecspecifies the list of groups to which thepermissionpermission is to be granted. This permission is revoked from all user groups not included in this list.
Return value if successful: none
Necessary permissions (CM only): The user must have the permissionRoot permission for the specified file.
Example:
CM>obj withId 20013 setPermissions permissionRoot admins \
permissionCreateChildren {editors subeditors}