CIS Benchmark control 6.3.6: Ensure Advertising Privacy Protection in Safari Is Enabled

mvu
Valued Contributor

Hi,

I'm trying to set the preference for Safari via a configuration profile. Is this possible with a config profile? I can't get it to take on Ventura.

Many thanks in advance.

Screenshot_2023-01-24_at_4_44_14_PM.png

Screenshot 2023-01-24 at 4.45.16 PM.png

1 ACCEPTED SOLUTION

jmahlman
Valued Contributor

Hey there, the CIS page actually shows that this can indeed be set with a config profile like yours. Note that the checkbox will not be disabled but if you uncheck it and relaunch Safari it'll be checked again.

View solution in original post

2 REPLIES 2

jmahlman
Valued Contributor

Hey there, the CIS page actually shows that this can indeed be set with a config profile like yours. Note that the checkbox will not be disabled but if you uncheck it and relaunch Safari it'll be checked again.

mvu
Valued Contributor

Oh. I was off because I thought the box would be grayed out. Thanks, I tried it again and your right: It is checked again. Thanks, @jmahlman 

I did a script below, but the config profile is better.

 

#!/bin/sh

currentUser=$(ls -l /dev/console | awk '{print $3}')

sudo -u $currentUser /usr/bin/defaults write /Users/$currentUser/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari WebKitPreferences.privateClickMeasurementEnabled -bool true


exit 0