Cumulocity SSO User ID mapping from json array

What product/components do you use and which version/fix level are you on?

Cumulcoity 10.15

Is your question related to the free trial, or to a production (customer) instance?

Prod customer instance

What are you trying to achieve? Please describe it in detail.

In the SSO configuration there is a field User ID under User data mappings.

In my JWT token I get this value in an array:

"emails": [

How can I get this value from that JSON structure? emails[0] is not working

1 Like

Hi Nick,

TL;DR: There should be a real unique user ID field in the JWT which must be used for this.

Is this about the “Azure AD” SSO template?
I strongly believe that this requires a simple key-value pair.
From a conceptual point of view this also makes sense as you always want to identify a unique user, by its unique ID.
A unique ID should not be part of an array, where you could think of having multiple IDs for a single user.
What is the main reason behind this request to use the email?
Within the User data mappings the actual email address can also be mapped, using the same or another field of the JWT.
However the main limitation will be that no arrays are accepted.



This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.