Project

General

Profile

Wiki

File Access

The access to the files repository is granted by default to the files owner and to all the user administrators.
If granting access to files to other users is needed it must be setted using the interfaces exposed below.

Exposed Interfaces

Base URL: <pentaho-bi-server-host>/pentaho/content/cfr

Permissions Management Interfaces

  • /setPermissions --> setting permissions is only allowed to the folder/file owner to which we want to set permissions or to any system administrator
    • Query Parameters:
      • path --> specifies the folder or file in which we want to set the permissions
      • id --> specifies the role or username to which we want to grant the permissions
      • permission --> this is an optional parameter, by default it assumes the read value. It is used to specify the permissions to be granted [for now only the read permissions are handled]
    • Examples:
      • /setPermissions?path=/test/&id=suzy --> sets read permissions for user suzy on repository folder test/ [this allows access to all the files contained in the folder]
      • /setPermissions?path=test.txt&id=joe --> sets read permissions for user joe on file test.txt
      • /setPermissions?path=/&id=suzy&permission=read&permission=write --> sets read and write permissions for user suzy on repository root folder [this functionality isn't yet totally implemented]
  • /getPermissions
    • Query Parameters:
      • path --> specifies the folder or file in which we want to check the permissions
      • id --> specifies the role or username to which we want to check the permissions
  • /deletePermissions --> deleting permissions is only allowed to the folder/file owner or to any system administrator
    • Query Parameters:
      • path --> specifies the folder or file in which we want to revoke permissions
      • id --> specifies the role or username to which we want to revoke the permissions
    • Examples:
      • /deletePermissions?path=test.txt&id=suzy --> revokes permission to file test.txt to user suzy