ramandeep1980 Posted April 22, 2009 Share Posted April 22, 2009 Hi,I am having trouble using Role feature of jasper server.Im not able to restrict user and thus not able to implement security.When i am using already created Role "ROLE_USER" and using this im restricting the user from accessing the reports,r its working fine but when im creating new ROLE and assigning the user to that Role and restricting their acces its not working and as soon as i m signing as this new user im reach on window saying :-The user has no access to this page. Log out Even though im doing same for this new ROLE what i have been doing with ROLE_USER.What im doing is this..I have given access(Administrator or Read ONLY) of all the folder to this new ROLE and just restricting this new role not to access one report but whenever im signing in I not able to work and end up seeing this window :-The user has no access to this page. Log outPlease help here .Regards,Raman Link to comment Share on other sites More sharing options...
Solution ramandeep1980 Posted April 22, 2009 Author Solution Share Posted April 22, 2009 Hi , I think i have got the reply.I am mentioning it hre so that it can be helful to others too. Make new role and user.Now for security purpose assign this new role and ROLE_USER to the user and the folder where u wanna to apply the security make ROLE_USER to NO ACCESS and use another role to do the work like READ ONLY or ADMIN.. or whatever you want.... Actually , all users need at least ROLE_USER or ROLE_ADMINISTRATOR roles in order to log in and select menu options etc. I hope it was clear. Regards, Raman Link to comment Share on other sites More sharing options...
Gaby38 Posted April 22, 2009 Share Posted April 22, 2009 Raman,I think the way you suggest is the simpliest.If you don't want to use the "ROLE_USER" role, it is possible (I did it) but you have to edit the "applicationContext-security.xml" file and add your new role at the right place in order to have rights to load and execute the jsp files like login,flow*, and so on. Link to comment Share on other sites More sharing options...
ict-programmer Posted June 23, 2014 Share Posted June 23, 2014 As of 5.5, you also need to make some changes in applicationContext-security-web.xml in order to use a role other than ROLE_USER. 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