Microsoft Planner: Now you can recover deleted Plans and Groups
Published Mar 06 2019 03:11 PM 98.5K Views
Brass Contributor
First published on MSDN on Mar 29, 2017

A big announcement yesterday and this is something our customers have really been waiting for – the ability to recover deleted Groups, and with them any other deleted group related content that was deleted along with the group.  The support article that outlines this can be found at https://support.office.com/en-us/article/Restore-a-deleted-Office-365-Group-b7c66b59-657a-4e1a-... and you also need to be running the AzureAD PowerShell v2 Preview module to get this working.  That can be installed in PowerShell following the instructions at https://docs.microsoft.com/en-us/powershell/azuread/ .  I think there is also a PowerShell version requirement – but works fine on my Windows 10 laptop.

The reason our customers (and I work with Planner – so am looking at ‘our customers’ being the ones using Planner) usually lose Plans is that someone (IT admin?) sees the Group and does not recognize it and so deletes it.  The warning message when you delete it probably could be better – but along with the Group you also lose the Plan and SharePoint site that holds some of the other Group/Plan content.  I’ll walk through the scenario – right from installing the Azure module, deleting a Group – see what goes away – and then recovering.

First the Azure module.  If you open PowerShell as an admin (I usually use the ISE) then following the 2nd link above it tells you to look at https://docs.microsoft.com/en-us/powershell/azuread/ for the V2 Preview Release (2.0.0.98 as I write this) and you will need to run:

Install-Module –Name AzureADPreview

This might prompt you to install the NuGet provider – if it does then just follow those instructions first.  It prompted me – so I replied Yes.

The next prompt will likely be telling you that you are installing from an untrusted repository – I decided that I did trust the repository and responded Yes at the following prompt.

If you have installed a previous version of the preview – it may tell you that you need to use the –Force option – in my case on one of my machines I had used an earlier preview – but not on this particular machine – so I was good to go.

To run any Azure commands you need to log in to Azure – so the first command is Connect-AzureAD – which will throw up a prompt and you can log in to your Office 365 tenant.

OK, now to the fun part.  I have a Plan – that has a Group and a SharePoint site.

And from the Group view I can select Edit Group – then Delete Group (You might also delete via PowerShell or the AD Portal).

I check the box – and the Group is gone.  So too the Plan.  You might see ‘Can’t get the Group data’ just after deletion if you browse to the plan – then finally once it has gone you get an ‘Oops, something went wrong…”

".

The SharePoint takes a little longer from what I have seen, – and eventually you’ll get a 403 if you try and navigate directly to it.  Same with the mailbox too – in fact I stopped waiting for that to go away just so I could get on with this blog (I assume it would finally be gone).

So now I have a deleted Group – or rather what we term a ‘soft deleted’ Group – as I can still recover it.

If I follow the support document listed at the top of this blog I can look for the deleted Group – and recover it, by using

Get-AzureADMSDeletedGroup – to get the Id – and then

Restore-AzureADMSDeletedDirectoryObject –Id <objectId> to recover the information

Once the script runs it does take a little while to recover everything – best to give it a while to get everything straight – as I have seen some odd but expected behavior if you try and go in before everything is restored.  For example if the SharePoint recovery isn’t complete you won’t see the attachments – and the checklists seemed to also not come back as quickly.  If you do see any behavior like this then generally a fresh browser or clearing the cache in your browser will get everything working (Once all the data is returned).  I did see when preparing this blog and using the same browser session that I didn’t see my attachments and also my new bucket was not present and all tasks were in the To Do bucket.  Going to a InPrivate/Incognito window for the browser showed me the expected fully recovered plan.

Obviously I could just use my previous screenshots to show that the recovery worked - but I didn’t – here is a view of the Notebook – freshly recovered:

And the answer to that question is a resounding YES!

We do also mention that although restore generally takes a few minutes it can at times take as long as 24 hours.  Get-AzureADGroup –ObjectId <objectId> will confirm if the Group is back.

The recovery is only available for 30 days from the time of deletion – and also this is only suitable for complete recovery of a deleted Group/Plan – we don’t have any capabilities to recover a deleted task or bucket from your plan – and no Point In Time Recovery options for Groups/Plans.

For more details of other AzureAD changes that came along with these new commands please see the PowerShell Gallery link above – and also the recent article from Rob de Jong and Curtis Love - https://docs.microsoft.com/en-us/azure/active-directory/active-directory-accessmanagement-group... .  I’ll be refreshing some of my earlier blog posts on Planner around the new commands for Group creation control.

11 Comments
Iron Contributor

How does it work in case when I have a team in MS Teams and I create a planner within this team. I suppose that this planner is part of it. When I delete this planner (not whole team), how can I restore this deleted planner?

Copper Contributor

 

 

Copper Contributor

It seems you can restore at plan level but not if a bucket is deleted or a task.

 

Planner is stored in exchange online the answer I got is that there is no database. Plus no permissions there either to block people from deleting by accident.

 

Those features are under development.

 

Copper Contributor

Wen need an assistance here , because by mistake one of our office mates deleted the whole plan, we are still keep trying to restore it by our IT; but we'll see.

 

if anyone is having any good idea please pm me.

 

thanks 

Copper Contributor

This feature really falls short to a 2 part A+B problem, giving only a solution to A, and nothing for B. Restoring Groups is great... but Planner??? Magically either via magic or my user clicked delete - all tasks are gone from a Planner. Now my users are cursing microsoft, and looking for another Task management project.

Copper Contributor

I agree, no option to recover deleted tasks causes huge issues for us.  People accidentally delete tasks all the time because the option is so close and no "are you sure", one slip and poof ... gone forever to never recover comments actions and all the work in the planner task!  Real pain.

 

Copper Contributor

Group can be recovered, but plan in planner with tasks is not :sad:

Copper Contributor

Please change the heading, since it's not right.

We need to be able to recover deleted plans, and as far as I can tell that is not possible if the plan where not deleted as part of the content of a group that was deleted. Right?

We accidentally deleted a plan, and found out it's impossible to recover. With this lack of feature Planner can really be a dangerous tool to use.

 

If I'm wrong, and someone knows of a way to recover a deleted plan, please let me know. Thanks!!

Copper Contributor

I agree with the many requests to be able to restore a deleted plan. I just duplicated a plan which created a new tab in the app. This did not come out as I had expected. I deleted the duplicate with it's tasks, but it turned out that only the plan - tab in the app - was duplicated, not the tasks itself. Hence deleting the duplicate also removed all of the tasks in my original plan :-(.

Copper Contributor

How does the plan/task recovery work?

Copper Contributor

I'm in the same boat. A colleague deleted my tasks and there does not seem to be any version history to try to recover this in Microsoft Planner. I guess I have to go old school and export to Excel because of this terrible design and lack of functionality. 

 

 

Version history
Last update:
‎Mar 06 2019 03:11 PM
Updated by: