Migration Assessment Scan: Locked Sites
Learn how to mitigate issues with locked sites during migration.
Overview
When a site is configured as "No Access" in SharePoint, the site is inaccessible by both users and the system. As a result, the various pre-migration scans are configured to ignore any site that is configured as "No Access". It's locked.
Data Migration
Locked sites can't be migrated to the target environment, as the migration tooling is unable to read the site contents.
Important
Any site that is configured as "No Access" (locked), in SharePoint will be skipped. To see a list of locked site collections see the Locked Sites scan output.
Preparing for Migration
Ensure the list of locked sites is correct. If you have sites that are incorrectly marked as "No Access", update the lock status to "Not Locked".
Post Migration
To manage the lock status on sites on the target environment, use the SharePoint Online Management Shell.
How to unlock a site collection on vNext
Use the Set-SPSite cmdlet from the PowerShell cmdlets to unlock sites.
Download the cmdlets from the SharePoint Online Management Shell download. https://www.microsoft.com/download/details.aspx?id=35588
Launch SharePoint Online Management Shell
Run:
Set-SPSite -LockStatus Unlock
How to set a site to "No Access"
Use Set-SPSite from the PowerShell cmdlets to lock sites. This is similar to "No Access" in that users can't get to the site.
Download the cmdlets from the SharePoint Online Management Shell download. https://www.microsoft.com/download/details.aspx?id=35588
Launch SharePoint Online Management Shell
Run:
Set-SPSite -LockStatus NoAccess
How to set a site to "Read only"
Set-SPSite doesn't support setting a site to "Read Only". An alternative method is to use Site Collection Policies on a site collection.
Browse the site you want to be "Read Only".
In the top right, select the gear icon, and then select Site Settings.
Select Site Policies.
Select Create.
a. Enter a Name and Description.
Select Do not close or delete site automatically.
Check The site collection will be read only when it is closed.
Select OK.
On Site Settings, select Site Closure and Deletion.
For Site Policy, select the "Read Only" policy from Step 4.
Select OK.
Go back to Site Closure and Deletion, and select Close this site now. The site is now "Read Only".
Only a site collection admin can access and select Open this site.
Scan Result Reports
LockedSites-detail.csv This scan report contains a list of URLs that are configured as "No Access" in SharePoint.
Column | Description |
---|---|
URL |
URL of the site collection that is configured as "No Access". |
ScanID |
Unique identifier assigned to a specific execution of the SharePoint Migration Assessment Tool. |