How to make a user an Administrator in Jaspersoft

Document ID : KB000097132
Last Modified Date : 18/05/2018
Show Technical Document Details
Introduction:
After configuring LDAP, how do I define a user to be an Administrator in Jaspersoft?
Environment:
Jaspersoft 6.3
Instructions:

If you're mapping all your external users to a single organization, you can assign static roles to users. This lets you specify a list of administrative users and roles, and a list of roles for non-administrative users. To define static roles, use the externalUserSetupProcessor or mtExternalUserSetupProcessor bean. To set up static roles, locate the version of the bean used in <js-webapp>/samples/applicationContext-externalAuth-LDAP.xml and configure the following properties:

<bean id="mtExternalUserSetupProcessor" class="com.jaspersoft.jasperserver.multipleTenancy.security.
    externalAuth.processors.MTExternalUserSetupProcessor"
    parent="abstractExternalProcessor">
...
  <property name="adminUsernames">
    <list>
      <value>myorgadmin</value>
    </list>
  </property>

 

<property name="defaultAdminRoles">
    <list>
      <value>ROLE_USER</value>
      <value>ROLE_ADMINISTRATOR</value>
    </list>
  </property>
 

After doing this cycle the tomcat service on the Jaspersoft server and attempt to login with your LDAP credentials.  You should now be an "Administrator" within Jaspersoft

Additional Information:
Please see the following URL for additional information:

https://community.jaspersoft.com/documentation/tibco-jasperreports-server-authentication-cookbook/v610/mapping-roles-system-roles#ldap_2113648490_1033094