UserInfo endpoint does not output StringCollection claims correctly

Craig Evans 6 Reputation points
2022-09-28T16:25:49.807+00:00

I have implemented a UserInfo Endpoint for a RelyingParty in my B2C Tenant. The string claims output correctly, but the StringCollection claims are issued as System.Collections.Generic.List1[System.String]

It's not possible to output a JSON array using string transformations. The best I can do is something like this: "groups": "[\"group1\","\group2\"]"

Obviously this won't work with the relying party. According to https://github.com/MicrosoftDocs/azure-docs/issues/75344 this was fixed/closed over a year ago, but it was never actually fixed.

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,640 questions
{count} vote