Developers » API methods » Groups » groups.get
Returns a list of the communities to which a user belongs.

This method can be called with a user token.
user_idUser ID.
positive number, current user id is used by default
extended1 to return complete information about a user's communities
0 to return a list of community IDs without any additional fields (default)
flag, either 1 or 0
filterTypes of communities to return:
admin to return communities administered by the user
editor to return communities where the user is an administrator or editor
moder to return communities where the user is an administrator, editor, or moderator
groups to return only groups
publics to return only public pages
events to return only eventsEdited by I.D.
list of comma-separated words
fieldsProfile fields to return.
Click here for the full list of supported parameters.
list of comma-separated words
offsetOffset needed to return a specific subset of communities.
positive number
countNumber of communities to return.
positive number, maximum value 1000
Returns the total results number in count field and an array of communities IDs in items field.

If extended is set to 1, returns an array of objects describing communities in items field.

30This profile is private
260Access to the groups list is denied due to the user's privacy settings
Global errors can occur while running. See their descriptions on this page.
Version historyShow all
The groups.get method returns the market object with the type (string) field, the value of which can be either basic or advanced depending on the shop type. This field is returned if the "Products" section is enabled in the community.
Affects methods groups.get
Community object contains new cover field. account.getCounters method takes a new value friends_suggestions in the filter parameter. pages.get checks whether the user has administrator rights for using the need_source parameter.
can_message, ban_info, can_post, can_upload_doc, can_upload_video, can_see_all_posts, can_create_topic, is_favorite, is_hidden_from_feed fields in a community object are returned for the requests including access_token only.
Group fields start_date and finish_date became numbers (were strings).
If friend filter is enabled, field user_id is returned instead of uid.
Method fave.getLinks returns images with names photo_50 and photo_100 instead of image_src and image_middle.