<link href="https://fonts.googleapis.com/css?family=Roboto:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&amp;display=swap" rel="stylesheet"/>
1 minute reading time (134 words)

Get all Yammer groups using REST API and PowerShell

How to get all Yammer groups names and ids using REST API PowerShell and export to csv


...

Getting started with Yammer REST API and PowerShell - TechLabs

Yammer how-to guides: Connect to Yammer REST API using PowerShell. Get all Yammer groups using REST API and PowerShell. Get Yammer group members using REST API PowerShell. Delete Yammer groups and users with REST API PowerShell

Get all Yammer group names and ids using PowerShell

$token = "YOUR-TOKEN"
$yammerbaseurl = "https://www.yammer.com/api/v1/groups.json"
$headers = @{ "Authorization" = "Bearer "+$token }
$webRequest = Invoke-WebRequest -Uri $yammerbaseurl -Method Get -Headers $Headers

$groups = $webRequest.Content | ConvertFrom-Json
$groups | Select-Object id, name

# export to csv 
$groups |  Select-Object id, name | Export-Csv "C:\temp\yammer-groups.csv" 

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Sunday, 20 July 2025
You can help support this website by buying me a coffee!
Buy Me A Coffee