locked
ADFS custom claim rule RRS feed

  • Question

  • Hi, I am trying to make a custom claim rule for my adfs, but it keeps saying 

    POLICY0002: Could not parse policy data

    and

    POLICY0029: Unexpected input.

    My custom claim rule looks like this

    c:[Type == “http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname”, Issuer == “AD AUTHORITY”] => issue(store = “Active Directory”, types = (“Email”, “FirstName”, “LastName”), query = “;mail,givenName,sn;{0}”, param = c.Value);

    I would appreciate if someone could help me point to where im doing it wrong, as I'm still pretty new at this.

    Wednesday, June 26, 2019 7:06 AM

Answers

  • c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"] => issue(store = "Active Directory", types = ("Email", "FirstName", "LastName"), query = ";mail;givenName;sn;{0}", param = c.Value);

    Wednesday, June 26, 2019 8:06 PM

All replies

  • c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"] => issue(store = "Active Directory", types = ("Email", "FirstName", "LastName"), query = ";mail;givenName;sn;{0}", param = c.Value);

    Wednesday, June 26, 2019 8:06 PM
  • Thx nzpcmad1

    Thats worked perfect :D

    Thursday, June 27, 2019 10:17 AM