Based on roles, I want that some users can only be able to see reports and other can create ad-hoc view.
Actually I have modified the actionModel-navigaion.xml file by hiding repository browser based on my "read-only" role and users can see only search and library page, but if they click on library and change the filter to show ad-hoc view, they can create them.
I tried to comment out the "filter section" on the result.jsp module but in this way I cannot see anything, it seems that the search filter will be disabled.
Basically I would like to "block" the library filter to show only reports based on a role or to hide the "ad-hoc" filter from the left menu.
Do you know how can I do this, what files i have to modify and how?
Thank you in advance to anyone should help me.
You can give the user Execute Only permission to all folders containing Ad Hoc Views, Topics, and Domains. To do this, log in as superuser, right click on the folder you want to restrict, and select Permissions. You can choose the access for each user type.
Execture Only will let users execute reports that are based on these resources, but they will not be able to view or edit any Ad Hoc Views, and without access to a Topic or Domain, they will not be able to create an Ad Hoc View of their own. (I believe the Data Source folder is restricted already, but if not, you should manage that as well) They will still see the link, but it will not be useful to them. This is a more robust solution than just hiding the menu items and links, although that is also useful.
Thank you for your reply,
I was looking for an "automatic" solution ( I mean, first installation already working as expected without manual intervention) but your suggestion works as expected: I have modified the rights of the Ad-hoc components and Topics folders to "Execute Only", moved all ad-hoc views into the Topic folder and created a Report folder with read-only rights where I moved all the reports.
When "read-only" users now login to JasperServer, they can see only "Reports", and even if they modify the filter on the Library page to show "ad-hoc views" they do not see anything.
Meaning that I have to prepare a manual for the "first parameterizazion" for my customers.
Anyway, very good!
Thanks a lot and have a wonderful day.