Multiple value claim : rule to select ony one value ?

DS 106 Reputation points

is it possible to write issuance transfom rule(s) such as
when an input claim has multiple values
issue a single claim with a single value : only one of the values of the original claim ?

input claim named othermails has two values : mail1@ssss .com and mail2@ssss .com
i wish to output a new claim named single mail with value mail1@ssss .com
(in my case i do not bother if I output mail1@ssss .com or mail2@ssss .com but I must emit only a single value...)

aggregate function COUNT can detect if there are multiple values, but I don't know how to extract only one...

Thank you in advance

Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,166 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pierre Audonnet - MSFT 10,151 Reputation points Microsoft Employee

    If a claim has multiple values, you cannot arbitratly send the first one or the second. I am not sure you can even guarantee the order (I guess that depends how you extracted them in the first place). However, you can filter the values down to only the one that you want to see (if that's in any way predicatable). For example if one is finishing with and the other in, you can filter out one or the other. What is the rul in your case to send or not send a value?

    0 comments No comments