Force sync Desktop and folders to Onedrive

aritta
New Contributor II

Any suggestions welcomed. How can I force sync the Desktop to OneDrive with Jamf Pro?

 

6 REPLIES 6

McAwesome
Valued Contributor

Known Folder Move is currently being slowly rolled out to OneDrive's main branch, so it may or may not be available to your users on a device by device basis. 

https://techcommunity.microsoft.com/t5/microsoft-onedrive-blog/announcements-for-files-experiences-i... 

That said, it is something that can be configured using a couple configuration settings described in Microsoft's documentation.
https://learn.microsoft.com/en-us/sharepoint/deploy-and-configure-on-macos 

If you, like me, are not a fan of hand crafting a plist file, there is also this Custom Settings Json available to streamline setting these things up via Jamf.
https://github.com/Jamf-Custom-Profile-Schemas/ProfileManifestsMirror/blob/main/manifests/ManagedPre... 

czarmark
New Contributor III

I've been testing this via plist file using the carrot method rather than the stick (forced). In the process, I learned that OneDrive from the App Store has bundle ID com.microsoft.OneDrive-mac whereas OneDrive from the 2GB Office Suite installer has bundle ID com.microsoft.OneDrive.

In addition, I created two separate configuration profiles for both bundle IDs to grant OneDrive full disk access and remove that friction for the user.

Here's the plist I've been testing. The parts that say REDACTED are for your Azure Tenant ID.

 

<?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>AllowTenantList</key>
    <string>REDACTED</string>
    <key>BlockExternalSync</key>
    <true/>
    <key>DisablePersonalSync</key>
    <true/>
    <key>DisableTutorial</key>
    <true/>
    <key>KFMOptInWithWizard</key>
    <string>REDACTED</string>
    <key>FilesOnDemandEnabled</key>
    <true/>
    <key>OpenAtLogin</key>
    <true/>
    <key>EnableSyncAdminReports</key>
    <true/>
</dict>
</plist>

 

mline
New Contributor

What about "Full Disk Access" for onedrive, and reccomendations on enabling this?

czarmark
New Contributor III

I used PPPC Utility https://github.com/jamf/PPPC-Utility to create a configuration profile for Jamf. It grants ("Allow") Full Disk Access for OneDrive. I left the other Properties blank/not defined.

androck
New Contributor

I'm curious if anyone's getting KFMSilentOptIn to work? No luck over here so far...

fwiw - KFMOptInWithWizard seems to work fine

I have also not been able to get this to work... KFMSilentOptIn will not auto-backup Desktop and Document folders consistently on new or existing devices. 

This post here from MS states to use KFMSilentOptIn with KFMOptInWithWizard in case  auto backups aren't being enabled. 
https://learn.microsoft.com/en-us/sharepoint/redirect-known-folders-macos

I also have KFMBlockOptOut but I was just able to manually stop backups on an existing device.

I'm gonna have to shrug my shoulder on this one... not sure why it's not working