Group policy to set managed storage for an extension in Chromium Edge for Mac

%3CLINGO-SUB%20id%3D%22lingo-sub-1323398%22%20slang%3D%22en-US%22%3EGroup%20policy%20to%20set%20managed%20storage%20for%20an%20extension%20in%20Chromium%20Edge%20for%20Mac%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1323398%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI'm%20trying%20to%20install%20a%20browser%20extension%20in%20Chromium%20Edge%20for%20both%20Windows%20and%20Mac.%3CBR%20%2F%3EMy%20extension%20has%20a%20schema%20for%20the%20managed%20storage%20that%20I'm%20deploying%20alongside%20the%20extension%20using%20the%20Extensions%20Policy.%3CBR%20%2F%3EIn%20Windows%20everything%20works%20as%20expected%2C%20the%20extension%20gets%20installed%20using%20the%20ForceInstall%20policy%20and%20has%20access%20to%20the%20managed%20storage%20value.%3CBR%20%2F%3EIn%20MacOS%20however%20the%20extension%20does%20get%20installed%20using%20the%20ForceInstall%20but%20it%20does%20not%20have%20access%20to%20the%20managed%20storage%20value...%20looking%20at%20the%20policies%20in%20the%20Profiles%20I%20do%20see%20that%20it's%20present.%3C%2FP%3E%3CP%3EI%20followed%20the%20same%20rules%20as%20Google%20Chrome%20by%20using%20a%20mobileConfig%20file%20that%20I'm%20adding%20to%20the%20Profiles.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.chromium.org%2Fadministrators%2Fconfiguring-policy-for-extensions%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.chromium.org%2Fadministrators%2Fconfiguring-policy-for-extensions%3C%2FA%3E%3CBR%20%2F%3EFor%20the%20ForceInstall%20policy%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3CKEY%3Ecom.microsoft.Edge%3C%2FKEY%3E%0A%3CDICT%3E%0A%3CKEY%3EForced%3C%2FKEY%3E%0A%3CARRAY%3E%0A%3CDICT%3E%0A%3CKEY%3Emcx_preference_settings%3C%2FKEY%3E%0A%3CDICT%3E%0A%3CKEY%3EExtensionInstallForcelist%3C%2FKEY%3E%0A%3CARRAY%3E%0A%3CSTRING%3E%5BMyExtensionID%5D%3B%5BLinkToMyUpdateXml%5D%3C%2FSTRING%3E%0A%3C%2FARRAY%3E%0A%3C%2FDICT%3E%0A%3C%2FDICT%3E%0A%3C%2FARRAY%3E%0A%3C%2FDICT%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20the%20extension%20policy%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3CKEY%3Ecom.microsoft.Edge.extensions.%5BMyExtensionID%5D%3C%2FKEY%3E%0A%3CDICT%3E%0A%3CKEY%3EForced%3C%2FKEY%3E%0A%3CARRAY%3E%0A%3CDICT%3E%0A%3CKEY%3Emcx_preference_settings%3C%2FKEY%3E%0A%3CDICT%3E%0A%3CKEY%3EextensionConfig%3C%2FKEY%3E%0A%3CSTRING%3E%22Value%20of%20the%20extension%20config%22%3C%2FSTRING%3E%0A%3C%2FDICT%3E%0A%3C%2FDICT%3E%0A%3C%2FARRAY%3E%0A%3C%2FDICT%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20probably%20not%20doing%20something%20correctly%20and%20would%20appreciate%20some%20assistance.%3CBR%20%2F%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1425305%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20policy%20to%20set%20managed%20storage%20for%20an%20extension%20in%20Chromium%20Edge%20for%20Mac%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1425305%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F630172%22%20target%3D%22_blank%22%3E%40talonlev%3C%2FA%3E%26nbsp%3BI%20don't%20have%20a%20solution%20for%20you%2C%20but%20I'm%20looking%20for%20the%20Windows%20solution%20and%20can't%20figure%20it%20out.%20It%20looks%20like%20you%20did.%20Would%20you%20mind%20posting%20how%20you%20got%20this%20working%20for%20Chromium%20Edge%20on%20Windows%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1527120%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20policy%20to%20set%20managed%20storage%20for%20an%20extension%20in%20Chromium%20Edge%20for%20Mac%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1527120%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F665234%22%20target%3D%22_blank%22%3E%40nikrolls%3C%2FA%3E%26nbsp%3BIt%20actually%20works%20exactly%20like%20in%20Chrome.%3CBR%20%2F%3EYou%20need%20to%20define%20the%20schema%20of%20the%20storage%20you%20want%20to%20use%20(detailed%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdeveloper.chrome.com%2Fapps%2Fmanifest%2Fstorage%23manifest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.chrome.com%2Fapps%2Fmanifest%2Fstorage%23manifest%3C%2FA%3E).%3CBR%20%2F%3EAfter%20that%20you%20need%20to%20add%20the%20correct%20registry%20value%20like%20this%3A%3CBR%20%2F%3E%3CFONT%20face%3D%22courier%20new%2C%20monospace%22%3E%5BHKLM%5C%3CSPAN%3ESoftware%5CPolicies%5CMicrosoft%5CEdge%5C3rdparty%5Cextensions%5C%7BYOUR%20EXTENSION%20ID%7D%5Cpolicy%5C%3C%2FSPAN%3E%3C%2FFONT%3E%3CSPAN%3E%5D%3C%2FSPAN%3E%3CFONT%20face%3D%22courier%20new%2C%20monospace%22%3E%3CBR%20%2F%3E%3C%2FFONT%3E%22objectFromSchema%22%3D%7B%22prop1%22%3A%22value1%22%2C%20%22prop2%22%3A%20%22value2%22%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1537193%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20policy%20to%20set%20managed%20storage%20for%20an%20extension%20in%20Chromium%20Edge%20for%20Mac%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1537193%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F630172%22%20target%3D%22_blank%22%3E%40talonlev%3C%2FA%3E%26nbsp%3BI%20really%20appreciate%20the%20followup%20considering%20this%20is%20an%20older%20thread.%20I'll%20give%20your%20instructions%20a%20go!%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

I'm trying to install a browser extension in Chromium Edge for both Windows and Mac.
My extension has a schema for the managed storage that I'm deploying alongside the extension using the Extensions Policy.
In Windows everything works as expected, the extension gets installed using the ForceInstall policy and has access to the managed storage value.
In MacOS however the extension does get installed using the ForceInstall but it does not have access to the managed storage value... looking at the policies in the Profiles I do see that it's present.

I followed the same rules as Google Chrome by using a mobileConfig file that I'm adding to the Profiles.

https://www.chromium.org/administrators/configuring-policy-for-extensions
For the ForceInstall policy:

 

<key>com.microsoft.Edge</key>
<dict>
<key>Forced</key>
<array>
<dict>
<key>mcx_preference_settings</key>
<dict>
<key>ExtensionInstallForcelist</key>
<array>
<string>[MyExtensionID];[LinkToMyUpdateXml]</string>
</array>
</dict>
</dict>
</array>
</dict>

 

For the extension policy:

 

<key>com.microsoft.Edge.extensions.[MyExtensionID]</key>
<dict>
<key>Forced</key>
<array>
<dict>
<key>mcx_preference_settings</key>
<dict>
<key>extensionConfig</key>
<string>"Value of the extension config"</string>
</dict>
</dict>
</array>
</dict>

 

I'm probably not doing something correctly and would appreciate some assistance.
Thanks.

3 Replies

@talonlev I don't have a solution for you, but I'm looking for the Windows solution and can't figure it out. It looks like you did. Would you mind posting how you got this working for Chromium Edge on Windows?

@nikrolls It actually works exactly like in Chrome.
You need to define the schema of the storage you want to use (detailed here https://developer.chrome.com/apps/manifest/storage#manifest).
After that you need to add the correct registry value like this:
[HKLM\Software\Policies\Microsoft\Edge\3rdparty\extensions\{YOUR EXTENSION ID}\policy\]
"objectFromSchema"={"prop1":"value1", "prop2": "value2"}

@talonlev I really appreciate the followup considering this is an older thread. I'll give your instructions a go!