Posted on 03-23-2021 10:43 AM
Any MacOS device that's released into our production environment has location services enabled in the operating system. However, there has been a request to enable location services in Apps such as Chrome and Siri, which require admin privileges to unlock the Privacy settings. Is there any way this can be done via configuration profile or script? If this has already been answered, I apologize. I can't find anything on doing this on a per app basis though.
Posted on 03-23-2021 10:46 AM
Location Services cannot be managed by an MDM. that is strictly a user controlled function that Apple currently has no plans on changing.
Posted on 07-23-2021 10:02 AM
Just posting here to follow this thread, because I'm also in need of some way to enable Location Services for specific apps. None of our end users have admin rights, nor will they ever, except perhaps on a very temporary basis. But until we're in that place to allow that, I'm trying to understand how a standard user can enable this for applications. There doesn't seem to be any way.
Posted on 08-03-2022 03:47 PM
Check the apps PPPC, some apps don't use macOS location services...
Posted on 11-28-2022 11:18 AM
Did we ever get an answer for this? Something I am looking into as well.
Posted on 11-28-2022 11:36 AM
This is a script I was testing out a couple of years ago that worked in Catalina and Big Sur, I have no idea if it will work on Monterey or Ventura. It does require a restart after ran and will appear like it did nothing.
#!/bin/bash
uuid=$("/usr/sbin/system_profiler" SPHardwareDataType | grep "Hardware UUID" | awk '{ print $3 }')
prefDomain="com.apple.locationd"
prefDomainWithUUID="com.apple.locationd.$uuid"
byHostPath="/var/db/locationd/Library/Preferences/ByHost/com.apple.locationd"
# read booleans
echo "Reading ls_enabled_uuid..."
ls_enabled_uuid=$(sudo -u "_locationd" defaults -currentHost read "${prefDomain}" LocationServicesEnabled)
echo $ls_enabled_uuid
echo "Reading ls_enabled_byhost..."
ls_enabled_byhost=$(sudo defaults read "${byHostPath}" LocationServicesEnabled)
echo $ls_enabled_byhost
# process booleans
if [[ ($ls_enabled_uuid -eq 1) && ($ls_enabled_byhost -eq 1) ]]; then
echo "Location Services are already enabled."
else
# set booleans
echo "Location Services need to be enabled."
sudo -u "_locationd" defaults -currentHost write "${prefDomainWithUUID}" LocationServicesEnabled -int 1
sudo defaults write "${byHostPath}" LocationServicesEnabled -int 1
fi
exit 0
3 weeks ago
Thank you very much, after 2 years I return to the topic to inform you that the activation of the Mac location service worked in my institution. Tests were carried out in Ventura, Sonoma, and Sequoia.
Thank you very much!
Now I need to find out how to add applications within the location service.
Posted on 05-19-2023 09:08 AM
I'm running into this now; some benefit my organization provides has a 3rd party page that refers our employees to nearby services... which requires location services be enabled for the browser they are using. Infrequently I get requests for admin rights to enable Chrome's location services... Very frustrating that this is the way it is. Give Apple feedback!
Posted on 06-07-2023 10:13 AM
Our schools like to have these services enabled. I have no issue with this being a user driven choice, but we need Standard Users to be able to have that choice. #BUMP
Posted on 07-03-2023 12:13 PM
Is there a config profile that will allow to logged in user to allow the location settings, like how PPP settings can open up certain permissions?
Posted on 11-16-2023 04:49 AM
Bumping this thread as since Sonoma 14.1 there is an annoying popup from the Home.app appearing at user login, that says "Home would like to use your current location".
More info are nicely gathered here: https://gingerscripting.com/disabling-the-home-prompts-in-macos-14-1/
Though the tests listed in it don't work for me.
11-20-2023 02:08 PM - edited 11-20-2023 02:09 PM
also seeing this same issue @trull_sengar. Tthe solution in https://gingerscripting.com/disabling-the-home-prompts-in-macos-14-1/ also not working (via config profile method).
Might reach out to the Mac Admin slack channel, as per the article above.
Posted on 11-20-2023 11:47 PM
Yep. I tried that on two channels, where we also discussed these steps but without luck I'm afraid.
I'll keep checking though in a while to see if some updates will fix this or not.
Posted on 11-21-2023 05:10 AM
I had to Ok location for google chrome manually on our devices. User can still turn it off. I am guessing the home app will be on my list for next summers reimage.