Jump to content
Changes to the Jaspersoft community edition download ×

URGENT! How to Separate Admin Access? Jasperserver-pro


trvpseudo

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...

Try editing actionModel-navigation.xml. You can define here which roles should be able to see what menus.

 <context name="main_manage_mutton" test="checkAuthenticationRoles" testArgs="ROLE_ADMINISTRATOR>

you can add your test condition if a perticular role should not see the users and roles menu.

<option labelKey="menu.users" action="primaryNavModule.navigationOption" actionArgs="user"/>
                <condition test="!banUserRole">
                  <option labelKey="menu.roles" action="primaryNavModule.navigationOption" actionArgs="role"/>
                </condition>

and then on applicationContext-security.xml you can add your role to whichever flow you want

 <bean id="flowVoter" class="com.jaspersoft.jasperserver.api.security.FlowRoleAccessVoter">
        <property name="flowAccessAttribute" value="FLOW_ACCESS"/>
        <property name="flowDefinitionSource">
            <value>
                repoAdminFlow=ROLE_ADMINISTRATOR
                userListFlow=ROLE_ADMINISTRATOR
                roleListFlow=ROLE_ADMINISTRATOR
                editFolderFlow=ROLE_ADMINISTRATOR
                fileResourceFlow=ROLE_USER,ROLE_ADMINISTRATOR
                listOfValuesFlow=ROLE_USER,ROLE_ADMINISTRATOR
                reportDataSourceFlow=ROLE_USER,ROLE_ADMINISTRATOR
                inputControlsFlow=ROLE_USER,ROLE_ADMINISTRATOR
                tenantFlow=ROLE_ADMINISTRATOR
                addDataSourceFlow=ROLE_ADMINISTRATOR,ROLE_NEWROLE
                userEditFlow=ROLE_ADMINISTRATOR
                roleEditFlow=ROLE_ADMINISTRATOR
                queryReferenceFlow=ROLE_ADMINISTRATOR
                searchFlow=ROLE_USER,ROLE_ADMINISTRATOR
                docSampleFlow=ROLE_ADMINISTRATOR
                *=ROLE_USER,ROLE_ADMINISTRATOR
            </value>
        </property>
    </bean>

Link to comment
Share on other sites

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