Export a list of users with verified phone number

Hi,

We have a tenant with a lot of users.
We use email as the primary identity and then we may link additional identities such as phone_number to the user.
The phone_number may be verified or un_verified.

What options do we have for exporting all users with a verified phone number?

Thanks,
Maor

Hi @maor.g, and welcome back to the Auth0 Community!

Exporting users can be done in 2 ways, but unfortunately, neither allows you to filter based on the verification status of a phone number.

The options are to use either the Management API by making a call to the POST /API/v2/jobs/users-exports endpoint or the User Import/Export extension, which can be found in the Auth0 Dashboard under Extensions.

Both options are described in detail in this Knowledge Article. Once you have obtained the .csv or .json file containing the users, you can filter them programmatically.

Please let me know if I can be of more assistance.
Teodor.

1 Like