List all User Groups for a team
495416
def usergroups_list(self, **kwargs) -> SlackResponse:
        """"""
        self._validate_xoxp_token()
        return self.api_call("usergroups.list", http_verb="GET", params=kwargs)
1076758
def user_in_all_groups(user, groups):
    """"""
    return user_is_superuser(user) or all(user_in_group(user, group) for group in groups)
139562
def user_groups(self, user_id, **kwargs):
        ""
        api_path = "/api/v2/users/{user_id}/groups.json"
        api_path = api_path.format(user_id=user_id)
        return self.call(api_path, **kwargs)
181424
def team_info():
    """"""
    teams = __get_league_object().find('teams').findall('team')
    output = []
    for team in teams:
        info = {}
        for x in team.attrib:
            info[x] = team.attrib[x]
        output.append(info)
    return output
421735
def group_list(auth=None, **kwargs):
    '''
    
    '''
    cloud = get_operator_cloud(auth)
    kwargs = _clean_kwargs(**kwargs)
    return cloud.list_groups(**kwargs)
581189
def map_team_id(code):
    """"""
    for team in TEAM_DATA:
        if team["code"] == code:
            click.secho(team["name"], fg="green")
            break
    else:
        click.secho("No team found for this code", fg="red", bold=True)
648917
def ib_group_member_list(self, group_id):
        '''  '''
        req_hook = 'pod/v1/admin/group/' + group_id + '/membership/list'
        req_args = None
        status_code, response = self.__rest__.GET_query(req_hook, req_args)
        self.logger.debug('%s: %s' % (status_code, response))
        return status_code, response
213004
def get_user_permissions(user):
    ''''''
    permissions = SeedPermission.objects.all()
    # User must be on a team that grants the permission
    permissions = permissions.filter(seedteam__users=user)
    # The team must be active
    permissions = permissions.filter(seedteam__archived=False)
    # The organization of that team must be active
    permissions = permissions.filter(
        seedteam__organization__archived=False)
    return permissions
1070460
def list_members(context, request):
    """"""
    members = context.members()
    return {
        'users': [{
            'username': m.identifier,
            'userid': m.userid,
            'roles': context.get_member_roles(m.userid),
            'links': [rellink(m, request)]
        } for m in members]
    }
83171
function listUserTeams ({ id, organizationId, page = 1, limit }, cb) {
      let promise = null
      if (typeof cb !== 'function') [promise, cb] = asyncify('data', 'total')

      Joi.validate({ id, organizationId, page, limit }, validationRules.listUserTeams, function (err) {
        if (err) return cb(Boom.badRequest(err))

        const offset = (page - 1) * limit
        const job = {
          id,
          organizationId,
          offset,
          limit,
          user: {},
          client: db
        }

        readUserTeams(job, (err) => {
          if (err) return cb(err)

          return cb(null, job.user.teams, job.totalTeamsCount)
        })
      })

      return promise
    }
816181
def usergroups_users_list(self, *, usergroup: str, **kwargs) -> SlackResponse:
        
        self._validate_xoxp_token()
        kwargs.update({"usergroup": usergroup})
        return self.api_call("usergroups.users.list", http_verb="GET", params=kwargs)
1213267
def filter_teams(self, teams):
		""""""
		return [LeaderboardInstance(x) for x in self._leaderboard if x['faction']['id'] in teams]
787705
def requestTeams(self, team_names):
        
        if isinstance(team_names, six.string_types):
            raise TypeError('Teams should be passed as a list of '
                            'strings (not %r)' % (type(field_names),))

        for team_name in team_names:
            self.requestTeam(team_name)
122032
def groups_dynamic(self):
        
        return sa.orm.relationship(
            "Group",
            secondary="users_groups",
            lazy="dynamic",
            passive_deletes=True,
            passive_updates=True,
        )
1228058
public Range<Invoice> listTeamInvoices(String team) {
        return connection.execute(new TeamInvoiceList(team), apiKey);
    }
944594
def _get_user_groups(self, user):
        '''
        
        '''
        return [g.gr_name for g in grp.getgrall()
                if user in g.gr_mem] + [grp.getgrgid(pwd.getpwnam(user).pw_gid).gr_name]
1285253
def list_users(self, limit=None, marker=None):
        """"""
        return self._user_manager.list(limit=limit, marker=marker)