Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 for users and the system. As a result, the various premigration scans are configured to ignore any site 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 configured as No Access (locked) in SharePoint is 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 their 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
- To unlock sites, use the Set-SPSite cmdlet from the PowerShell cmdlets.
- Download the cmdlets from the SharePoint Online Management Shell download. https://www.microsoft.com/download/details.aspx?id=35588.
- Launch the 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 action 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 the 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.
- 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 configured as No Access. |
ScanID | Unique identifier assigned to a specific execution of the SharePoint Migration Assessment Tool. |