Extension Auto Login
Extension Auto Login & Enterprise Policy
Deploy the DataMagik Automate browser extension to your whole organization and have every user signed in automatically — no manual login, no shared passwords. This works by pushing a managed policy (a bearer token plus environment settings) to Chrome or Edge through Microsoft Intune, Windows Group Policy (GPO), the Google Admin Console, or any MDM that can write browser policy. The extension reads that policy on startup and signs the user in.
Key concept: two separate policies
Chrome and Edge extensions require two separate policies for force-install plus auto-login:
- ExtensionSettings — forces the extension to install (only
installation_modeandupdate_url). - 3rdparty managed storage — provides the bearer token and environment settings
to
chrome.storage.managed.
bearerToken inside an ExtensionSettings.policy key will not
work and causes the error Schema validation error: Unknown property: policy. The bearer
token must go in the separate 3rdparty managed storage path, not nested inside
ExtensionSettings.Authentication priority
The extension resolves its login in this order:
- User-set token — takes priority if the user has logged in manually or set their own token.
- Managed policy token — used as a fallback when no user token exists.
This lets users override the enterprise default when needed while still providing a zero-touch default for everyone else.
Configuration options
| Key | Type | Description |
|---|---|---|
bearerToken | String | A valid DataMagik API bearer token (starts
with dcp_). Generate it under Your Account > API Keys. |
environment | String | production
(https://data-magik.com) or staging (https://staging.data-magik.com). Defaults to
production. |
lockEnvironment | Boolean / DWORD | When true (or
1), users cannot change the environment in Settings. Defaults to
false. |
The DataMagik Automate extension ID is hppahoaiaihchdpnoegknnodnjleogdi.
Option A: PowerShell deployment (recommended)
The easiest and most reliable method. These ready-made scripts write the registry keys directly for both Chrome and Edge — no ADMX template import required. Download the scripts, set your token at the top, and upload them to Intune (or run them under any tool that executes PowerShell as SYSTEM).
Step 1: Download the scripts
⬇ Deploy-DataMagikExtension.ps1 one-time deploy ⬇ Detect-DataMagikPolicy.ps1 remediation detect ⬇ Remediate-DataMagikPolicy.ps1 remediation fix ⬇ Check-DataMagikPolicy.ps1 diagnostics
Open Deploy-DataMagikExtension.ps1 and edit the CONFIGURATION block
at the top — set $BearerToken to your dcp_ token, and adjust
$Environment, $LockEnvironment, and $Browsers as needed. The
rest of the script needs no changes.
# CONFIGURATION — edit before uploading to Intune
$BearerToken = "dcp_YOUR_ACTUAL_TOKEN" # From Your Account > API Keys
$Environment = "production" # "production" or "staging"
$LockEnvironment = $false # $true to lock environment switching
$Browsers = "Both" # "Both", "Chrome", or "Edge"
Step 2: Deploy via Intune (Platform Script)
- In Intune go to Devices > Scripts and remediations > Platform scripts > Add > Windows 10 and later.
- Upload the edited
Deploy-DataMagikExtension.ps1. - Settings:
- Run this script using the logged-on credentials: No (runs as SYSTEM).
- Run script in 64-bit PowerShell: Yes.
- Enforce script signature check: No (or sign the script).
- Assign to a device group.
- Users must restart their browser after the policy applies.
Step 3 (optional): Self-healing with a Remediation
A Platform Script runs once. To automatically re-apply the policy if it ever drifts (for example
after a token rotation or a machine re-image), use an Intune Remediation — the
Detect-DataMagikPolicy.ps1 / Remediate-DataMagikPolicy.ps1 pair that Intune
re-runs on a schedule.
- Edit
Remediate-DataMagikPolicy.ps1with the same token / environment values you used in the deploy script. - In Intune go to Devices > Scripts and remediations > Remediations > Create.
- Upload
Detect-DataMagikPolicy.ps1as the detection script andRemediate-DataMagikPolicy.ps1as the remediation script. - Run both in 64-bit PowerShell, not as the logged-on user. Schedule Daily or Every 8 hours, then assign to a device group.
Check-DataMagikPolicy.ps1 on any machine
(.\Check-DataMagikPolicy.ps1 -Browser Chrome) to verify every registry path, validate
the bearer token against the API, and get specific recommendations.Option B: Microsoft Intune (OMA-URI)
Manual OMA-URI configuration. Requires the Chrome ADMX templates to be imported into Intune for Chrome policies; Edge ADMX is built in.
Policy 1: Force-install the extension
OMA-URI (Chrome):
./Device/Vendor/MSFT/Policy/Config/Chrome~Policy~googlechrome~Extensions/ExtensionSettings
OMA-URI (Edge):
./Device/Vendor/MSFT/Policy/Config/Edge~Policy~microsoft_edge~Extensions/ExtensionSettings
Data type: String Value:
{
"hppahoaiaihchdpnoegknnodnjleogdi": {
"installation_mode": "force_installed",
"update_url": "https://clients2.google.com/service/update2/crx"
}
}
"policy" key here. The ExtensionSettings value must contain only
installation_mode and update_url. The bearer token goes in Policy 2.Policy 2: Managed storage (bearer token + environment)
This is a separate OMA-URI policy — not nested inside ExtensionSettings.
OMA-URI (Chrome):
./Device/Vendor/MSFT/Policy/Config/Chrome~Policy~googlechrome/3rdparty\extensions\hppahoaiaihchdpnoegknnodnjleogdi\policy
OMA-URI (Edge):
./Device/Vendor/MSFT/Policy/Config/Edge~Policy~microsoft_edge/3rdparty\extensions\hppahoaiaihchdpnoegknnodnjleogdi\policy
\) in the OMA-URI
path for the 3rdparty segment. This is an Intune-specific requirement.Data type: String Value:
{
"bearerToken": "dcp_YOUR_BEARER_TOKEN_HERE",
"environment": "production",
"lockEnvironment": false
}
Option C: Windows Group Policy (GPO)
Step 1: Install Chrome ADMX templates
- Download the Chrome ADMX templates from Google Chrome Enterprise.
- Copy
chrome.admxto\\domain\sysvol\domain\Policies\PolicyDefinitions\(and the matching.admlto the language subfolder).
Step 2: Force-install
- Open Group Policy Management Console (
gpmc.msc). - Navigate to Computer Configuration > Administrative Templates > Google Chrome > Extensions.
- Open Configure extension installation allow/blocklist.
- Add:
hppahoaiaihchdpnoegknnodnjleogdi;https://clients2.google.com/service/update2/crx
Step 3: Configure managed storage via registry
The bearer token and settings live in the 3rdparty registry path:
Chrome:
HKLM\SOFTWARE\Policies\Google\Chrome\3rdparty\extensions\hppahoaiaihchdpnoegknnodnjleogdi\policy
Edge:
HKLM\SOFTWARE\Policies\Microsoft\Edge\3rdparty\extensions\hppahoaiaihchdpnoegknnodnjleogdi\policy
| Name | Type | Data |
|---|---|---|
bearerToken | REG_SZ | dcp_YOUR_BEARER_TOKEN_HERE |
environment | REG_SZ | production |
lockEnvironment | REG_DWORD | 0 |
Or apply this registry file (datamagik-policy.reg):
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\3rdparty\extensions\hppahoaiaihchdpnoegknnodnjleogdi\policy]
"bearerToken"="dcp_YOUR_BEARER_TOKEN_HERE"
"environment"="production"
"lockEnvironment"=dword:00000000
Option D: Google Admin Console
- Navigate to Devices > Chrome > Apps & extensions.
- Find or add the DataMagik Automate extension by ID:
hppahoaiaihchdpnoegknnodnjleogdi. - Set Installation policy to "Force install".
- In the Policy for extensions field, enter:
{
"bearerToken": { "Value": "dcp_YOUR_BEARER_TOKEN_HERE" },
"environment": { "Value": "production" },
"lockEnvironment": { "Value": false }
}
{ "Key": { "Value": ... } } format for managed schema properties.Generating a bearer token
- Sign in to DataMagik.
- Open Your Account > API Keys (or have an admin generate one).
- Create a new API key — the token starts with
dcp_. - Copy the full token into your managed policy.
Verification & diagnostics
1. Extension settings page
Open the extension popup and go to Settings. The Enterprise Policy
Diagnostics card at the top shows the overall status (Configured / Partially Configured /
Not Configured), whether chrome.storage.managed is accessible, the bearer token's
presence and validation status, the environment and lock settings, and any specific issues to
fix.
2. Chrome / Edge policy page
- Open
chrome://policy(oredge://policy) and click Reload policies. - Confirm the extension appears under
ExtensionSettingswith status OK, and that the3rdpartypolicy showsbearerToken,environment, andlockEnvironment.
3. Managed storage directly
If auto-login still fails, check managed storage from the extension's service worker console
(chrome://extensions > Developer mode > service worker):
chrome.storage.managed.get(null, (result) => {
if (chrome.runtime.lastError) {
console.error('No managed storage:', chrome.runtime.lastError.message)
} else {
console.log('Managed storage:', JSON.stringify(result, null, 2))
}
})
You should see {bearerToken: "dcp_...", environment: "production", lockEnvironment: false}.
"Storage manifest not found" means no managed policy is deployed for this extension.
Troubleshooting
| Issue | Cause | Fix |
|---|---|---|
Schema validation error: Unknown property: policy | Bearer token placed inside ExtensionSettings instead of 3rdparty managed storage | Remove the policy
key from ExtensionSettings and create the separate 3rdparty managed storage policy (Policy 2 / the
PowerShell script). |
| Policy not applied | ADMX templates not imported, or GPO not synced | Use the
PowerShell script (no ADMX needed), or import the Chrome ADMX templates. Run
gpupdate /force and restart the browser. |
| Token authentication failing | Token expired, invalid, or wrong environment | Generate
a new token under Your Account > API Keys and verify environment matches the token's
server. |
| Extension not auto-installing | Missing or incorrect ExtensionSettings | Verify
update_url is https://clients2.google.com/service/update2/crx and
installation_mode is force_installed. |
| "Storage manifest not found" | No 3rdparty managed storage policy deployed | Deploy the 3rdparty managed storage policy (Policy 2) or run the PowerShell script. |