ADFS Custom Rule with MultiValue schacPersonalUniqueCode

iSolitaire 1 Reputation point
2022-09-22T13:07:42.46+00:00

Hi Everyone

I need to add a Claim Rule with MultiValue schacPersonalUniqueCode in ADFS, so far i can add one value but i need to add a second value that use the same Type in the same rule. How can i do it?
I have this code now:

c:[Type == "urn:mace:dir:attribute-def:employeeNumber"]
=> issue(Type = "urn:schac:attribute-def:schacPersonalUniqueCode", Value = "urn:schac:personalUniqueCode:nl:local:Mycompany:studentid:" + c.Value);

And i need to add the a second value with: "urn:schac:personalUniqueCode:nl:local:Mycompany:employeeid:"

Thanks Gents/Ladies

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,277 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. iSolitaire 1 Reputation point
    2022-09-30T09:22:05.573+00:00

    Hi Everyone.

    Can someone take a look to this pls? :)

    Kind Regrds

    0 comments No comments

  2. Pierre Audonnet - MSFT 10,191 Reputation points Microsoft Employee
    2022-10-01T01:54:09.88+00:00

    I am not sure I understand the ask...

    I don't understand the logic behind the claims you have so I'll use the generic claims. Let's say you have the following claims:

    • Claim1
    • Claim2
    • Claim3

    You would like to set Claim3 as a multi value claim with the values of Claim1 and Claim2. You would do the following:

    c:[Type == "Claim1"] => issue(Type = "Claim3", Value = c.Value);

    and

    c:[Type == "Claim2"] => issue(Type = "Claim3", Value = c.Value);

    You issue the claim Claim3 twice so it is now "multi value". Does this help?

    0 comments No comments

Your answer

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