Jump to content
We've recently updated our Privacy Statement, available here ×
  • Allow custom non-admin roles to create Data Source in JasperReports Server


    stasp
    • Features: Data Sources, Repository Version: v7.1, v7.1.1, v7.1.0, v6.4, v6.4.3, v6.4.2, v6.4.0 Product: JasperReports® Server

    To allow non-admin users create or edit Data Sources you have to add user's role to the corresponding flow. The steps are:

    1. Open WEB-INF/applicationContext-security.xml file

    2. Find the following line:

    addDataSourceFlow=ROLE_ADMINISTRATOR

    3. Add your custom role:

    addDataSourceFlow=ROLE_CREATE_DATASOURCE,ROLE_ADMINISTRATOR

    If your role is defined on an organization level and not on the root level of JRS application, you will likely have to add the pipe symbol '|' at the end of the role and add the organization ID after it, e.g.:

    addDataSourceFlow=ROLE_EDIT_DATASOURCES|myOrganization,ROLE_ADMINISTRATOR

    4. Save the changes, clear application server cache and restart it. Also clear browser cache to make sure the changes get applied.


    User Feedback

    Recommended Comments

    There are no comments to display.



    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...