SAML mapping issues

I’m testing an app using auth0 as my IdP with a test user using Username-Password-Authentication.

The app requires a the following fields to be returned:

  • User.email
  • User.FirstName
  • User.LastName

If I’ve wrapped my head round this correctly my understanding was that I could change the settings in the ‘SAML2 Web App’ and modify the mappings accordingly.

I’m not confident my syntax is correct but I’m finding that pretty much no matter what I do, those mappings don’t appear to change.

  "mappings": {
      "User.email": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
      "User.FirstName": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname",
      "User.LastName": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname",
  }

Any help would be greatly appreciated.

1 Like

Hi @liam_bowers,

Welcome and thank you for posting in Auth0 Community! :partying_face:

What do you mean when you say those mappings don’t appear to change? Have you tried creating this rule? https://auth0.com/rules/saml-attribute-mapping