Auth0 get users by email for sms accounts

Hello Team,

We are using Auth0 passwordless SMS as our primary authentication factor. The auth0 forms is being used to create passwordless email account only if user is registering for the first time. Once it is created, I link email account with primary sms account using Link API in flows.

For the same forms, I have one step wherein, I check whether entered email_id by user is already present or not using below API endpoint:

https://dev-login.xx.com/api/v2/users?q=identities.profileData.email:“{{fields.get_email}}” OR email:“{{fields.get_email}}”

Everything works fine. One day I observed the reindexing issue on my production tenant and above endpoint was not providing latest information.

I was told by Auth0 team that this endpoint is eventually consistent but there is no other endpoint which will serve my need to check whether the user email account is present or not.

I have verified /user_by_email endpoint but it only responds if I have passwordless email primary account not SMS.

How can I solve this to be production safe?

Thanks

Hi @yash.panchal

Welcome to the Auth0 Community!

Thank you for posting your question; regarding the API/v2/users endpoint, the reindexing issue should be very rare. There are currently no other options that would fit your use case, so I would encourage you to open a new topic in the Product Feedback with the request for a new endpoint similar to /user_by_email but for the passwordless connection.

Thank you and I apologize for the inconvenience.
Dawid

Hi @dawid.matuszczyk ,

Created the same: Auth0 search passwordless SMS user management API

What is general turnaround time for this?

@dawid.matuszczyk , It turned out not true statement that “reindexing issue should be very rare”
I faced this issue in 2-3 times in last 10 days.

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