Nconforti
5 years agoMentor
Get role for every user
Hi everyone,
I'm currently trying to create a list of users and each user's role. I can make a call using V2 API to get the list of users, but in the 'roles' field, I only get the query I can use to retrieve that person's role. Right now I make a call using the Khoros python project to get all of the users, and then have to iterate over each of the users to get the roles assigned to them, which isn't very efficient. Is it possible to make just one call to get a list of users AND the roles at one time instead of having to make hundreds of calls to get the roles? Maybe there's something I'm missing.
Appreciate the help!
Nconforti, There is no other workaround on this, the way you are doing is the only way to get user roles.