Deploying Microsoft OneDrive For Business

279 views
Skip to first unread message

Emiliano Paternostro

unread,
Jan 19, 2016, 9:45:18 AM1/19/16
to munki-discuss
For anyone wanting to deploy Microsoft OneDrive (an app store download) which is provisioned to their institution's enterprise account, this is a simple post-install that changes the behaviour to redirect the app's setup window to the institution's authentication (happens after an institutional email is entered). 

The plist that the app reads is located in a ~/Library/Containers folder, so I've used the sudo command with a for loop on the user folders in a system. This may not be the most effective way of implementing it, but it works if the user account is consistent with user's home folder name. I have not tested this in an AD environment.

#!/bin/bash

cd /Users/

for f in *; do sudo -u $f defaults write /Users/$f/Library/Containers/com.microsoft.OneDrive-mac/Data/Library/Preferences/com.microsoft.OneDrive-mac.plist DefaultToBusinessFRE -bool True; done

for f in *; do sudo -u $f defaults write /Users/$f/Library/Containers/com.microsoft.OneDrive-mac/Data/Library/Preferences/com.microsoft.OneDrive-mac.plist EnableAddAccounts -bool True; done

exit 0

Hope this helps, and feel free to improve if you feel.

Erik Gomez

unread,
Jan 19, 2016, 5:53:11 PM1/19/16
to munki-...@googlegroups.com
Instead of doing this, you can use a profile to configure these settings. At our institution we have a mobileconfig that is a required item for the latest OneDrive. 

Sent from my iPad
--
You received this message because you are subscribed to the Google Groups "munki-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-discus...@googlegroups.com.
To post to this group, send email to munki-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/02993109-044b-4932-8732-4585b393924b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hugh Burt

unread,
Jan 20, 2016, 9:10:56 AM1/20/16
to munki-...@googlegroups.com
I am, as yet, not completely at home with profiles and I would like to get this working, so I wonder if Erik could kindly post his mobileconfig profile?

With great anticipated thanks.



 
 “Weaseling out of things is important to learn. It’s what separates us from the animals.....except the weasel” ~ Homer Simpson




From: Erik Gomez <eriknico...@gmail.com>
To: munki-...@googlegroups.com
Sent: Tuesday, 19 January 2016, 22:53
Subject: Re: [munki-discuss] Deploying Microsoft OneDrive For Business

Erik

unread,
Jan 20, 2016, 9:28:41 AM1/20/16
to munki-discuss, hub...@yahoo.co.uk
I was also asked off munki-discuss for it:


Of note a few things:


This is a forced profile, meaning user's cannot change these settings.


In our organization, we have prevented personal syncing to limit OneDrive to Business use only. If you do not want this feature, simply delete lines 37-38.


On Wednesday, January 20, 2016 at 8:10:56 AM UTC-6, Karamoja wrote:
I am, as yet, not completely at home with profiles and I would like to get this working, so I wonder if Erik could kindly post his mobileconfig profile?

With great anticipated thanks.



 
 “Weaseling out of things is important to learn. It’s what separates us from the animals.....except the weasel” ~ Homer Simpson




From: Erik Gomez <eriknico...@gmail.com>
To: munki-...@googlegroups.com
Sent: Tuesday, 19 January 2016, 22:53
Subject: Re: [munki-discuss] Deploying Microsoft OneDrive For Business
Instead of doing this, you can use a profile to configure these settings. At our institution we have a mobileconfig that is a required item for the latest OneDrive. 

Sent from my iPad

On Jan 19, 2016, at 8:44 AM, Emiliano Paternostro <proximi...@me.com> wrote:

For anyone wanting to deploy Microsoft OneDrive (an app store download) which is provisioned to their institution's enterprise account, this is a simple post-install that changes the behaviour to redirect the app's setup window to the institution's authentication (happens after an institutional email is entered). 

The plist that the app reads is located in a ~/Library/Containers folder, so I've used the sudo command with a for loop on the user folders in a system. This may not be the most effective way of implementing it, but it works if the user account is consistent with user's home folder name. I have not tested this in an AD environment.

#!/bin/bash

cd /Users/

for f in *; do sudo -u $f defaults write /Users/$f/Library/Containers/com.microsoft.OneDrive-mac/Data/Library/Preferences/com.microsoft.OneDrive-mac.plist DefaultToBusinessFRE -bool True; done

for f in *; do sudo -u $f defaults write /Users/$f/Library/Containers/com.microsoft.OneDrive-mac/Data/Library/Preferences/com.microsoft.OneDrive-mac.plist EnableAddAccounts -bool True; done

exit 0

Hope this helps, and feel free to improve if you feel.

--
You received this message because you are subscribed to the Google Groups "munki-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-discuss+unsubscribe@googlegroups.com.

To post to this group, send email to munki-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/02993109-044b-4932-8732-4585b393924b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "munki-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-discuss+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages