Fix Missing OneDrive Group Policy Registry Key for SharePoint Sync
Question details
The user is trying to configure automatic synchronization for SharePoint team site libraries, but the OneDrive policy key is missing from the expected registry path.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Configuring automatic synchronization for SharePoint team site libraries using the Windows Group Policy Editor.
- Observed behavior
- The expected OneDrive policy registry key (TenantAutoMount) does not appear in the registry, causing the SharePoint library synchronization to fail or not apply.
Ensure you have administrative privileges on your Windows machine, access to the Microsoft 365 admin center, and that OneDrive Files On-Demand is enabled on the target devices.
Install Administrative Templates and Verify the HKCU Registry Path
Update the OneDrive administrative templates (ADMX/ADML) and verify the policy under the Current User hive, as this specific policy is user-based rather than machine-based.
A common reason for the missing registry key is looking in the Local Machine (HKLM) hive instead of the Current User (HKCU) hive. Additionally, outdated policy definition files can prevent the policy from being applied correctly.
Copy the latest OneDrive ADMX and ADML template files to your domain's Central Store or the local C:\Windows\PolicyDefinitions folder.
Sign in as a Microsoft 365 or SharePoint administrator. Open the target team site library, click the 'Sync' button in the toolbar, and copy the provided library ID.
Open the Group Policy Editor. Navigate to the OneDrive policies and enable 'Configure team site libraries to sync automatically'. Enter the copied library ID into the Value field and provide a friendly name in the Value name field.
Open the Registry Editor (regedit) and navigate to HKCU\Software\Policies\Microsoft\OneDrive\TenantAutoMount. The configuration will populate here, not under HKLM.
The policy applies during the next OneDrive sign-in. This process can take up to eight hours to trigger automatically, or you can manually restart the OneDrive client to force it.

Boost Team Productivity with WPS Office
If managing Microsoft 365 sync policies becomes overwhelming, consider WPS Office. It provides a reliable, lightweight document editing environment that is fully compatible with Microsoft formats, complete with seamless built-in cloud integration.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Sign in for cloud syncing: Create or log in to your WPS account to activate built-in cloud storage for seamless synchronization.
- 3. Open existing documents: Directly open your existing Microsoft Office files without worrying about formatting or layout loss.

Frequently Asked Questions
Where can I find the SharePoint library ID for the sync policy?
Sign in as a Microsoft 365 or SharePoint administrator, navigate to the desired team site library, click the 'Sync' button in the toolbar, and select the option to copy the library ID from the prompt.
Why isn't the TenantAutoMount registry key showing up in HKLM?
The automatic team site sync policy is applied on a per-user basis. Therefore, the registry key is created under HKCU\Software\Policies\Microsoft\OneDrive\TenantAutoMount instead of the Local Machine (HKLM) hive.
How long does it take for the OneDrive auto-sync policy to apply?
Once the Group Policy is updated, it typically applies during the user's next sign-in to OneDrive. It can take up to eight hours for the synchronization process to fully initialize and sync the libraries.




