Checks whether a user is a member of a group or an event.
This method can be called without an access token.
Parameters
group_id
integer
(positive)
Group identifier.
user_id
integer
(positive)
User identifier to check.
user_ids
string
Up to 500 comma-separated user identifiers.
extended
boolean
Whether to also return information about join requests and invitations.
By default false.
Result
If only a single identifier was passed and extended is false, returns a boolean value indicating whether the user is a member of the group.
If multiple identifiers were passed, returns an array of objects containing user_id (integer) and member (boolean).
If extended is true, returns the same objects, with extra fields each:
request– whether there’s a pending join request from this user (only returned with a token withgroups:readpermission, for group admins or moderators)invitation– whether this user is invited into this group or event (only returned with a token withgroups:readpermission, for group admins or moderators)can_invite– whether the current user can invite this user to this group or event