On the auth0 dashboard, new users only appear after first login, but I need them to be verified in order to get access to my company API.
After creating an user on my custom-database, I tried using the management API to send them an email, but it shows this error:
{'statusCode': 400, 'error': 'Bad Request', 'message': 'The user does not exist', 'errorCode': 'inexistent_user'}
but when going to the “get user” function on the auth0 it returns me:
The profile is: {"user_id":"xxxx","name":"Test","email":"xxxxxx","account_id":xxxx}
So the user exists on the database, but not on the auth0 database.
If I manually active my account on the custom database, and log in, the user will appear on the dashboard, and then I can send them the email.
Is there a way to put my new users on the custom-database before first login?
or
Send emails to users not on the auth0 dashboard?
I understand that you are having trouble sending verification emails to your users that reside in your Custom Database.
First, could you please confirm if you have implemented the Verify script in your Custom Database?
Although it is not required to implement the Verify script, it’s a recommended best practice. Implementing the Verify script will provide support for user email address verification as stated in our documentation: https://auth0.com/docs/connections/database/custom-db/templates/verify
Yes, I have implemented the Verify script in the custom database, and I’ve already tested it, and it’s working properly.
My problem is that Auth0 only gets a user from the custom database, after its first login. So new users don’t appear on the dashboard until then.
If I try sending an email to an account that already logged in for the first time via the management API, the email will be sent, and it will work properly.
If I try sending an email to an account that hasn’t logged in, the email won’t be sent, since auth0 doesn’t have it on the user’s list yet.
The problem is: I want users to verify their email after creating the account and before first log in.