trvpseudo Posted September 3, 2019 Share Posted September 3, 2019 Hi All, this one is urgent please help.So i need to make 2 role, say its A and B.A only able to Add users and role,while B can access repository only.how can i achieve the condition?Thanks in advance! Link to comment Share on other sites More sharing options...
trvpseudo Posted September 3, 2019 Author Share Posted September 3, 2019 i think i can do it by giving specific role to the jsp, but i cant locate it at all!! help :'( Link to comment Share on other sites More sharing options...
swood_1 Posted September 4, 2019 Share Posted September 4, 2019 The ROLE_ADMINISTRATOR and ROLE_SUPERUSER roles can maintain users and roles, and also maintain the repository, including setting permissions.ROLE_USER cannot manage users and roles, or set repository permissions. Link to comment Share on other sites More sharing options...
trvpseudo Posted September 5, 2019 Author Share Posted September 5, 2019 well i need to separate "Admin" accessA - role Admin - can only access repositoryB- role Admin - can only access user and rolethats what im trying to do. any suggestion?an upvote for your kind response :) Link to comment Share on other sites More sharing options...
mundrameenaxi Posted May 7, 2021 Share Posted May 7, 2021 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 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