The /user and /user/{id} endpoints should include any assigned roles for each user returned. Currently we’re having to update a custom field with the roles we’re assigning so we can then later check what those roles are.
This functionality already exists on the /user/{field}/{value} endpoint but having to make an individual call to that endpoint for every user when doing mass updates increases script runtime significantly.