If an external role has the same name as an internal JasperReports Server role, then a suffix, such as _EXT, is appended to the external role name to avoid collisions. For example, a user with the externally defined role ROLE_ADMINISTRATOR is assigned the role ROLE_ADMINISTRATOR_EXTERNAL in the JasperReports Server database. This ensures that internal administrator accounts such as jasperadmin and superuser can still login as internal administrators, with the associated permissions.
You can set the extension in the conflictingExternalInternalRoleNameSuffix property in the externalUserSetupProcessor bean. If the property does not appear in the bean, the extension is still implemented but defaults to _EXT. The following example shows how you might configure this property:
<bean id="externalUserSetupProcessor" class="com.jaspersoft.jasperserver.api. metadata.user.service.impl.UserDetailsServiceImpl"> <property name="conflictingExternalInternalRoleNameSuffix" value="_NEW_EXTERNAL_ROLE_SUFFIX_"/> <property name="organizationRoleMap"> ... <!-- Example of mapping customer roles to JRS roles --> ... </property>[/code] |
Recommended Comments
There are no comments to display.