Create user in custom db from enterprise saml connection

Our ordering system requires a user to be created in our custom db to be able to place an order. We have customers wanting to use their SAML connections as IDP’s for login. Is there a flow/is it possible to create a user in a custom db through a hook or rule with a REST call after receiving a SAML assertion with user info?

Hi @nathan.breaux,

If I understand what you are asking, you can use rules to accomplish this. Basically, you’d keep some metadata to indicate whether the user has been created, and for SAML users that have not yet been created, you’ll make an API call to your custom DB API to create the user.

John

1 Like

Can you provide a snippet of rule how it look like here?

I am also looking for something similar,
We have a client who wants to use their IdP to login to our services. We established a SAML connection but it is creating a SAML profile for that user. Due to the data privacy rules in place with the client location. We wanted to get the data to be processed in auth0 but data to be saved in a database of clients location.

Some kind of rules snippet would direct in that approach.