How to hide menu items based on the user roles in the Jasper server.
Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.
Prerequisites: Jasper server 6.4.1
Steps:
- Logged in to jasper server with super user credentials.
- To create Role, Go to Manage tab and click on Role. Roles window will be opened.
- Click on Add Role and enter the Role. In this blog I have given ROLE_HYD
- To create User, Go to Manage tab and click on user. Users window will be opened.
- Click on Add User and enter the name of user and password.
- Assign the role to user
- Open the below directory in the server installation path
- Open the file actionModel-navigation.xml. And add the following code
- Save the file and restart the server
Jaspersoft\jasperreports-server-7.1.0\apache-tomcat\webapps\jasperserver-pro\WEB-IN.
Test Cases :
- Login with the user having the role other than ROLE_HYD. See the menu items
- Login with the user having the role ROLE_HYD. Create item has been removed.
Conclusion: If we login with the users having the role ROLE_HYD not able to see the Create item in the menu.
The users having the role other than ROLE_HYD able to see Create item in the menu.
In case if you have any queries please get us at support@helicaltech.com
Thank You
Eswar K
Helical IT Solutions Pvt Ltd
Best Open Source Business Intelligence Software Helical Insight Here
A Business Intelligence Framework
Best Open Source Business Intelligence Software Helical Insight is Here
Hi
Is there any solution to hide home icon in jasper server page?