Sharegate displays the following error:
You are not authorized to perform the requested operation.
Depending on the operation, you might get a different error message starting with "You are not authorized..." or "You do not have permission..." or "You don't have the minimum rights required..."
|Any error code ending with: -002|
When making a request to SharePoint, there are many checks that are made prior to the operation being executed. This is true for fetching information about an item (e.g. obtaining the settings of a list), creating an item (e.g. creating a new list), updating an item (e.g. activating the versioning on a list), and deleting an item.
When Sharegate sends a request to SharePoint to perform one of these operations, SharePoint has an internal checklist to make sure that the operation can be executed. One type of error that can happen during this process is this "...not authorized..." error. Although the message specifies not having sufficient rights or permissions, it may not be limited to that.
Here are some cases where SharePoint can raise the "...not authorized..." error:
- Trying to modify a read-only document.
- Accessing a user's OneDrive settings without being a Site Collection Administrator (Tenant or Farm administrator privileges are not sufficient).
- Deleting a site content type which is currently in use.
- Adding a document to a Site Collection with a read-only lock.
- A network analyzer application, such as Fiddler.
Make sure that the operation you are trying to perform can be made. If you are getting this error because of missing access rights, please take note of the following recommendations:
- When using Copy Site Objects, it is recommended to have Site Collection Administrator rights both on the source and destination site collections.
- When using other features, it is recommended to have Full Control permissions on both the source and destination sites, as well as on the selected list or library.
- If your source site collection has the read-only lock enabled, it is strongly recommended to disable the lock prior to the use of Sharegate to ensure that all the requests are processed as intended. You can do so by selecting the Not locked status in Configure quotas and locks located in the Application Management of your SharePoint Server Central Administration.
If you are supposed to have the required access rights, but you still get this error, make sure that you are using the right user account when connecting to SharePoint.
Verify whether the Fiddler application is running on your PC. If this is the case, you must close Fiddler and restart the operation.