Posted on 06-01-2021 06:44 AM
Hi
i am fairly new to jamf and mac. I need to activate the location service on several mac os x 10.15 (cf photo). Is it possible to authorize it from jamf? How?
Thank you
Posted on 06-01-2021 07:35 AM
I use this script from a Jamf Pro Policy
#
# Script Variables
# <------------------------ Insert your script variables below ------------------------>
# Set variable in Jamf Pro policy to either Yes or No
setLocationServices=$4
#
# Script Functions
# <------------------------ Insert your script functions below ------------------------>
#
# Core Script
# <--------------------------- Insert your main code below ---------------------------->
# Enable Location Services
if [ "$setLocationServices" == "Yes" ]; then
locationServices=$(/usr/bin/defaults read /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd.plist LocationServicesEnabled)
if [ "$locationServices" == "0" ]; then
echo "Locations Services disabled"
output=$(/usr/bin/defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd LocationServicesEnabled -bool true; /bin/launchctl kickstart -k system/com.apple.locationd 2>&1)
echo "$output"
fi
fi
exit 0
Posted on 06-02-2021 10:36 PM
Oh great. It seems to be working but I still can't allow localization for a specific app like firefox. Does it work with a script too? Because in pppc I don't see anything
Posted on 06-16-2021 12:50 AM
Hi,
It works with firefox but not with chrome. Has anyone ever managed to enable locate on chrome?
Thank you
Posted on 12-31-2021 02:39 PM
How did you go about enabling this via script for Firefox?