Microsoft OneDrive and Microsoft SharePoint data in Python
ArcGIS Pro supports working with projects and data stored on Microsoft OneDrive and Microsoft SharePoint sites when protected access is enabled and you connect to Microsoft OneDrive. This support is available only in the ArcGIS Pro application and includes the following areas:
Interactive work in ArcGIS Pro
Geoprocessing tools run from ArcGIS Pro
The Python window in ArcGIS Pro
ArcGIS Pro notebooks
Python processes running outside ArcGIS Pro do not participate in the protected access system. These processes include stand-alone Python scripts, Python REPL sessions, Jupyter notebooks launched outside ArcGIS Pro (for example, from JupyterLab), and custom Python scripts that use ArcPy.
Caution:
When OneDrive or SharePoint data is accessed outside ArcGIS Pro, file types such as file geodatabases, shapefiles, ArcGIS Pro project files, and toolboxes are not protected from simultaneous access by multiple users or computers. This can result in data corruption, synchronization conflicts, or data loss.
Do not use ArcGIS Pro projects or data stored on OneDrive or SharePoint from stand-alone Python environments. If Python workflows require access to this data, run them from ArcGIS Pro using geoprocessing tools, the Python window, or ArcGIS Pro notebooks.