Jump to content
We've recently updated our Privacy Statement, available here ×
  • How To Assign 'ROLE_SUPERUSER' To Specific User


    oleksandr.voloschuk
    • Features: User Authorization Product: JasperReports® Server

    Requirement

    Is there a way to assign 'ROLE_SUPERUSER' to 'Admin' user without logging to TIBCO JasperReports® Server as 'superuser' and giving this role?


    Solution

    By default 'Admin' user has two roles: 'ROLE_ADMINISTRATOR' & 'ROLE_USER'. And only 'superuser' can add ROLE_SUPERUSER to it through user interface:

    3_0.jpg.8d8c88d1291645f98a4bd3ef6b9e14e3.jpg


    One way how to achieve this could be adding necessary data to repository DB, in 'jiuserrole' table (however, you have to have proper DB user id/password for doing this).

                 Please note, that we DO NOT recommend to do any manual actions on repository DB due to it may break you DB at all!

    Do a backup of your repository DB before doing next steps!

    1. Find the 'id' for 'Admin' user in table 'jiuser':

      1_2.jpg.62fa0643e5580a43b7dd50ce62de9523.jpg

    2. Find the 'id' for ROLE_SUPERUSER in table 'jirole':

      2_1.jpg.344a74325993df9767fbb6bab4fd9dad.jpg

    3. Insert these values (it will add the ROLE_SUPERUSER to 'Admin' user) in table 'jiuserrole':

      4.jpg.029e4968533dc82e4c58766908235a3b.jpg

    4. Re-login to JasperReports® Server as 'Admin' user and check:

      5.jpg.6174d5f551052bfea99f07ee43c289f9.jpg


    References

    Why A User With ROLE_SUPERUSER Assignment Does Not Seem To Have Superuser Privileges


    VO - 20190403, case #01735011

    3_0.jpg.1c5bcd2a1b2bb731b4ab9e46aa5109ec.jpg

    1_2.jpg.a36a2595fbe9087ddef1ab4387372a9d.jpg

    2_1.jpg.120a4d284a20e19bba72310af2d9befa.jpg

    5.jpg.972a3acfd958faf1ba29a1119f262835.jpg


    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...