My problem statement is i am using the user api with given role ids , it returns the user as required but which user is have which role that is missing , how can i get this in single API call
Not sure i understand. You’re trying to get all members of a specific role or roles for a list of users?.
You can refer to this file for all available API endpoints/functions
For example to get the list of all users for a specific role
actually currently the above api returns the users details but i want to know the role also of the users in single api not in consecutive one
They are two different resources thats why you need two API calls if you want that.