OneDrive Known Folder move workflow

sguzman1
New Contributor II

Hello All, 

I was wondering if anyone here has been able to successfully implement OneDrive Known folder move?

We are trying to move user's Desktop and Documents folders to OneDrive, without any user interaction, we have tried to apply these settings using the Applications and Custom settings payload, we can see the CP in System preferences Profiles but nothing changes in Onedrive. Other settings like hide dock icon and open at login are successfully applied with the same CP.

<?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>KFMBlockOptOut</key>
    <true/>
    <key>KFMOptInWithWizard</key>
    <string>xxxxxxxxx</string>
    <key>KFMSilentOptIn</key>
    <string>xxxxxxxxx</string>
    <key>HideDockIcon</key>
    <true/>
    <key>OpenAtLogin</key>
    <false/>
  </dict>
</plist> 

 Here is the sample of the plist created in the CP.

Thanks,  

1 ACCEPTED SOLUTION

mvu
Valued Contributor

Yeah, you're right @andrew_nicholas. Curious to know your guys' thoughts on this OneDrive redirect. Do you and your users like the experience?

Screen Shot 2022-09-09 at 7.35.26 AM.png

 

 

View solution in original post

21 REPLIES 21

mvu
Valued Contributor

What version of OneDrive are you using on the Mac? Once updated to the latest on the current channel, it worked for us.

Is your ORG migrated to M365? When you open OneDrive, did your users need to authenticate?

sguzman1
New Contributor II

On the testing machine we are on version 22.166.0807.

Yes we are on O365, when reopen Onedrive it did not ask to authenticate.

 

sguzman1
New Contributor II

Hi @mvu so you are using an insider version? Is this why it is working for you?

Thanks,

mvu
Valued Contributor

Yeah. Can you kick a Mac or two over for testing with this CP?

sguzman1
New Contributor II

Hello @mvu yes it worked, I also had to add a PPPC to give OneDrive Full disk access, and it is working now.

Thanks for your help! 

@sguzman1 Could you please help me out with configuration screenshot ? i tried below settings but nothing worked.


@sguzman1 wrote:

Hello @mvu yes it worked, I also had to add a PPPC to give OneDrive Full disk access, and it is working now.

Thanks for your help! 


<?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>KFMSilentOptIn</key>

<string>*******</string>

<key>KFMSilentOptInDesktop</key>

<true/>

<key>KFMSilentOptInDocuments</key>

<true/>

<key>KFMSilentOptInWithNotification</key>

<true/>

</dict>

</plist>

Hello, 

I had to build 3 different CP:
Onedrive RedirectOnedrive RedirectAdd devices to insiders ringAdd devices to insiders ringOneDrive full disk accessOneDrive full disk access

andrew_nicholas
Valued Contributor

Is this in the general release ring yet? The below article makes it sound like it is still only available on the insiders release ring only, so unless that is what you are deploying I'm not sure it will work. 

Redirect and move macOS known folders to OneDrive - OneDrive | Microsoft Docs

It's a staged release. It was in insiders forever but it's slowly coming to Current.

CORRECTING MYSELF HERE: nope, it's still not in Current. 

Frustratingly, not even all my own users are staged yet, so some work and some will have to wait. It doesn't hurt to send out the configuration and PPPC beforehand though - if PPPC is in place before OneDrive asks for it, you get that much fewer user interactions. :) 

mvu
Valued Contributor

Yeah, you're right @andrew_nicholas. Curious to know your guys' thoughts on this OneDrive redirect. Do you and your users like the experience?

Screen Shot 2022-09-09 at 7.35.26 AM.png

 

 

andrew_nicholas
Valued Contributor

To be truthful, we don't generally permit the insider release. There are enough problems in the day without adding in 2 hours of troubleshooting only to remember that one user is on an essentially preview version of an app.

mvu
Valued Contributor

I don't blame ya

TheHoff
New Contributor II

Was wondering if this was working smoothly with anyones users. Thinking about implementing this as well for our users, but am quite new to Jamf and quite lost to be honest.

I have managed to get the Full Disk access sorted with PPPC, but am stuck with the whole plist thing. Like where does the <string> data supposed to come from, and how do I inject it to the machines. When I try to add a plist to my CP, it only allows me to add a JSON. Anyone?

sguzman1
New Contributor II

Hello @TheHoff 

I used a schema that was posted on another JAMF Nation conversation. I have been trying to find the original post but I can't find it.
How to add it to Jamf? go to configuration profiles> Applications and custom settings> external applications> and then select custom schema and paste the entire text. It will allow you to select every option from a dropdown. I am sorry I can't find the link to the schema, maybe someone out here have it.

TheHoff
New Contributor II

Thanks for your reply, I will also look around to see if I can find it.

TheHoff
New Contributor II

I think I have found it: https://pastecode.io/s/34721iky. It came from this post: https://community.jamf.com/t5/jamf-pro/onedrive-configuration-profile/m-p/236630/highlight/true

And I have managed to update my CP. One thing I am not sure of though. I need to fill in the Application domain, and on all examples it states: com.microsoft.OneDriveUpdater. Is there a reason this particular file is targeted? I will test on monday if all works.

JamfTechHelp
New Contributor II

When i have deployed KFMOptInWithWizard and KFMSilentOptIn only 1st time its working and revoke and tried again not working. Seems to be consistency is missing.  Anyone comes across this issue ?

pabohr
New Contributor III

I've noticed that on preview channel (22.227.1030), the Backup tab is available on both Intel and Apple Silicon Macs.

However, on the current channel (22.225.1026 ), Backup is available on Intel Macs but not on Apple Silicon ones.

On Intel:

pabohr_3-1668603897244.png

On Apple Silicon M1:

pabohr_2-1668603856628.png

Anyone else noticed the same? Or am I missing something?

pabohr
New Contributor III

Edit to my post above

Even on Intel Macs, Backup tab is not consistently available on version 22.225.1026.

I erased an Intel Mac where Backup was available on 22.225 and set it up again. Now I don't see the Backup option anymore even though I am on the same OneDrive version.

Edit 2:

On my M1 Mac, Backup tab all of a sudden appeared and my OneDrive files appeared on the Desktop without any action from my part, and with OneDrive still being on version 22.225.

Honestly, I am totally lost... 

TheHoff
New Contributor II

Same here, I gave up for now and will have another look after the holidays. It is behaving way to erratic for us to roll out any time soon.

pabohr
New Contributor III

If you push the Configuration Profile to enable this AFTER OneDrive has already been setup and is being used, nothing seems to be happening unless the users quits OneDrive and starts it again.

Is this the expected behavior or is there a way to enable this without having to restart OneDrive?