Situation: A user deleted a teams group he created. He has a problem to restore it.
Resolution 1: The fast and easy way to restore is going to this link: https://outlook.office.com/people/group/deleted
Restore it from Deleted under group.
Resolution 2: Your IT administrator can restore it for you.
1: Go to the admin center.
2: Expand Groups, and then click Deleted groups.
3: Select the group that you want to restore, and then click Restore group.
Resolution 3: Your IT can always recover deleted teams by restoring the Microsoft 365 Groups that backs them, here’s a Powershell code i wrote that gets the job done:
Get-AzureADMSDeletedGroup -Top 10000| Export-Csv -Path “E:\DeletedTeams.csv” -Encoding UTF8
$DG_list = Import-Csv E:\DeletedGID.csv
foreach ($DGmember in $DG_list) {
Restore-AzureADMSDeletedDirectoryObject –Id $DGmember.GroupID
}
*The first line will export the recent 10000 deleted office 365 groups. You can always change this number.
*The rest of the code will iterate over items in another csv file named DeletedGID.csv that has one column with the deleted groups ID (GroupID)