This post will show how to use the Yammer REST API for managing the group memberships of a group. You can find the documentation of the Yammer REST API here.

You can generate the baerer token (access token) as described in this post.
Always consider the REST API and Rate Limits when accessing a Yammer network.

Add a member to a group

You can use the snippet below to add a new member to a group. The group id can be retrieved using the techniques explained in a previous post.

Leave a group

You can leave a group by using the script below.

comments powered by Disqus