How to get users with their assigned roles using the Import/Export job?

Hi , we want to try to use the import/export job to get all our users with their assigned roles from auth0 (for cache purposes)
I managed to get the export job working , but I don’t see how I can get also their list of roles.
Can someone put me in the right direction of how this property is called so I can add it to the parameter in the export job?

By the way , can I invoke this export job programmatic using the auth0 java SDK?

thank you

anyone?
we really need this to work

What is the way to get this work ?

Hey there!

Let me research that and potentiaally discuss with our product managers!

Hi @konrad.sopala

Any update to this question. We should also export the users with their roles over the export functionality (Bulk User Exports).

Thanks,
Thomas

Hey there!

I haven’t got the info from the engineering team yet. Let me ping them!

2 Likes

Hi guys
Is there any news on if we can get roles for each user when exporting?

I’d like to know this as well. The workaround I’ve had to use is this:

  1. Get the list of roles using /api/v2/roles
  2. Get the list of users using /api/v2/users
  3. Get a list of users in each role using /api/v2/roles/{id}/users

Combine user info from 2 & 3.

It would be great if I could simply use step 2, with the roles attached to each user. I could then easily paginate (if many users exist), and each user would have their respective roles attached.