Table of Contents
Retention Preserved A Huge Number of Loop Workspace Updates
On August 27, I wrote about the case of the massive Loop Container where a SharePoint Embedded container holding a single Loop workspace had grown to over 87 GB (96.09 GB at the last check, or 38.68% of the overall SharePoint storage of 247.78 GB consumed by the tenant).
A support case brought in the Loop developers to investigate, and the eventual determination was that the growth was due to retention policies that held every change made to the workspace. The Loop developers discovered that 1,089 retained changes accounted for 99.3% of the container. This article explains what happened and why Loop workspaces can gobble up large amounts of valuable SharePoint storage.
Purview Treats SharePoint Embedded Like SharePoint Online
The first thing to understand is that SharePoint Embedded supports the same retention capabilities as SharePoint Online. Retention policies even have an ExcludeSPE property that can be set to true or false (but not by tenant administrators). SharePoint Embedded does not support automatic versioning, and relies on traditional version limits instead. By default, Loop retains 50 major versions of workspaces and pages. However, retention holds override versioning limits because SharePoint retains all changes.
When it comes to oversight for Microsoft 365 tenant administrators, SharePoint Embedded is a black box. The SharePoint admin center supports minimal insight into the containers that exist, their size, and the owning apps. The same information is available through the Get-SPOContainer PowerShell cmdlet. Graph APIs can interrogate the drives and drive items that exist inside a container, but only if you control the owning application. Obviously, I have zero control over Loop.
Retention Holds
The Loop developers reported that three retention holds were in place for the problematic container. All they could give me were the GUIDs (identifiers) for the holds. Some probing was required to discover what the holds were.
The first place I checked was the set of in-place holds recorded in the Exchange Online organization configuration:
Get-OrganizationConfig | Select-Object -ExpandProperty InPlaceHolds grp703105e3b8804a1093bb5cb777638ea8:1 mbx698cb9cc49a44ba6baa9d2733d8acc6f:1 grp698cb9cc49a44ba6baa9d2733d8acc6f:1 grp5278469eb8cc40538d9ba6bdbe2e530c:1 mbx7f704150527d4a098caa5cccfc3550ef:1 grp7f704150527d4a098caa5cccfc3550ef:1 grp8687cea441ba46c4b56decda78126c38:1 mbx8687cea441ba46c4b56decda78126c38:1 mbxc1e2d6f1785d4bf8a7746a26e58e5f66:1 grpc1e2d6f1785d4bf8a7746a26e58e5f66:1 grp03309c59ce374cf48d3c7c994eddf4c1:2 mbxf6a1654abdba4712a43c354e28a4d56c:1 grp85eb38087b2642619b79161788f5b81b:1 grp5d763f9615e8424a8190b49687c65f46:1 grpfcab5f8ef3e74a778c33a744d686b010:1 mbx19200b9af08442529be070dae2fd54d3:1 grpf6a1654abdba4712a43c354e28a4d56c:
One of the three holds (03309c59-ce37-4cf4-8d3c-7c994eddf4c1) is in the set. It is recorded as a hold for Microsoft 365 Groups (grp prefix). Checking further, I discovered that the hold is imposed by a cloudy attachments auto-label policy.
Although Loop components aren’t listed in Microsoft’s documentation for cloudy attachments, components can be shared. The policy nevertheless resulted in a retention hold being applied to the SharePoint Embedded container. I don’t know whether this is an intentional consequence of how cloudy-attachment retention processes Loop content or simply a side effect of the policy’s SharePoint scope. Either way, removing SharePoint from the policy scope removed this hold from the container.
$Id = "03309c59-ce37-4cf4-8d3c-7c994eddf4c1" Get-RetentionCompliancePolicy -Identity $Id -DistributionDetail | Format-List Name, Guid, Enabled, Mode Name : Cloud Attachments Auto-Label Policy Guid : 03309c59-ce37-4cf4-8d3c-7c994eddf4c1 Enabled : True Mode : Enforce
To remove the hold from SharePoint Embedded, I updated the auto-label policy and removed “SharePoint classic and communication sites” from the list of locations (Figure 1).

Microsoft says that although SharePoint Embedded containers aren’t SharePoint sites, for retention and deletion they behave the same as SharePoint sites. Microsoft specifically calls out Microsoft Loop and Copilot Pages as examples of applications whose content can reside in SharePoint Embedded containers. Removing SharePoint classic sites from the policy scope also removes SharePoint Embedded containers.
Adaptive Protection
I ran the same check against retention policies to see if further matches existed. One policy showed up, this time one created automatically by Microsoft when a tenant enables Purview Adaptive Protection. The data lifecycle management part of Adaptive Protection is still in preview. Adaptive Protection uses an automatically created Data Lifecycle Management policy to preserve SharePoint, OneDrive, and Exchange Online content deleted by users assigned the Elevated risk level for 120 days.
$Id = 'e67d60d3-82ff-467c-83b9-67b1e444417e' Get-RetentionCompliancePolicy -Identity $Id -DistributionDetail | Format-List Name, Guid, Enabled, Mode Name : Proactive data retention for risky users Guid : e67d60d3-82ff-467c-83b9-67b1e444417e Enabled : True Mode : Enforce
When tracking problems, the devil is in the detail. Discovering that a system-generated auto-label policy had placed a hold on Loop workspaces in SharePoint Embedded was definitely a detail that slipped my attention.
To take Adaptive Protection out of the equation, I disabled it from the Purview portal. To make sure, I ran this PowerShell command:
Set-RetentionCompliancePolicy -Identity 'Proactive data retention for risky users' -Enabled $False
No Trace of Where the Third Hold Came From
Despite running many PowerShell commands to check different aspects of Purview (see below), I could find no trace of any retention policy or rule associated with the third hold.
$Id = "d3bbb2cb-34c0-4ec1-a418-34fef6c5633b"
Get-RetentionCompliancePolicy -DistributionDetail | Where-Object {$_.Guid -eq $Id}
Get-CaseHoldPolicy | Where-Object {$_.Guid -eq $Id}
Get-AppRetentionCompliancePolicy | Where-Object {$_.Guid -eq $Id}
Get-RetentionComplianceRule | Where-Object {$_.Policy -match $Id}
Get-Label | Where-Object Guid -eq $Id
Get-ComplianceTag | Where-Object Guid -eq $Id
Get-AdaptiveScope | Where-Object Guid -eq $Id
Orphaned Retention Policy is the Culprit
At this point, I suspected that the third hold was some vestige of a long-deleted retention policy. My tenant has been in use since 2011 and has coped with many trials and previews, including the early days of SharePoint retention policies.
Microsoft support eventually discovered that the culprit was an orphaned Purview retention policy configured to hold items for 3650 days from their created date. The creation date for the policy was in July 2021, and it covered SharePoint sites, which meant that it also covered SharePoint Embedded containers. “Orphaned” means that the policy had been deleted at some time in the past. Microsoft support explained that although the deleted policy and its rules were no longer exposed through the normal Purview management interfaces, its hold remained in force against the container.
After removing the errant policy and waiting for SharePoint to reassess its policies and reapply retention, the container shrunk back to 11.75 GB, releasing more than 83 GB. At its height, the container held 1,118 versions of a large (250 MB) Loop workspace. Now, 50 versions are kept as expected.
The important lesson is that retention policies can have unintended consequences for SharePoint Embedded workloads such as Loop. Administrators might assume that only obvious retention policies affect Loop workspaces. However, system-generated policies, Adaptive Protection, and even remnants of deleted policies can preserve data and dramatically increase storage consumption. When a SharePoint Embedded container suddenly grows to an unexpected size, retention should be one of the first places to investigate.
This case is an example of why Microsoft 365 tenant administrators need the knowledge contained in the Microsoft 365 for IT Pros eBook. We continue to earn 5-star reviews from readers—and for good reason. If you manage a Microsoft 365 tenant, you’ll benefit from practical, real-world guidance written by experts who work with the platform every day. The subscription includes extensive coverage of Microsoft 365 administration, security, compliance, and governance, plus a 500-page book dedicated to automating Microsoft 365 with PowerShell.