Best way to get user list with their roles

I am building asp core API that needs to manage users on Keycloak using Rest Admin.
I need to get list of users with their roles, but Keycloak doesn’t return roles in Array.
Is there any better solution besides getting all user roles and iterate thought them to get users?

Thanks in advance.