Manage the group memberships using the Yammer REST API and PowerShell
This post is part of a post series.
- Access the Yammer REST API through PowerShell
- Delete a Yammer message through the Yammer REST API with PowerShell
- Get all Yammer messages through the Yammer REST API with PowerShell
- Working with groups using the Yammer REST API and PowerShell
- Get all Yammer users through the Yammer REST API with PowerShell
- Manage the group memberships using the Yammer REST API and PowerShell (this post)
- Working with users using the Yammer REST API and PowerShell
- Search in Yammer through the Yammer REST API with PowerShell
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.
This post is part of a post series.
- Access the Yammer REST API through PowerShell
- Delete a Yammer message through the Yammer REST API with PowerShell
- Get all Yammer messages through the Yammer REST API with PowerShell
- Working with groups using the Yammer REST API and PowerShell
- Get all Yammer users through the Yammer REST API with PowerShell
- Manage the group memberships using the Yammer REST API and PowerShell (this post)
- Working with users using the Yammer REST API and PowerShell
- Search in Yammer through the Yammer REST API with PowerShell