Available for: Content Management Server
Task: Returns the list of user groups whose members have
the specified permission for the specified file (analogously to
obj objRef get permissions.permission
).
Syntax:
obj (withId objId) | (withPath path) | root permission permission get
Function parameters:
permission
specifies the permission for
which the user groups are to be retrieved. Use
obj withId id get validPermissions
to output the
list of the existing file permissions.Return value if successful: The list of the names of the groups to which the given permission is assigned (stringlist)
Necessary permissions (CM only): The user must have the permissionRead
permission for the specified file.
Example:
CM>obj withId 2001 permission permissionCreateChildren get admins