def get_nested_groups(self, username):

        response = self._get(self.rest_url + "/user/group/nested",
                             params={"username": username})

        if not response.ok:
            return None

        return [g['name'] for g in response.json()['groups']]
Retrieve a list of all group names that have <username> as a direct or indirect member.
dataset/ETHPy150Open pycontribs/python-crowd/crowd.py/CrowdServer.get_nested_groups