Open in the explorer

Specify the Application ID URI for your Entra application for OIDC

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › OneDrive
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
OneDrive.admx
Internal name
OneDrive/SharePointOnPremApplicationIdUri

Explanation

This setting allows you to specify an Application ID URI for your Entra application for OIDC if it is different from your SharePoint Server URL. To use this setting, you must also enable "Enable the use of OIDC authentication for syncing content from a SharePoint Server". This setting affects only OneDrive for Business sync functionality. It does not impact syncing team sites in SharePoint Online.

If you enable this setting and provide the Application ID URI, this value will be used for requests to the SharePoint Server.

If you disable or do not configure this setting, we will use the SharePoint Server URL as the Application ID URI instead.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: OneDrive/SharePointOnPremApplicationIdUri
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Entra Application ID URI
Set-ItemProperty -Path $k -Name 'SharePointOnPremApplicationIdUri' -Value '<value>' -Type String

Disable

# Disable: OneDrive/SharePointOnPremApplicationIdUri
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": OneDrive/SharePointOnPremApplicationIdUri
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'SharePointOnPremApplicationIdUri' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Entra Application ID URI:SharePointOnPremApplicationIdUriBoxText boxtextSharePointOnPremApplicationIdUriREG_SZ
Max length: 2000

Application

Microsoft OneDrive (Microsoft) — October 2026 templates

October 2026 templates from pl4nty/web-admx-tool.