sapna.singh Posted June 13, 2016 Share Posted June 13, 2016 Hi,I am using Jaspersoft for AWS ( Hourly) seeking for help regarding users,roles and permission.There was a requirement to create a user and assign it a role so that only one report should visible to the user .i created a user and Role_user automatically assigned to it so i made some changes in the settings of the Role_user so that only one report is visible. And now its giving this error message "java.lang.RuntimeException: org.springframework.security.access.AccessDeniedException: Access is denied" and no user can access any report.I don't have default settings of Role_user.Kindly help ASAP. Thanks with Regards,Sapna Singh Link to comment Share on other sites More sharing options...
joseng62 Posted June 13, 2016 Share Posted June 13, 2016 Hi, all users when create are assigned the roll "ROLE_USER" and this is a default role that sould not be removed. So you have 2 options. If you want only spesific user to see report/resource. (Example user name UserT) Then you go to resource, right click and select permissions. In pop up you need to set the Role :ROLE_USER to no access and then apply. Then select the User tab in pop up and set UserT permission to what you want and then apply. Now only User T can admin user can access resource. If you want Role_base access then. Then you go to resource, right click and select permissions. In pop up you need to set the Role :ROLE_USER to no access and then apply. Select the Role you create and select permission level, then apply. Now all users with the given role can access the resource. Hope it makes sense. Kind RegardsJosia Link to comment Share on other sites More sharing options...
sapna.singh Posted June 14, 2016 Author Share Posted June 14, 2016 Hi Josia,Thanks for the responce. I have followed all the steps but again same error is occuring Still no user can access any resource.Can you please provide the default permissions of Role_user because i had changed all the permissions of this role that time. Thanks with Regards,Sapna Singh 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