Database User Creation

Hello Folks,

This is my workflow:

  1. I create an Enterprise SSO integration with one of my clients.

  2. I integrate SSO in my app.

  3. I call the /api/v2/users endpoint.

My questions:

Does Auth0 always store the user information in their hosted database? For a particular integration, how do I know if Auth0 is hosting the user database, or not?

How does Auth0 add users to the user database? If a user has never logged in, does that mean that this user record won’t exist in the Auth0 hosted database for that integration?

This question is motivated by the fact that there are situations in my login process that will require for me to check if a user exists by calling the users endpoint.

Appreciate any help I can get on this.

Hi @pdiaz,

Welcome to the Auth0 Community!

  • You can see all user information for each connection in User Management > Users. You can also use the Management API /API/v2/users endpoint.

  • A user who has never logged in will not have an Auth0 user associated with them. The first login will create the user.

If you have any other questions, feel free to reach out.

Have a good one,
Vlad

1 Like