Deleted users available to add to Yammer groups

Super Contributor

When people leave our company we remove them from Sharepoint and Yammer. If i export users from Yammer they show as "soft_deleted" and don't show up as user of Yammer anymore, EXCEPT, when you add members to Yammer Groups. If you type in some letters and it gives a real time list of names that match, ALL of our previous employees names show up in there.


Is that a bug?




2 Replies

Hey Rob,


You have to remove each user from Yammer  Manually


If you're an admin

Go to Network Admin > System > Users > Remove Users > Search the name of User whom you want to remove and click on thier profile to remove.


I hope it will work for you



In your export, do the users that are popping up in suggested users have a value within the delete_at date field?  If they do, then I believe this is a bug.  (If they don't, then they're not really deleted.)  You should call this in, but in the meantime there are two other things you can do.  You can block the accounts en masse, which should prevent the behavior.  Also, you can force Yammer to re-acknowledge the deletion by programattically forcing a delete using the script below.  They'll still show up in the export, but they should be genuinely gone.


Written by James Wilcox

#PowerShell Script to Set Accounts to soft_delete

$token = "<Token>"

 $Headers = @{
 "Accept" = "*/*"
 "Authorization" = "Bearer "+$token
 "accept-encoding" = "gzip"
 "content-length" = "2"

#import User ID's that need removed.
 $users = import-csv C:\Yammer\UsersToDelete.csv
 $users = $

#loop through all User ID's
 foreach ($user in $users){

 $uri = "$user.json?delete=true"

Write-Host $uri

(Invoke-WebRequest -Uri $uri -Method Delete -Headers $Headers).content | ConvertFrom-Json