code: def get_user_groups(self, user_name):
          
  
          res = self._make_ocs_request(
              'GET',
              self.OCS_SERVICE_CLOUD,
              'users/' + user_name + '/groups',
          )
  
          if res.status_code == 200:
              tree = ET.fromstring(res.content)
              self._check_ocs_status(tree, [100])
              return [group.text for group in tree.find('data/groups')]
  
          raise HTTPResponseError(res)
docs: Get a list of groups associated to a user.
  
          :param user_name:  name of user to list groups
          :returns: list of groups
          :raises: HTTPResponseError in case an HTTP error status was returned