How to delete multiple members from Yammer group

%3CLINGO-SUB%20id%3D%22lingo-sub-29594%22%20slang%3D%22en-US%22%3EHow%20to%20delete%20multiple%20members%20from%20Yammer%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-29594%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20delete%20a%20bunch%20of%20members%20from%20groups%3F%3C%2FP%3E%3CP%3EThe%20same%20as%20import%20members%20using%20a%20CSV%20file%2C%20only%20reversed%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-29594%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-32239%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20multiple%20members%20from%20Yammer%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-32239%22%20slang%3D%22en-US%22%3EMuch%20easier....%20my%20suggestion%20would've%20required%20impersonation.%20Thanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-30213%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20multiple%20members%20from%20Yammer%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-30213%22%20slang%3D%22en-US%22%3E%3CP%3EThat%20particular%20API%20will%20only%20remove%20the%20person%20running%20the%20API%20to%20be%20removed%20from%20the%20group.%20%26nbsp%3BTo%20do%20it%20as%20an%20admin%2C%20try%20this%20(credit%20to%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2980%22%20target%3D%22_blank%22%3E%40Benjamin%20Elias%3C%2FA%3E%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPOST%20%3CA%20href%3D%22https%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%2Fgroup_memberships%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%2Fgroup_memberships%3C%2FA%3E%3CBR%20%2F%3Ewith%20parameters%3A%20group_id%3D%22nn%22%2C%20user_id%3D%22uu%22%2C%20_method%3D%22DELETE%22%20(note%20the%20underscore).%20It%20will%20also%20need%20the%20usual%20API%20header.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FYammer-Developer%2FHow-to-quot-bulk-delete-quot-users-from-a-Yammer-Group%2Fm-p%2F5919%23M20%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FYammer-Developer%2FHow-to-quot-bulk-delete-quot-users-from-a-Yammer-Group%2Fm-p%2F5919%23M20%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-29679%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20multiple%20members%20from%20Yammer%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-29679%22%20slang%3D%22en-US%22%3E%3CP%3EI%20don't%20believe%20there%20to%20be%20in%20the%20browser....%20there%20is%20only%20delete%20users%20in%20bulk%2C%20but%20not%20from%20group.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20a%20possibility%20in%20the%20API.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdeveloper.yammer.com%2Fdocs%2Fgroup_membershipsjsongroup_idid-1%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.yammer.com%2Fdocs%2Fgroup_membershipsjsongroup_idid-1%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20found%20it%20easiest%20for%20these%20things%20to%20be%20done%20in%20PowerShell...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable

Hi All,

 

Is there a way to delete a bunch of members from groups?

The same as import members using a CSV file, only reversed?

 

Thanks

3 Replies

I don't believe there to be in the browser.... there is only delete users in bulk, but not from group.

 

There is a possibility in the API.

 

https://developer.yammer.com/docs/group_membershipsjsongroup_idid-1

 

I found it easiest for these things to be done in PowerShell...

 

 

That particular API will only remove the person running the API to be removed from the group.  To do it as an admin, try this (credit to @Benjamin Elias:(

 

POST https://www.yammer.com/api/v1/group_memberships
with parameters: group_id="nn", user_id="uu", _method="DELETE" (note the underscore). It will also need the usual API header.

 

https://techcommunity.microsoft.com/t5/Yammer-Developer/How-to-quot-bulk-delete-quot-users-from-a-Ya...

 

Much easier.... my suggestion would've required impersonation. Thanks