/group_memberships.json - Post

Definition

https://www.yammer.com/api/v1/group_memberships.json

Parameters

Name In Required Type Description
group_id body Yes integer The ID of the group
user_id body integer The ID of the user to add to the group
email body string The email of the user to add to the group

Documentation

Join the group specified by the group_id. If neither user_id or email is provided then the user that is currently authenticated will be added to the group.

If the email does not correspond to an existing user then as well as being invited to join the group the user will be invited to join the network. For this to work the current user must have sufficient permissions to invite a user to the network (e.g. on a moderated network the current user must be a network admin).