Forum Discussion
michaelmaillot_op
Nov 27, 2019Brass Contributor
Unable to Remove a (orphaned ?) Team from user interface
Hi,
I'm working on the Teams creation through Graph API. I'm creating the Unified Group (with the SharePoint), then the Team. And as I was using a service account, I wanted to remove the account from the Group owners, which I did.
Then, I wanted to clean things up, by deleting the Group / SharePoint / Team. So I've deleted the Group (through AAD Portal), then the SharePoint Site. But now I'm stucked because the Team still exists but I can't remove it from the user interface as I'm no owner of it... And of course, I can't see the Team through the admin interface.
Any idea how to remove it? I've got all the admin rights, so no limit on a working solution.
Thx.
FYI
I just got in touch with Microsoft Support and they informed me that there's a delay between the permanent deletion of a Group / Team from administration and its propagation to the UI. In my case, the "orphaned" Team has gone since my last post, which is good.
Now I know that, when interacting with a Team from Admin Interface or AAD Group takes a bit more time to propagate, than passing by the User Interface.
Thanks again for your help everyone 🙂
- rene_weberBrass ContributorHave you tried using the Microsoft Teams Powershell Module?
https://www.powershellgallery.com/packages/MicrosoftTeams/1.0.3
https://github.com/microsoftdocs/office-docs-powershell- michaelmaillot_opBrass Contributor
rene_weber Thx but that doesn't help, because those PowerShell commands work like Graph API : every action of deleting / setting Owners is related to the Group Entity, which in my case doesn't work anymore.
- Hmm, its a long shot but could you
1.) Restore the Group and SharePoint Site (should be recoverable for 30 days
2.) Assign you as a new owner to the group with Powershell (https://support.office.com/en-us/article/Assign-a-new-owner-to-an-orphaned-group-86bb3db6-8857-45d1-95c8-f6d540e45732)
3.) Then remove the Team
Let me know how it goes
Best, Chris- michaelmaillot_opBrass Contributor
ChrisHoardMVP Thx for your answer.
But it would be too easy : the problem is that I've permanently deleted the Group so as the SharePoint Site...
Any other suggestion ?
- Think it's going to be a ticket to support on this one for Microsoft to ice it. Whether they do it or they provide you with a means I would add the ultimate resolution here so that the community can benefit and know how to proceed next time
Hope that answers your question
Best, Chris