Hi all!
Has anyone out there managed to script the location of the OneDrive for Business folder for users?
I've tried to follow the MS documentation here. Specifically the following lines of code:
/usr/libexec/PlistBuddy -c "Add :Tenants:my_tenant_id" ~/Library/Containers/com.microsoft.OneDrive-mac/Data/Library/Preferences/com.microsoft.OneDrive-mac.plist
/usr/libexec/PlistBuddy -c "Add :Tenants:my_tenant_id:DefaultFolder string '<PathToFolder>'" ~/Library/Containers/com.microsoft.OneDrive-mac/Data/Library/Preferences/com.microsoft.OneDrive-mac.plist
I'm not having any luck running those. The first command spits out "Unrecognized Type:".
Any thoughts out there?
Cheers,
Gavin
