Disable OneDrive for Business in Office 365

When performing Office 365 migrations for clients, the topic of disabling OneDrive for Business and/or SharePoint Online often comes up. The reasons for someone wanting to do this vary but are usually of the variety of needing more control over what the users are saving to OneDrive and SharePoint.

Note: There are times when it is only desirable to disable the sharing of confidential information with people outside of the organization and not completely disable the use of OneDrive for Business and SharePoint Online. For this we are better off using Office 365 Data Loss Prevention now that Microsoft has added the ability to block sharing content via OneDrive for Business and SharePoint Online. Another great blog post on this subject can be found here.

Option 1 – Hide OneDrive for Business from the Office 365 Online Apps Launcher

It is simple to hide the OneDrive for Business Application from the Office 365 Online Apps Launcher by changing the app visibility setting from the SharePoint online administration site. It is important to note – if users know the OneDrive for Business Site URL (ie. https://tenantname-my.sharepoint.com/_layouts/15/MySite.aspx?MySiteRedirect=AllDocuments), they can still access their OneDrive for Business site, even after performing these steps. It is also important to note, this step will only disable OneDrive for Business and SharePoint Online use via Online/Web applications; it does not disabled the ability to save documents to OneDrive for Business or SharePoint via Office 365 ProPlus and Office 2016 applications installed on the users workstations, nor does it disable the ability for the OneDrive for Business Sync Client installed on users workstations, from syncing files to OneDrive for Business.

Let’s get started…

This is what the Office 365 Online Apps Launcher looks like before hiding OneDrive for Business

0-OD4B in App Launcher

 

We can hide the OneDrive for Business App from the Office 365 Online Apps Launcher by selecting Hide next to OneDrive for Business from SharePoint Admin Center > Settings.

This is what the Office 365 Online Apps Launcher looks like after hiding OneDrive for Business. You will notice the Office Online Applications such as Word Online and Excel Online are also hidden, which disables the ability to create new Office files via the Office Online Applications.

2-OD4B hidden in App Launcher

Option 2 – Disable OneDrive for Business in the Office 365 tenant

We can control OneDrive for Business access from the initial tenant deployment stage. This also allows us to control OneDrive for Business access via group membership. It is important to note – this will not have any effect on users who are currently already using OneDrive for Business. Scroll down to Option 3 for a fix to this scenario.

OneDrive for Business uses SharePoint Online as backend. In SharePoint Online, the Personal Site creation is enabled for all users via the group Everyone except external users. This option gives users the ability to create the OneDrive for Business document library and if disabled, will disable OneDrive for Business access for those users.

You can access these permissions via the following path: SharePoint Admin Center > User Profiles > Manage User Permissions

If we uncheck the Create Personal Site permission, users will not be able to create their MySite or OneDrive in the first place. To fix this, instead of using the default Everyone except external users group, create separate groups and assign them permissions directly. In the example we created a Security Group ODB Users in Office 365 admin center and assign them Create Personal Site permission in User profiles. After following the steps described in the screenshots, you will be able to control which users have the ability to initiate their OneDrive for Business creations via the Group ODB Users. This effectively disables OneDrive for Business for new users not in the ODB Users group. Remember, users who have used OneDrive for Business before these modifications will already have initiated their document library in SharePoint and these changes will not have any effect on them. To deal with this scenario, we need to modify the permissions for each user folder that already exists, which is what we will discuss in Option 3 below.

Option 3 – Remove permission to the users SharePoint Personal Site

Now we will look at our last option. This will normally apply only when existing users are currently using OneDrive for Business but we need to disable their OneDrive for Business access and still continue to have SharePoint Online access.

As previously discussed, since the user already has used OneDrive, removing the above personal site access won’t do anything and the user would still have access to OneDrive for Business if they try to accesses it.

First we need to change the site collection administrator of the personal site of the specific user from SharePoint Admin Center > User Profiles > Manage User Profiles. Search for the user and click on the dropdown menu next to it to get to the below options, then select “Manage site collection owners”.

Now replace the account in the fields below with the one for the new Site Collection admin for the Personal site of the user. This way you will be able to give the users their OneDrive access back at a later stage if necessary.

PowerShell

If you prefer to use PowerShell, the below script will accomplish the same thing and is a good option when needing to modify multiple users.

Results of Options 2 and/or 3 Changes

When the users try to access their OneDrive after the owner change, they will get an access denied message. It may not be pretty but it accomplishes the goal. Also, the OneDrive sync client will stop syncing new files. The user will still have access to the files already synced to their devices. If they attempt to sync again they will get the below message in OneDrive Client after the login prompt.

Things worth noting

  • It is recommended to delete the personal site using PowerShell command Remove-SPOSite however, if choosing to delete the site, ensure it is deleted prior to disabling the access using the above steps. This ensures that the PersonalSiteInstantiationState profile property of the user is updated which would help with smother personal site creation if re-enabled in the future, and will also ensure no impact on any dependent features. This is important because the personal site contains granular permissions which will not be removed by simply changing the Site Collection Administrator.

To delete the personal site, use the following PowerShell script:
Connect-SPOService -Url https://contoso-admin.sharepoint.com
Remove-SPOSite -Identity https://contoso-my.sharepoint.com/personal/j_doe_contoso_com

  • If your users have created subsites or other lists/libraries with unique permissions under the personal site, they will continue to have access to it. The user is by default added to the site with Full Control and the default group Everyone except external users, has read access on the personal site.

Block OneDrive use from within Office 365 ProPlus and Office 2016 applications

If you only need to control access to OneDrive for Business from Domain Joined workstations with Office Applications installed, this can be accomplished using a Group Policy. Click here for detailed instructions.

 

6,361 thoughts on “Disable OneDrive for Business in Office 365

  1. Im happy I found this blog, I couldnt find out any info on this subject matter prior to. I also run a site and if you want to ever serious in a little bit of guest writing for me if possible feel free to let me know, im always look for people to check out my site. Please stop by and leave a comment sometime!

  2. Valuable information and awesome webdesign you got here! I would like to thank you for sharing your ideas and time into the stuff you post!! Thumbs up

  3. I think youve produced some truly interesting points. Not too many people would really think about this the way you just did. Im definitely impressed that theres so substantially about this topic thats been uncovered and you did it so well, with so substantially class. Very good one you, man! Actually fantastic things right here.

  4. I had this website saved a while in the past but my computer crashed. I have since gotten a new one and it took me a while to locate this! I also really like the theme though.

  5. Im still learning from you, while Im making my way to the top as well. I absolutely enjoy reading all that is posted on your site.Keep the stories coming. I liked it!

  6. Youre so right. Im there with you. Your weblog is surely worth a read if anybody comes throughout it. Im lucky I did because now Ive acquired a whole new view of this. I didnt realise that this issue was so important and so universal. You certainly put it in perspective for me.

  7. Please tell me that youre going to keep this up! Its so excellent and so important. I cant wait to read far more from you. I just feel like you know so very much and know how to make people listen to what you might have to say. This weblog is just too cool to become missed. Good stuff, seriously. Please, PLEASE keep it up!

  8. I’m really enjoying the theme/design of your weblog. Do you ever run into any internet browser compatibility problems? A number of my blog audience have complained about my website not working correctly in Explorer but looks great in Firefox. Do you have any advice to help fix this issue?

    1. The theme I use is called Hired. I have not received any comments about it not working in browsers. The best advice I can give would be to just test in all possible browsers before using a particular theme. Sometimes there is just no substitute for testing.

  9. I haven抰 checked in here for some time as I thought it was getting boring, but the last several posts are great quality so I guess I will add you back to my daily bloglist. You deserve it my friend 🙂

  10. [url=https://cialis5mgpills.quest/]cialis pills sale[/url] [url=https://ordergenericcialisonline.monster/]cialis daily uk[/url] [url=https://genericcialistabwithnorx.quest/]tadalafil uk over the counter[/url] [url=https://hydroxychloroquine.run/]buy plaquenil from canada[/url] [url=https://apropecia.com/]finasteride proscar[/url] [url=https://finasteride.run/]finasteride where can i buy[/url] [url=https://buyviagratabletswithnorx.quest/]where can i buy female viagra pill[/url]

  11. [url=http://onlineviagra150withoutrx.quest/]online viagra pharmacy[/url] [url=http://orderazithromycin.online/]azithromycin 1000 mg for sale[/url] [url=http://cheapcialis5mgpills.monster/]tadalafil tablets 20 mg india[/url] [url=http://buybestcialis20.monster/]cialis super active cheap[/url] [url=http://genericcialistabwithnorx.quest/]cialis 2.5 mg coupon[/url] [url=http://finasteride.run/]buy genuine propecia[/url]