When testing connectivity between CA Identity Manager (IDM) and JasperReports Server, the following error appears in the logs or Management Console:
ERROR [com.ca.ims.jasperreporting.JasperUtils] Exception occurred while getting the Reports... Exception details are com.ca.ims.jasperreporting.JasperException: IAM is Unauthorized to access the resource. Full authentication is required to access this resource.
The jasperserver.log indicates a conflict with an existing user:
ERROR ExternalUserSetupProcessor - Error processing external user IAM: Internally defined user IAM already exists. Please contact an admin user to resolve the issue.
The integration fails because it cannot map the external "IAM" user while a local/internal user with the same name already exists in the Jasper database.
superuser).Another possible cause is the missing or unsync iam.jks and iam.properties files, see the document below how to copy these files to the correct folders
Configure Token-Based Authentication