Available for: Content Management Server
Task: The procedure returns for all files the access permissions and the groups to which these permissions are assigned.
Syntax:
showPermissions objIdsOrPaths
Function parameters:
-
objIdsOrPathsis the list of files which are to be checked. The list can contain both file IDs and paths. Paths must be absolute, i.e. must start with a slash.
Return value if successful: none
Necessary permissions: The user must have the
permissionRead permission for the specified files.
Example:
CM>showPermissions {/ 2050}
/ (2001)
permissionRoot: rootusers admins
/test (2050)
permissionRead: admins
permissionWrite: admins
permissionRoot: rootusers admins