Query a large number of users to update their metadata

We have a need to add a new app_metadata property to a large number of our users (more than 1000, but less than all of them), what I would like to do is use the Auth0 API (python client) to query all users that match our criteria and then iterate over them to perform the update.

The problem is the 1000 user limit imposed on the paged users endpoint of the management API and I don’t know how to get round this to perform an update for each user.

Hey there @jake3!

If you haven’t already, you might want to check out the /users-exports API when dealing with more than 1000 users.

Hope this helps!

1 Like

Yeah, we ended up going that route, pulled all the user data from the right connection and then filter on our end once we got the download.