Handling large SAML assertions and group membership synchronization in Adobe Experience Manager
This article explains how to address issues related to large SAML assertions and group membership synchronization when using the SAML Authentication Handler in Adobe Experience Manager (AEM). It provides steps to verify SAML assertion contents, expected attribute formats, and troubleshooting guidance.
Description description
Environment
- Adobe Experience Manager (AEM) (all supported versions)
- Deployments using the SAML 2.0 Authentication Handler (Web-SSO profile with HTTP POST binding)
Symptoms
- SAML assertions contain a large number of group memberships and roles
- Some group memberships or roles are missing after authentication in AEM
- No explicit error messages or truncation warnings in AEM logs
Cause
AEM SAML Authentication Handler does not enforce a fixed maximum SAML assertion size. Synchronization issues typically occur if the identity provider does not emit the expected group memberships or roles, or if SAML attributes are not formatted as expected by AEM.
Resolution resolution
Follow the steps below to resolve the issue:
-
Review the SAML assertion sent to AEM and verify that it is well-formed, complete, and signed.
-
Verify that the identity provider includes all required group memberships and roles in the SAML assertion before authentication occurs in AEM.
-
Verify that the group membership attribute contains a separate SAML attribute value for each group instead of a single delimited string. For example:
Correct format:code language-none <Attribute Name="memberOf"> <AttributeValue>group1</AttributeValue> <AttributeValue>group2</AttributeValue> </Attribute>Incorrect format:
code language-none <Attribute Name="memberOf"> <AttributeValue>group1,group2</AttributeValue> </Attribute> -
Review any intermediate infrastructure, including browsers, proxies, and CDNs, for HTTP POST size limits that could affect the delivery of large SAML assertions.
-
If group memberships or roles are missing after authentication, capture the SAML assertion received by AEM and verify that it contains the expected attributes and values.
-
If the issue persists, review the SAML Authentication Handler configuration in the AEM Web Console and verify that it matches the identity provider’s attribute mapping.
-
After updating the configuration, test the authentication flow and verify that all expected group memberships and roles are synchronized in AEM.