Hi @notten.dev13 , welcome to the Auth0 Community!
You could take a look at simply doing a bulk export of the users. Using the Import/Export extension you can decide what attributes you need to retrieve from the user profile, including the Auth0 UserID.
Hope that helps, many thanks.