Returns the list of groups or events in which a user is a member.

This method can be called without an access token.

Parameters

user_id
integer (positive)

User identifier for which to return groups. Current user ID by default, required if not using a token.

filter
string

Comma-separated list of filters determining what kinds of communities to return. Possible values:

  • admin – where they are an administrator
  • moder – where they are a moderator or an administrator
  • groups – only return groups
  • events – only return events

Events and filtering by admin level require a token and only apply for the current user and require the groups:read permission.

fields
string

Comma-separated list of group profile fields to return.

offset
integer (non-negative)

Offset into the group list for pagination.

count
integer (1..1000)

How many groups to return.

By default 100.

Result

A paginated list of group identifiers.

If fields were specified, a paginated list of group objects.

Errors

Global errors may occur when calling this method.