Hello community,
I am currently working on an SSO Integration where Salesforce is the identity provider.
As we have users already in Auth0 and want them to be able to log in via Salesforce we created a SAML connection where Salesforce is the identity provider.
In this case, a new user will be created at the first login in Auth0. So we want to create an pre signup flow that links the SAML user to the real user.
First I wanted to try the flow. I created a simple action:
exports.onExecutePreUserRegistration = async (event, api) => {
api.user.setUserMetadata("account_id", "someuserid");
}
So I expected to have the account_id in the SAML user. But it does not work.
If I create a user within Auth0, the user metadata account_id is added.
Is there a reason why the flow does not work for a user created from the SAML process?
Best,
Marc