Problem in accessing roles and users

0

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

 

sapna.singh's picture
Joined: Apr 3 2016 - 11:06pm
Last seen: 1 year 10 months ago

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

sapna.singh - 3 years 6 months ago

1 Answer:

0

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 Regards
Josia

  

joseng62's picture
732
Joined: Dec 5 2014 - 2:43am
Last seen: 2 days 36 min ago
Feedback
randomness