Restore a team in Microsoft Teams

%3CLINGO-SUB%20id%3D%22lingo-sub-60223%22%20slang%3D%22en-US%22%3ERestore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-60223%22%20slang%3D%22en-US%22%3E%3CP%3EAccording%20to%20this%20article%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FRestore-a-deleted-Office-365-Group-b7c66b59-657a-4e1a-8aa0-8163b1f4eb54%3Fui%3Den-US%26amp%3Brs%3Den-US%26amp%3Bad%3DUS%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FRestore-a-deleted-Office-365-Group-b7c66b59-657a-4e1a-8aa0-8163b1f4eb54%3Fui%3Den-US%26amp%3Brs%3Den-US%26amp%3Bad%3DUS%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20is%20possible%20to%20restore%20a%20deleted%20Team.%20However%20the%20article%20states%3A%3C%2FP%3E%3CP%3E%3CSPAN%3EAdditionally%20if%20you%20have%20a%20connected%20Microsoft%20Team%20or%20Office%20365%20Connected%20Yammer%20group%20those%20can%20be%20restored%20as%20well.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EWhich%20sort%20of%20sounds%20like%20there%20is%20an%20additional%20action%20needed%20but%20no%20further%20explanation.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EDoes%20someone%20has%20experience%20with%20restoring%20a%20Team%3F%20Will%20the%20Team%20automatically%20be%20restored%20once%20the%20connected%20Office%20Group%20is%20restored%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-60223%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-93353%22%20slang%3D%22en-US%22%3ERe%3A%20Restore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-93353%22%20slang%3D%22en-US%22%3E%3CP%3EI%20just%20blogged%20about%20this%20process%20of%20restoring%20a%20deleted%20team%20in%20Microsoft%20Teams%2C%20feedback%20welcome%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Fskypehybridguy%2F2017%2F07%2F23%2Frestoring-a-deleted-team-in-microsoft-teams%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Fskypehybridguy%2F2017%2F07%2F23%2Frestoring-a-deleted-team-in-microsoft-teams%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-91291%22%20slang%3D%22en-US%22%3ERe%3A%20Restore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-91291%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20article%20describes%20how%20to%20restore%20a%20Team%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Fskypehybridguy%2F2017%2F07%2F23%2Frestoring-a-deleted-team-in-microsoft-teams%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Fskypehybridguy%2F2017%2F07%2F23%2Frestoring-a-deleted-team-in-microsoft-teams%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-78070%22%20slang%3D%22en-US%22%3ERe%3A%20Restore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-78070%22%20slang%3D%22en-US%22%3E%3CP%3EI%20think%20it%20did%2C%20but%20it%20already%20some%20time%20ago.%20Luckily%20we%20did%20not%20have%20to%20restore%20other%20Teams.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-77761%22%20slang%3D%22en-US%22%3ERe%3A%20Restore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-77761%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3091%22%20target%3D%22_blank%22%3E%40Joost%20Koopmans%3C%2FA%3E%20wrote%3A%3CBR%20%2F%3E%3CP%3EAnd%20I%20can%20confirm%20that%20restoring%20a%20Group%20also%20restores%20the%20associated%20Team%20automatically.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EAnd%20all%20the%20conversation%20in%20the%20team%20will%20be%20restored%20too%20%3F%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-61004%22%20slang%3D%22en-US%22%3ERe%3A%20Restore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61004%22%20slang%3D%22en-US%22%3E%3CP%3EAnd%20I%20can%20confirm%20that%20restoring%20a%20Group%20also%20restores%20the%20associated%20Team%20automatically.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-60254%22%20slang%3D%22en-US%22%3ERe%3A%20Restore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-60254%22%20slang%3D%22en-US%22%3ERestoring%20the%20Group%20should%20restore%20everything%3A%20Related%20Team%2C%20Related%20Group%20%2F%20Team%20Site%2C%20Related%20Planners%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-60247%22%20slang%3D%22en-US%22%3ERe%3A%20Restore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-60247%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%40Deleted%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20the%20reply.%20I%20guess%20you%20are%20referring%20to%20Team%20files%20deleted%2C%20that%20are%20recoverable%20via%20the%20recycle%20bin%3F%20In%20this%20case%20the%20complete%20Team%20is%20gone%20(including%20the%20Office%20Group)%20and%20needs%20to%20be%20restored.%20The%20associated%20SharePoint%20site%20is%20therefore%20also%20not%20there%20anymore%2C%20so%20no%20recycle%20bin%20to%20check.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20still%20trying%20to%20figure%20out%20how%20the%20Team%20got%20removed%20in%20the%20first%20place%20and%20will%20need%20to%20go%20through%20the%20audit%20logging%20for%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20I%20need%20to%20know%20how%20to%20restore%20the%20Team%20as%20well.%20Hopefully%20it%20is%20a%20simple%20as%20restoring%20the%20Group%20and%20I%20am%20looking%20for%20someone%20who%20has%20experience%20with%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-60225%22%20slang%3D%22en-US%22%3ERe%3A%20Restore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-60225%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Joost%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Edoes%20it%20not%20appear%20in%20the%20recycle%20bin%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1638057%22%20slang%3D%22en-US%22%3ERe%3A%20Restore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1638057%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3091%22%20target%3D%22_blank%22%3E%40Joost%20Koopmans%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20restore%20any%20deleted%20using%20AzureADPreview%20Powershell%20module.%3C%2FP%3E%3CP%3EProcedure%3A%3C%2FP%3E%3CP%3EInstall%20AzureADPreview%20Powershell%20by%20running%20the%20following%20command.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EModule%20Installation%3A%3C%2FP%3E%3CP%3EInstall-Module%20AzurePreview%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConnecting%20To%20Azure%3A%3C%2FP%3E%3CP%3EConnect-AzureAD%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFinding%20Deleted%20Team%3A%3C%2FP%3E%3CP%3EGet-AzureADMSDeletedGroup%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGetting%20Object%20ID%3A%3C%2FP%3E%3CP%3E%24Objectid%20%3D%20(Get-AzureADMSDeletedGroup%20-All%20%24True%20%7C%20where%20%7B%24_.DisplayName%20-like%20%22%3CEM%3EFinance%3C%2FEM%3E%22%7D).ObjectId%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERestoring%3A%3C%2FP%3E%3CP%3ERestore-AzureADMSDeletedDirectoryObject%20-Id%20%24ObjectId%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EComplete%20Refference%20at%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fmcsaguru.com%2Fhow-to-restore-a-microsoft-office-365-deleted-team-using-powershell%2F%22%20rel%3D%22nofollow%20noreferrer%20noopener%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fmcsaguru.com%2Fhow-to-restore-a-microsoft-office-365-deleted-team-using-powershell%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2185226%22%20slang%3D%22en-US%22%3ERe%3A%20Restore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2185226%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F783121%22%20target%3D%22_blank%22%3E%40muhammadfaizan%3C%2FA%3E%26nbsp%3Bthis%20works%20thank%20you!%3C%2FP%3E%3CP%3EHowever%20it%20didn't%20work%20for%20me%20when%20I%20used%26nbsp%3B%24ObjectId%20in%20the%20restore%20statement%20%2C%20so%20instead%20of%20using%20the%20variable%26nbsp%3B%24ObjectId%20y%20used%20the%20group%20Id%20that%20came%20up%20in%20the%20console%3C%2FP%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E(Example)%3C%2FDIV%3E%3CDIV%3EObjectId%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BDisplayName%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BDescription%3CBR%20%2F%3E---------------------------------------------%20--------------------%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B-----------%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF9900%22%3Easdh-548-alkjshf-alskjdf-00000000000%3C%2FFONT%3E%20Sample%20deleted%20Group%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Sample%20deleted%20Group%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThis%20is%20how%20the%20Restore%20statement%20changed%20for%20me%3A%3C%2FDIV%3E%3CDIV%3ERestore-AzureADMSDeletedDirectoryObject%20-Id%20%3CFONT%20color%3D%22%23FF9900%22%3Easdh-548-alkjshf-alskjdf-00000000000%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2217280%22%20slang%3D%22en-US%22%3ERe%3A%20Restore%20a%20team%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2217280%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3091%22%20target%3D%22_blank%22%3E%40Joost%20Koopmans%3C%2FA%3E%26nbsp%3B%20How%20can%20I%20recover%20a%20teams%20message%20that%20was%20deleted%20for%20obvious%20reasons%20by%20a%20colleague.%26nbsp%3B%20It%20seems%20this%20other%20user%20deleted%20entire%20conversations%20and%20it's%20now%20permanently%20deleted%20since%20it's%20been%20over%20the%2030%20days.%26nbsp%3B%20I%20was%20reading%20it%20can%20be%20recovered%20for%20compliance%20purposes%20which%20I%20believe%20I%20will%20likely%20need.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

According to this article:

https://support.office.com/en-us/article/Restore-a-deleted-Office-365-Group-b7c66b59-657a-4e1a-8aa0-...

 

It is possible to restore a deleted Team. However the article states:

Additionally if you have a connected Microsoft Team or Office 365 Connected Yammer group those can be restored as well.

 

Which sort of sounds like there is an additional action needed but no further explanation.

 

Does someone has experience with restoring a Team? Will the Team automatically be restored once the connected Office Group is restored?

11 Replies

Hi Joost,

 

does it not appear in the recycle bin?

Hi @Deleted,

 

Thank you for the reply. I guess you are referring to Team files deleted, that are recoverable via the recycle bin? In this case the complete Team is gone (including the Office Group) and needs to be restored. The associated SharePoint site is therefore also not there anymore, so no recycle bin to check.

 

I am still trying to figure out how the Team got removed in the first place and will need to go through the audit logging for that.

 

However I need to know how to restore the Team as well. Hopefully it is a simple as restoring the Group and I am looking for someone who has experience with this.

Restoring the Group should restore everything: Related Team, Related Group / Team Site, Related Planners

And I can confirm that restoring a Group also restores the associated Team automatically.


@Joost Koopmans wrote:

And I can confirm that restoring a Group also restores the associated Team automatically.


And all the conversation in the team will be restored too ??

I think it did, but it already some time ago. Luckily we did not have to restore other Teams.

I just blogged about this process of restoring a deleted team in Microsoft Teams, feedback welcome:

https://blogs.technet.microsoft.com/skypehybridguy/2017/07/23/restoring-a-deleted-team-in-microsoft-...

@Joost Koopmans 

 

You can restore any deleted using AzureADPreview Powershell module.

Procedure:

Install AzureADPreview Powershell by running the following command.

 

Module Installation:

Install-Module AzurePreview

 

Connecting To Azure:

Connect-AzureAD

 

Finding Deleted Team:

Get-AzureADMSDeletedGroup

 

Getting Object ID:

$Objectid = (Get-AzureADMSDeletedGroup -All $True | where {$_.DisplayName -like "Finance"}).ObjectId

 

Restoring:

Restore-AzureADMSDeletedDirectoryObject -Id $ObjectId

 

Complete Refference at: https://mcsaguru.com/how-to-restore-a-microsoft-office-365-deleted-team-using-powershell/

@muhammadfaizan this works thank you!

However it didn't work for me when I used $ObjectId in the restore statement , so instead of using the variable $ObjectId y used the group Id that came up in the console

 
(Example)
ObjectId                                                     DisplayName                         Description
--------------------------------------------- --------------------                 -----------
asdh-548-alkjshf-alskjdf-00000000000 Sample deleted Group          Sample deleted Group 
 
This is how the Restore statement changed for me:
Restore-AzureADMSDeletedDirectoryObject -Id asdh-548-alkjshf-alskjdf-00000000000
 
 

@Joost Koopmans  How can I recover a teams message that was deleted for obvious reasons by a colleague.  It seems this other user deleted entire conversations and it's now permanently deleted since it's been over the 30 days.  I was reading it can be recovered for compliance purposes which I believe I will likely need.