Skip to main content

I'm trying to set up a plist that will have defaults settings for the new OneDrive Sync Client released 1/27/17.

This new client enables users to also sync SharePoint folders to their Macs just like the Windows client.

So, following the instructions in the article "Configure the new OneDrive sync client on macOS," I've made the following plist. However, I'm not sure if I set the DefaultFolder path string correctly.

After looking at other plists in my ~/Library/Preferences folder that point to specific file paths, I think I have the right syntax.

I want to turn this plist into a custom Configuration Profile to deploy to all my clients once I can test that it works. If anyone has experience with setting a default file path in a plist, and can check my work, that would be great.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>DisablePersonalSync</key>
    <true/>
    <key>TeamSiteSyncPreview</key>
    <true/>
    <key>Tenants</key>
    <dict>
        <key>Tenant ID</key>
        <dict>
            <key>DefaultFolder</key>
            <string>file:///$HOME/OneDrive%Folder%Path/</string>
        </dict>
    </dict>
</dict>
</plist>

@dan-snelson Many thanks that solved the issue!
Cheers
Carlo


Hey folks, I am trying to disable personal sync and from this thread I built the following script. The script seems to work, and it inserts the line, but then it appears that the plist gets overwritten again by OneDrive, and it is removed.

Any help here would be appreciated.

killall OneDrive
loggedInUser=$(stat -f%Su /dev/console)
/usr/bin/defaults write /Users/$loggedInUser/Library/Preferences/com.microsoft.OneDrive.plist DisablePersonalSync -bool True
/usr/sbin/chown $loggedInUser /Users/$loggedInUser/Library/Preferences/com.microsoft.OneDrive.plist
sleep 10
open -a OneDrive

@rb_ if you want to set a preference so it can't be changed you're better off doing it with a config profile. see @carlo.anselmi 's post above for a good example


Hi all,

I'm trying to limit the bandwidth that upload uses for download and upload, I saw that this can be done by adding 2 keys (UploadBandwidthLimited and DownloadBandwidthLimited) to the com.microsoft.ondrive.plist file. is this correct? If in case this is correct, is there a way to do this through a script?