We have SAML SSO setup which is returning this res...
# ask-a-descoper
r
We have SAML SSO setup which is returning this response : The tenant mapping works hence SSO flow is launched But even though I have mapped name - > email (Descope) The user is still being created with empty email I want to use the name field from sso to map to email Even thought I've done it It's still not working and user just gets created with empty email I edited the user manually to enter email - Hoping that works (Please confirm if it will) - But why does the updated mapping on tenant not created descope user as I want
Copy code
{
  "loginIDs": [
    "**hidden***@squareup.com-square"
  ],
  "userID": "****hidden*****",
  "name": "user@companydomain.com",
  "userTenants": [
    {
      "tenantId": "***hidden****",
      "tenantName": "***hidden****"
    }
  ],
  "status": "enabled",
  "externalIDs": [
    "***hidden****"
  ],
  "customAttributes": {},
  "createdTime": 1758305240,
  "SAML": true
}
d
Can you share the SAMLResponse for that login/test attempt?
You can see it in the audit log or in the test response
r
i have shared the SAML response
d
Where?
I see only the generated user, this is not the IdP SAMLResponse (XML)
r
dm-ing you
please check dm
d
Got it now. I don’t see any Name value there
I see only NameID
r
oh so this issue will still persist? i passed user.name in jwt and have written handling
d
Can you point me to the Name value the IdP is sending that you would like to map?
The SAML Response is what the IdP send to Descope. And the mapping is according to it. So either add Name to the IdP response or change the mapping to take the value from the NameID.
r
Got it so if I go to tenant
and do "nameId" -> email
d
NameID
r
yes, sorry
then it should work
d
Yes
r
Thank you so much Doron!
👍 1
I will take care in the future to understand this from the XML
d
Sure no problem. We are here if anything needed.