You can now use regex capture groups in claims mapping to dynamically map external group or role values to Sitecore roles in tokens.
This update means that Portal claim mapping now:
Supports regex patterns with named capture groups, such as
^Internal-(?<RoleName>[a-zA-Z0-9]+)$, to extract role names from incoming claims.Automatically adds mapped values to both the Sitecore ID token and Sitecore access token using the captured group value.
For example, external claim values like Internal-Role1 and Internal-Role2 are mapped to token claims such as yourSSOConnectionId.xmc_role: ["sitecore\\Role1", "sitecore\\Role2"].