Multiple values for same key in any AEM config | Community
Skip to main content
Level 2
April 28, 2026
Question

Multiple values for same key in any AEM config

  • April 28, 2026
  • 2 replies
  • 11 views

Can we add multiple values for the path here. Is that possible in any AEM config. If yes how, and if not what are the other ways we can handle this.

 

2 replies

VeenaVikraman
Community Advisor
Community Advisor
April 28, 2026
Adobe Employee
April 28, 2026

@ShikhaSo6 

Yes, multiple path values can be configured for the AEM SAML Authentication Handler.

In AEM, the path property can be defined as a multi-value array in the OSGi cfg.json file rather than as a single string.

Example:

{
"path": [
"/content/site1",
"/content/site2"
]
}

If environment-specific values are needed, each path can also be defined using separate environment-variable placeholders.

Example with environment variables:

{
"path": [
"$[env:SAML_CONTENT_PATH_1;default=/content/site1]",
"$[env:SAML_CONTENT_PATH_2;default=/content/site2]"
]
}

If the requirement is instead to use different SAML/IDP configurations for the same exact path, that is not recommended because it can cause handler-selection conflicts. In that case, the better options are: