This note concerns the MacOS section in
https://support.brave.com/hc/en-us/articles/360039248271-Group-Policy
Given the examples
defaults write com.brave.Browser IncognitoModeAvailability -integer 1
and
defaults write com.brave.Browser BraveShieldsEnabledForUrls -array “https://twitter.com” “https://www.example.com”
the generic form of the command
defaults write com.brave.Browser -[policy name] [value]
appears wrong. The presumably [more] correct version should read
defaults write com.brave.Browser [policy name] -[type] [value]
Also, given that these commands are given for CLI use,
the brackets for the placeholders make very little sense,
and happen to be inconvenient for direct copy & paste.
A more useful approach might be to use environment variables
instead, since those would allow using the sample command “as is”.
defaults write com.brave.Browser $POLICY_NAME -$TYPE $VALUE
For instance, the first example above would become identical to
setting these variables as follows (and pasting the command “as is”):
POLICY_NAME=IncognitoModeAvailability TYPE=integer VALUE=1