aaronweiss Posted December 9, 2010 Share Posted December 9, 2010 I have a JasperServer AD Hoc install where I have a user group that will only be running reports and never creating reports. I have set up a role for these users and have removed all permisisons from every folder in their organization exept Read. However, no matter what I try I cannot get rid of Creat a Report or Create a Dashboard. Worse, when the users go into this option they are actually able to use Ad Hoc tools to browse the Domain, find the sets and Items they want and actually generate a report. They cannot save the report but they can create one. My goal is to NOT allow them to even have access to create anything, they need to be truly read only users where they come in and select a report and execute it from the list available in the repository.I feel like this should be easily doable but I just cannot find anything that allows me to shut down Report or Dashboard creation. Any suggestions or help is greatly appreciated. Post Edited by aaronweiss at 12/09/2010 22:53 Link to comment Share on other sites More sharing options...
aaronweiss Posted December 16, 2010 Author Share Posted December 16, 2010 REALLY NEED SOME HELP, ANY SUGGESTIONS OR COMMENTS APPRECIATED!!! Link to comment Share on other sites More sharing options...
hozawa Posted December 18, 2010 Share Posted December 18, 2010 If you don't need adhoc query and dashboard, why don't you just use the community edition which doesn't contain these features. Link to comment Share on other sites More sharing options...
mdjj Posted January 6, 2011 Share Posted January 6, 2011 Presumably you want some users to create and others not to that's why you're not using the community edition!!!We've done this for our read only users. You'll have to hack around with the underlying code I'm afraid because not sure it can be done completely via permissions and roles. The problem is that the defautl role of role_user has access to create and all users have this.The main create tab is defined in JI-menu.xml - if you've got the source it will be in <src install path>/jasperserver-pro\jasperserver-war\src\main\webapp\WEB-INF\classes\JI-menu.xmlYou need to do something like this for the create menu : <menu-item name="NAV_005_CREATE"> <roles> <!-- comment this line out <role>ROLE_USER</role>--> <!-- add this line --> <role>YOUR_OWN_ROLE_THAT_HAS_CREATE_PERMISSIONS</role> <role>ROLE_ADMINISTRATOR</role> </roles> <sub-items> <menu-item name="NAV_051_ADHOC_REPORT" url="/flow.html" servletParams="_flowId=adhocFlow"> <roles> <role>ROLE_USER</role> <role>ROLE_ADMINISTRATOR</role> </roles> </menu-item> <menu-item name="NAV_050_DASHBOARD" url="/flow.html" servletParams="_flowId=dashboardDesignerFlow&createNew=true"> <roles> <role>ROLE_USER</role> <role>ROLE_ADMINISTRATOR</role> </roles> </menu-item> </sub-items> </menu-item> One caveat is that this is from JS 3.5.1 so may be different for newer version.Hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now