Automatically deleting a group if it hasn't been used?

%3CLINGO-SUB%20id%3D%22lingo-sub-174646%22%20slang%3D%22en-US%22%3EAutomatically%20deleting%20a%20group%20if%20it%20hasn't%20been%20used%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-174646%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20a%20way%20to%20automatically%20delete%20yammer%20groups%20if%20it%20hasn't%20been%20used%20for%20a%20year%20with%20the%20ability%20for%20the%20group%20admin%20to%20renew%20their%20group%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20are%20looking%20to%20eliminate%20groups%20that%20are%20not%20being%20used.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-174646%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-192201%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20deleting%20a%20group%20if%20it%20hasn't%20been%20used%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-192201%22%20slang%3D%22en-US%22%3E%3CP%3EA%20new%20feature%20just%20added%20to%20Sharegate%20'lifecycle%20management'%20might%20be%20able%20to%20help%20you%20if%20you%20are%20using%20O365%20groups%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fen.share-gate.com%2Fblog%2Fautomated-lifecycle-management%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fen.share-gate.com%2Fblog%2Fautomated-lifecycle-management%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-192015%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20deleting%20a%20group%20if%20it%20hasn't%20been%20used%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-192015%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33820iECB57FA916DF80D8%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22expiration-settings.png%22%20title%3D%22expiration-settings.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EYou're%20right.%20You%20can%20only%20apply%20it%20to%20all%20or%20selected%20groups.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-191994%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20deleting%20a%20group%20if%20it%20hasn't%20been%20used%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-191994%22%20slang%3D%22en-US%22%3E%3CP%3EAccording%20to%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365-Groups%2FCan-we-exclude-groups-from-life-cycle-policy%2Fm-p%2F191358%23M5325%22%20target%3D%22_blank%22%3Ethis%3C%2FA%3E%2C%20the%20exclude%20feature%20is%20not%20currently%20available.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-178506%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20deleting%20a%20group%20if%20it%20hasn't%20been%20used%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-178506%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20requirement%20that%20the%20admin%20have%20the%20ability%20to%20renew%20the%20group%20makes%20it%20a%20little%20more%20of%20a%20challenge.%26nbsp%3B%20Typically%20the%20way%20to%20%22delete%22%20a%20group%20but%20allow%20it%20to%20be%20easily%20brought%20back%20at%20any%20time%20is%20to%20remove%20all%20the%20users%20from%20the%20group.%26nbsp%3B%20If%20the%20Yammer%20groups%20are%20also%20Office%20365%20Groups%2C%20then%20you%20should%20be%20able%20to%20use%20typical%20PowerShell%20tools%20to%20remove%20the%20users%20programmatically.%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinding%20the%20old%20groups%20-%20you%20can%20use%20the%20message%20export%20and%20build%20a%20report%20of%20the%20newest%20message%20per%20each%20group.%26nbsp%3B%20I'd%20start%20just%20with%20sort%20by%20group_id%20then%20a%20secondary%20sort%20by%20created_at%20(reversed)%2C%20right%20from%20within%20Excel%2C%20just%20to%20get%20an%20idea%20of%20what%20you're%20looking%20at.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-174877%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20deleting%20a%20group%20if%20it%20hasn't%20been%20used%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-174877%22%20slang%3D%22en-US%22%3E%3CP%3EKeep%20in%20mind%20that%20the%20Azure%20AD%20expiration%20policy%20doesn't%20check%20if%20the%20group%20is%20used%20or%20not.%20It%20simply%20sends%20emails%20as%20you%20reach%20the%20expiration%20date.%26nbsp%3BAlso%26nbsp%3Bnote%20that%20the%20expiration%20policy%20will%20be%20applied%20to%20all%20O365%20groups%2C%20regardless%20of%20where%20they%20have%20been%20created.%26nbsp%3BYou%20have%20the%20option%20to%20exclude%20specific%20O365%20groups%2C%20but%20AFAIK%20this%20has%20to%20be%20done%20manually.%20This%2C%20of%20course%2C%20will%20only%20work%20for%20O365%20connected%20Yammer%20groups.%20I'm%20not%20sure%20if%20I%20would%20recommend%20this%20though.%20I'm%20not%20a%20fan%20of%20deleting%20Yammer%20conversations%20as%20I%20consider%20it%20to%20be%20the%20%22memory%22%20of%20a%20company%2C%20but%20that's%20just%20me.%20What%20I%20do%20is%20add%20%22archived%22%20to%20the%20name%20of%20the%20group%20and%20%22this%20group%20is%20not%20monitored%22%20to%20the%20description%20or%20I%20switch%20it%20to%20private%20and%20remove%20the%20other%20members.%20Also%20note%20that%20after%20the%20group%20is%20expired%2C%20the%20O365%20admin%20has%20only%2030%20days%20to%20restore%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-174735%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20deleting%20a%20group%20if%20it%20hasn't%20been%20used%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-174735%22%20slang%3D%22en-US%22%3EYes%2C%20using%20Azure%20AD%20Expiration%20policies.%20However%20it%20requires%20Azure%20AD%20Premium%20licenses%20to%20do%20it%20thou.%20But%20here%20is%20the%20document.%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Factive-directory-groups-lifecycle-azure-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Factive-directory-groups-lifecycle-azure-portal%3C%2FA%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-856708%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20deleting%20a%20group%20if%20it%20hasn't%20been%20used%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-856708%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F875%22%20target%3D%22_blank%22%3E%40Christopher%20Webb%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20this%20is%20for%20Office365%20Groups..%20What%20if%20one's%20Yammer%20groups%20are%20not%20mapped%20with%20Office365%3F%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-862759%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20deleting%20a%20group%20if%20it%20hasn't%20been%20used%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-862759%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F95965%22%20target%3D%22_blank%22%3E%40Prachi%20Rasam%3C%2FA%3E%26nbsp%3Bthe%20O365%20group%20expiration%20feature%20only%20works%20for%20the%20connected%20Yammer%20groups.%20There%20is%20no%20out%20of%20the%20box%20expiration%20feature%20for%20normal%20Yammer%20groups.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Is there a way to automatically delete yammer groups if it hasn't been used for a year with the ability for the group admin to renew their group?

 

We are looking to eliminate groups that are not being used.


Thank you!

8 Replies
Yes, using Azure AD Expiration policies. However it requires Azure AD Premium licenses to do it thou. But here is the document. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-groups-lifecycle-azure-port...

Keep in mind that the Azure AD expiration policy doesn't check if the group is used or not. It simply sends emails as you reach the expiration date. Also note that the expiration policy will be applied to all O365 groups, regardless of where they have been created. You have the option to exclude specific O365 groups, but AFAIK this has to be done manually. This, of course, will only work for O365 connected Yammer groups. I'm not sure if I would recommend this though. I'm not a fan of deleting Yammer conversations as I consider it to be the "memory" of a company, but that's just me. What I do is add "archived" to the name of the group and "this group is not monitored" to the description or I switch it to private and remove the other members. Also note that after the group is expired, the O365 admin has only 30 days to restore it.

The requirement that the admin have the ability to renew the group makes it a little more of a challenge.  Typically the way to "delete" a group but allow it to be easily brought back at any time is to remove all the users from the group.  If the Yammer groups are also Office 365 Groups, then you should be able to use typical PowerShell tools to remove the users programmatically.   

 

Finding the old groups - you can use the message export and build a report of the newest message per each group.  I'd start just with sort by group_id then a secondary sort by created_at (reversed), right from within Excel, just to get an idea of what you're looking at.  

According to this, the exclude feature is not currently available.

 

expiration-settings.png

You're right. You can only apply it to all or selected groups. 

A new feature just added to Sharegate 'lifecycle management' might be able to help you if you are using O365 groups:

 

https://en.share-gate.com/blog/automated-lifecycle-management

 

 

@Deleted 

 

However this is for Office365 Groups.. What if one's Yammer groups are not mapped with Office365??

@Prachi Rasam the O365 group expiration feature only works for the connected Yammer groups. There is no out of the box expiration feature for normal Yammer groups.