1 minute reading time
(75 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
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"
Comments