How to intercept the user created by SSO

I’m using the QBO Social connection. When a user clicks the button, Auth0 successfully creates the user. However, I currently don’t have a mechanism in place to intercept this event and associate the newly created user with the specific company they belong to.

2 Likes

Hi @thiago.fonseca_contr

Thank you for reaching out to us!
Depending on the intended use-case, you could create a Post-User Registration Action, which after a user is added to a Database. You can write the Action and use either event.connection.strategy or event.connection.name properties to create custom logic for the users that come from the specific Social Connection. This way you could, for example, add to the user’s app_metadata some company-related information by which you can then distinguish the users.

Hope that helped!
Gerald

But I don’t have any event triggered when the QBO Social login creates the user. I’d like intercept this event, such as a pre-request but working with Enterprise/SSO Login

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.