Forum Discussion
Disable Onedrive for specific users
If, You mean you have list of user or all and you want change their license options (Plans)? For example, if you want to disable "Sites" you need to disable license option - "Sharepoint (Plan 1)" etc.
Example on PowerShell
(ctreate variable for license options)
$myO365SkuOption = New-MsolLicenseOptions -AccountSkuId <tenant>:ENTERPRISEPACK ` -DisabledPlans SHAREPOINTWAC
(set this option to user)
Set-MsolUserLicense -UserPrincipalName user1@tenant.onmicrosoft.com ` -LicenseOptions $myO365SkuOption
Or you can do it from GUI Admin center (User list menu)
thx
- Zoltan BagyonMar 04, 2017Steel Contributor
As each Onedrive is technically a site collection where the the given user gets access rights through the site collection admin role, you can simply remove the user from the site collection admin role through the SP admin center or the Set-SPOUser PS cmdlet.
- Robert LienMar 06, 2017Brass Contributor
Ok, not the solution I was hoping for.
So if each user has its own site collection for OneDrive, does that also mean that we can remote the ability for a specific user to not be able to share anonymous links, while other specific users can. I assume I would disable for the site collection "<domain>-my.sharepoint.com" and then enable via PS for individual users?
thx
- Salvatore BiscariMar 06, 2017Silver Contributor
Be aware that every user is (and must be) the site collection admin of his/her ODFB site collection.
Hence, whatever you configure in ODFB can be later reconfigured by the user and you can't forbid it.