Forum Discussion
O365 Groups and its related content (Plan, Files, etc.) when Group Owner leaves the organization?
Currently I know that there is no full soft-delete function tied into groups which is a big roadblock to deployment in some environments however if it's possible to recover say just the OneDrive/SharePoint portion of the group currently today?
- Oct 05, 2016
There is no way to recover SharePoint data once the group has been deleted. If you want to recover files for groups without owners you will need to add a user as an owner of the group to access/move/copy the files.
Here is a script from the Office 365 for IT Pro book to find out which groups do not have owners:
# Find out which groups do not have owners $groups = Get-UnifiedGroup ForEach ($G in $Groups) { If ($G.ManagedBy -Ne $Null) { $GoodGroups = $GoodGroups + 1 } Else { Write-Host "Warning! The" $G.DisplayName "has no owners" $BadGroups = $BadGroups + 1 } }Write-Host $GoodGroups "groups are OK but" $BadGroups "groups lack owners"
- Antony TaylorOct 05, 2016Steel ContributorNice Script Drew!
Make sure its uploaded to the PowerShell repository! https://www.powershellgallery.com- Oct 05, 2016
Nice I will try to get it out there. I have been tracking all of my O365 Groups scripts on GitHub currently.
- Sudeep VemulapalliOct 05, 2016Copper Contributor
Thank you all for your responses. This is very helpful!
- Martina GromFeb 04, 2017MVPfrom the roadmap soft-delete of groups is close. If you need a separate backup of your SharePoint files within the group you can help yourself by using the Microsoft Graph API. This is what we did and this helped us a lot in the past!
- TonyRedmondFeb 04, 2017MVP
I wish I could be as hopeful about the arrival of soft-delete. We have been asking for it since November 2014. It has been promised many times, most recently "by the end of 2016" as per Microsoft sessions at Ignite, and here we are in February 2017.
Soft-delete will come, it's just coming a lot longer than I thought it would ever take...
- Martina GromApr 17, 2017MVP...and soft delete for groups is here. https://support.office.com/en-us/article/Restore-a-deleted-Office-365-Group-b7c66b59-657a-4e1a-8aa0-8163b1f4eb54?ui=en-US&rs=en-US&ad=US&fromAR=1