How to "bulk delete" users from a Yammer Group

%3CLINGO-SUB%20id%3D%22lingo-sub-5919%22%20slang%3D%22en-US%22%3EHow%20to%20%22bulk%20delete%22%20users%20from%20a%20Yammer%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5919%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20had%20a%20great%20conversation%20in%20the%20old%20Yammer%20office%20365%20network%20and%20wanted%20to%20share%20it.%20Here's%20a%20screen%20grab%20(Windows%20Edge%20Note)%20of%20the%20whole%20conversation%20as%20a%20JPG.%20I%20hope%20this%20helps%20someone.%20Thanks%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%26nbsp%3Band%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F55%22%20target%3D%22_blank%22%3E%40Tom%20Kretzmer%3C%2FA%3E%26nbsp%3Bfor%20your%20help%20on%20this%20one.%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20549px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F1956iC0F824140D5B0C39%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22BulkDeleteUsersFromYammerGroup.jpg%22%20title%3D%22BulkDeleteUsersFromYammerGroup.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-5919%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EApp%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EREST%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-16013%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20%22bulk%20delete%22%20users%20from%20a%20Yammer%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-16013%22%20slang%3D%22en-US%22%3E%3CP%3EChris%2C%20so%20sorry%20but%20I%20got%20caught%20up%20in%20a%20project.%20I'm%20already%20running%20a%20good%20prototype.%3C%2FP%3E%3CP%3EUnfortunately%20it's%20too%20late%20to%20catch%20valuable%20content%20from%20the%20already%20vanished%20Yammer%20Network%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat's%20also%20a%20pity%20is%20that%20I%20will%20stop%20posting%20in%20these%20forums%26nbsp%3Buntil%20everything%20around%20logins%2Fidentities%20is%20settled%20and%20out%20of%20beta.%3C%2FP%3E%3CP%3EOnce%20my%20apparently%203%20identities%20are%20combined%20and%20I'm%20able%20to%20post%20under%20my%20original%20account%20I%20will%20continue%20contributing%20to%20this%20formerly%20great%20community.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8616%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20%22bulk%20delete%22%20users%20from%20a%20Yammer%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8616%22%20slang%3D%22en-US%22%3EI'm%20on%20it.%20Reporting%20back%20next%20Wednesday%20with%20a%20first%20version.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8318%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20%22bulk%20delete%22%20users%20from%20a%20Yammer%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8318%22%20slang%3D%22en-US%22%3E%3CP%3ENot%20joking%20at%20all...%3C%2FP%3E%3CUL%3E%3CLI%3EChrome%20plug%20in%20should%20be%20a%20one-click%20button%20that%20%22lights%20up%22%20whenever%20the%20URL%20matches%20the%20pattern%20%22%3CA%20href%3D%22https%3A%2F%2Fwww.yammer.com%2F%5Bstring%5D%2F%23%2FThreads%2Fshow%3FthreadId%3D%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.yammer.com%2F%5Bstring%5D%2F%23%2FThreads%2Fshow%3FthreadId%3D%3C%2FA%3E...%22%3C%2FLI%3E%3CLI%3EClicking%20the%20button%20would%20then%20%22crawl%22%20the%20DOM%2C%20looking%20for%20and%20activating%20the%20%22previous%20replies%22%20link%20repeatedly%20until%20it%20doesn't%20exist%20anymore.%3C%2FLI%3E%3CLI%3EIt%20would%20then%20search%20for%20each%20of%20the%20following%20classes%26nbsp%3Band%20gather%20the%20contents%3A%26nbsp%3B%3CUL%3E%3CLI%3Eyj-hovercard-link--name%3C%2FLI%3E%3CLI%3Eyj-message-timestamp%20yj-message-attributes--time%3C%2FLI%3E%3CLI%3Eyj-message-list-item--body-message%20yj-message%3C%2FLI%3E%3CLI%3E%3CSPAN%3Eyj-ogo-attachment--title-link%20(there%20might%20be%20better%20ways%20to%20grab%20the%20images%20%2F%20links)%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3EPut%20the%20contents%20to%20the%20clipboard%20or%20to%20a%20new%20page%20so%20they%20can%20be%20previewed%20and%20copied.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EThis%20is%20all%20client-side%20to%20make%20it%20easy%2C%20as%20you%20don't%20have%20to%20register%20the%20app%20with%20Yammer%20and%20use%20authenticated%20APIs%2C%20etc.%20If%20you%20are%20up%20to%20creating%20an%20actual%20Yammer%20app%20as%20part%20of%20a%20plug%20in%2C%20you%20wouldn't%20have%20to%20do%20DOM%20crawling%20and%20could%20just%20use%20the%20API%20to%20retrieve%20the%20thread%20text%20and%20images%2C%20then%20format%20in%20a%20new%20copy-friendly%20page.%20Which%20one%20is%20less%20work%20%2F%20better%20result%20would%20depend%20on%20your%20own%20dev%20experience.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8236%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20%22bulk%20delete%22%20users%20from%20a%20Yammer%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8236%22%20slang%3D%22en-US%22%3E%3CP%3EHa%20you%20may%20be%20joking%20but%20I%20was%20just%20thinking%20about%20this%20myself%20%3B)%3C%2Fimg%3E%20Maybe%20I%20can%20work%20on%20this%20next%20week.%3C%2FP%3E%3CP%3EAny%20ideas%20you%20already%20collected%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-5921%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20%22bulk%20delete%22%20users%20from%20a%20Yammer%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5921%22%20slang%3D%22en-US%22%3E%3CP%3ESomeone%20really%20needs%20to%20write%20a%20%22scrape%20this%20Yammer%20thread%22%20Chrome%20plug%20in.%20Expand%20the%20replies%2C%20walk%20the%20DOM%2C%20grab%20the%20text%2C%20output%20something%20clean%20and%20readable.%20I%20can%20think%20of%203-4%20use%20cases%20for%20this%20right%20off%20the%20top%20of%20my%20head.%20Anyone%20want%20to%20be%20my%20dev%3F%20I'll%20be%20designer%2FPM%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1407551%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20%22bulk%20delete%22%20users%20from%20a%20Yammer%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1407551%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F49%22%20target%3D%22_blank%22%3E%40Amy%20Dolzine%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20cant%20see%20the%20image%20its%20too%20small%20can%20you%20paste%20it%20larger%20please%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP

Just had a great conversation in the old Yammer office 365 network and wanted to share it. Here's a screen grab (Windows Edge Note) of the whole conversation as a JPG. I hope this helps someone. Thanks @Benjamin Elias and @Tom Kretzmer for your help on this one. BulkDeleteUsersFromYammerGroup.jpg

6 Replies

Someone really needs to write a "scrape this Yammer thread" Chrome plug in. Expand the replies, walk the DOM, grab the text, output something clean and readable. I can think of 3-4 use cases for this right off the top of my head. Anyone want to be my dev? I'll be designer/PM :) 

Ha you may be joking but I was just thinking about this myself ;) Maybe I can work on this next week.

Any ideas you already collected?

Not joking at all...

  • Chrome plug in should be a one-click button that "lights up" whenever the URL matches the pattern "https://www.yammer.com/[string]/#/Threads/show?threadId=..."
  • Clicking the button would then "crawl" the DOM, looking for and activating the "previous replies" link repeatedly until it doesn't exist anymore.
  • It would then search for each of the following classes and gather the contents: 
    • yj-hovercard-link--name
    • yj-message-timestamp yj-message-attributes--time
    • yj-message-list-item--body-message yj-message
    • yj-ogo-attachment--title-link (there might be better ways to grab the images / links)
  • Put the contents to the clipboard or to a new page so they can be previewed and copied.

This is all client-side to make it easy, as you don't have to register the app with Yammer and use authenticated APIs, etc. If you are up to creating an actual Yammer app as part of a plug in, you wouldn't have to do DOM crawling and could just use the API to retrieve the thread text and images, then format in a new copy-friendly page. Which one is less work / better result would depend on your own dev experience.

I'm on it. Reporting back next Wednesday with a first version.

Chris, so sorry but I got caught up in a project. I'm already running a good prototype.

Unfortunately it's too late to catch valuable content from the already vanished Yammer Network :(

 

What's also a pity is that I will stop posting in these forums until everything around logins/identities is settled and out of beta.

Once my apparently 3 identities are combined and I'm able to post under my original account I will continue contributing to this formerly great community.

@Amy Dolzine 

i cant see the image its too small can you paste it larger please