Have a different email address sent to some SPs vs others
-
Hiya,
Weird situation. We are using SAML. Our users have two different email addresses. One is used for one particular SP, and the other for everything else. We can store one email address in
user.email
and another inuser.data.otheremail
so that is alright.How can we send the special SP the email address it needs?
-
You want to look at https://fusionauth.io/docs/v1/tech/lambdas/samlv2-response-populate/ This can update the email/nameId before it is sent over to the special SP.
You will want to create a separate application and set the Response Populate Lambda to the lambda which does this transformation. This can be done via the UI as illustrated here: https://fusionauth.io/docs/v1/tech/samlv2/