UserInfo endpoint does not output StringCollection claims correctly

Craig Evans 11 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 Security | Microsoft Entra | Microsoft Entra External ID

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.