How can I get rooms(groups) of a user using python API? I have admin access to rocketchat. I tried:
from rocketchat_API.rocketchat import RocketChat
rocket = RocketChat(
ROCKET_CHAT_ADMIN_USERNAME,
ROCKET_CHAT_ADMIN_PASSWORD,
server_url=ROCKET_CHAT_HOST)
rocket.users_info(USER_ID)
but it does not contain groups information. I think that I should provide another argument to this method according to the Rest API but I don't know how.