AEM SAML login HTTP 500 error for inactive user account

Adobe Experience Manager (AEM) 6.5 LTS may return an HTTP 500 Server Error at /saml_login for a single user when the account is inactive, preventing the SAML authentication handler from synchronizing the user profile. To resolve the issue, reactivate the affected account and verify that SAML authentication completes successfully.

Description description

Environment

Adobe Experience Manager (AEM) 6.5 LTS (all platforms)

Issue/Symptoms

  • A single user can’t sign in to the AEM Author environment through SAML authentication.

  • Accessing/saml_loginreturns:

    • HTTP ERROR 500 Server Error
    • URI: /saml_login
    • STATUS: 500
    • MESSAGE: Server Error
  • The error occurs during SAML authentication and user synchronization.

  • Other users can sign in successfully.

  • The affected account is inactive in AEM.

Root cause

The HTTP 500 error occurs because the affected account is inactive in AEM, preventing the SAML authentication handler from synchronizing the user profile. This results in an UnsupportedOperationException when attempting to update a read-only authentication info map.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Sign in to the AEM Author instance as an administrator.

  2. Go to Tools > Security > Users.

  3. Search for the affected username.

  4. Check whether the account is disabled or inactive.

  5. If the account is inactive, select the account and reactivate or enable it.

  6. Save the changes.

  7. Have the affected user sign in again through the SAML authentication flow.

  8. Confirm that authentication succeeds and the HTTP 500 error no longer occurs.

  9. If the issue persists:

    • Review the AEM error log and authentication logs for additional details.
    • Compare the SAML assertions and user attributes for the affected user with those of a working user.
    • Check whether recent changes to user attributes or group memberships are contributing to the issue.
recommendation-more-help
experience-cloud-kcs-help-kbarticles