How to Prevent Records Management Locks a Library Unexpectedly
🔍 WiseChecker

How to Prevent Records Management Locks a Library Unexpectedly

When a SharePoint document library becomes locked without warning, users cannot edit, upload, or delete files. This problem often occurs because records management policies place a hold on the library or individual items. The lock prevents accidental modification of declared records but can feel unexpected if the policy is not clearly configured. This article explains why records management locks libraries and provides steps to prevent unwanted locks.

Key Takeaways: How to Stop Records Management from Locking Your Library

  • SharePoint admin center > Records management > File plan: Configure retention labels to avoid locking entire libraries.
  • Library Settings > Information management policy settings: Disable automatic record declaration to prevent unexpected locks.
  • SharePoint admin center > Active sites > Policies: Review site-level retention policies that may override library settings.

ADVERTISEMENT

Why Records Management Locks a Library

SharePoint uses records management to protect content that must be preserved for legal or regulatory reasons. When a file is declared a record, SharePoint locks it so no one can edit or delete it. This lock applies at the item level. However, if a retention label or policy is applied to an entire library, the library itself can appear locked. Users see a message that the library is read-only or that actions are blocked.

The root cause is usually a misconfigured retention label or a site-level policy that locks all content. SharePoint’s records management system uses retention labels to enforce rules. When a label is set to “retain as record,” every item with that label becomes locked. If the label is applied to the whole library, every item becomes a record. This makes the library behave as if it is locked.

Another cause is the automatic declaration of records. When a library is configured to automatically declare items as records after a certain event, such as when a file is created or modified, users may not realize the lock is active. The lock happens silently in the background.

Retention Labels vs. Retention Policies

Retention labels are published to sites and can be applied manually or automatically to items. Retention policies apply to entire sites or libraries. Both can lock content. A retention policy set to “retain as record” locks all items in the scope. A retention label set to “retain as record” locks only items that have that label. Understanding this difference is critical to preventing unexpected locks.

The Role of the Compliance Center

The Microsoft Purview compliance portal manages retention labels and policies. Changes made there affect SharePoint libraries. If a compliance officer creates a label that locks content, SharePoint enforces it immediately. Library owners may not receive a notification about the lock. This is why the lock feels unexpected.

Steps to Check and Adjust Records Management Settings

Follow these steps to identify and remove unexpected locks caused by records management. You need SharePoint administrator permissions or site owner permissions for the affected library.

  1. Open the affected library in SharePoint
    Navigate to the site that contains the locked library. Click the library name in the left navigation or go to Site contents and select the library.
  2. Check library permissions
    Click the gear icon and select Library settings. Under Permissions and Management, click Permissions for this document library. Verify that users have at least Contribute permission. If permissions are correct, the lock is not a permission issue.
  3. Review Information management policy settings
    In Library settings, under Permissions and Management, click Information management policy settings. Look for a policy that declares records automatically. If you see a policy with “Declare record” enabled, click it and change the action to “None” or “Start a workflow” without record declaration. Click OK to save.
  4. Check retention labels applied to the library
    In Library settings, under Content Approval, click Apply retention label to items in this library. If a label is selected, note its name. Click the label name to open its settings in the compliance portal. Change the label to “Retain as record” only if needed. If you want to remove the label, select None and click Save.
  5. Review site-level retention policies
    Go to the SharePoint admin center. Under Policies, click Retention. Find any policy that includes this site. Click the policy and review its scope. If the policy applies to all content in the site, it may lock the library. Edit the policy to exclude the library or change the retention action to “Retain without record” if record locking is not required.
  6. Check the compliance portal for published labels
    Open the Microsoft Purview compliance portal. Go to Information governance > Labels. Find the label that was applied to the library. Click the label and select Edit. Under Define the action, choose “Retain items” instead of “Retain as record” if you do not want items locked. Publish the label again. The change may take up to 24 hours to apply.
  7. Remove automatic record declaration for the library
    In Library settings, under Permissions and Management, click Information management policy settings. If you see a policy named “Auto-declare record,” select it and choose “Remove this policy.” Click OK. This stops the library from automatically locking new items.

ADVERTISEMENT

If SharePoint Still Has Issues After the Main Fix

Sometimes the lock persists even after adjusting settings. Below are common scenarios and their solutions.

Library Shows a Lock Icon and Users Cannot Add Files

This happens when a retention policy at the site level locks all content. To fix this, go to the SharePoint admin center. Under Policies, click Retention. Find the policy that targets the site. Edit the policy and change the scope to exclude the library. Alternatively, change the retention action to “Retain without record.” Wait for the change to propagate, which can take up to 24 hours.

Individual Files Are Locked but Library Is Not

This occurs when a retention label is applied to specific files. To unlock them, remove the label from the files. In the library, select the locked files. Click the information panel (i icon) and find the retention label. Click the label and choose Remove label. The files become editable again.

Users Cannot Delete Files from a Library

A retention policy set to “Retain as record” prevents deletion. To allow deletion, change the policy to “Retain without record” or “None.” In the compliance portal, edit the policy and change the retention action. Note that records cannot be deleted even after the retention period ends unless the label is removed.

Retention Label vs. Retention Policy: Key Differences

Item Retention Label Retention Policy
Scope Applied to individual items or libraries Applied to entire sites, libraries, or mailboxes
Lock effect Locks only items with the label Locks all content in the scope
Management location Compliance portal > Labels Compliance portal > Policies
User notification No automatic notification No automatic notification
Best use case Selective record declaration Broad retention requirements

You can now identify and prevent unexpected library locks caused by records management. Start by reviewing retention labels and policies applied to the site and library. If a lock appears, check the information management policy settings and the compliance portal. For ongoing protection, use retention labels on specific items instead of locking the entire library. This gives you control over which files become records and prevents surprises.

ADVERTISEMENT