Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

Access rights can be defined either on a folder level or a report level and you can define rights for individual users or roles (user groups). You can set access rights either manually, in the application, or via the API.
Setting access rights manually
If you log in as an admin user, and you open up the properties panel on a folder or a report, you will see two dropdowns (one for roles, one for users) where you can control the access rights.

Setting up access rights via the API
  • Folder level - AddFolderRights(tcFolderPath, tcUsersList, tcRolesList). tcFolderPath is the path to the folder, tcUserList is a comma-delimited list of users, tcRolesList is a comma-delimited list of roles.
  • Report level - AddReportRights(tcReportPath, tcUsersList, tcRolesList) tcReportPath is the path to the report, tcUserList is a comma-delimited list of users, tcRolesList is a comma-delimited list of roles.
You can see how these two methods are called in the sample code RICDemo2.prg (https://bitbucket.org/eqeuscom/ricsamples/src/master/RICAPIClientVFP/ricdemo2.PRG)
  • No labels