Given an Auth-Token and a User-Id I need to retrieve the groups another user is part of.
So far I was using the users.info
endpoint specifying on the fields query parameter to include the groups.
As an example, the following call returns information about a user identified by USER_ID together with the rooms that the user is part of:
/api/v1/users.info?userId=USER_ID&fields={"rooms": 1}
The fields query parameter has been disabled on Rocket.Chat 7.0.0 and therefore I can no longer use it.
Is there an alternative way to retrieve the groups a user is part of?