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)
- Mar 04, 2017Mustafiz is correct, these are the two approaches you have to selectively disable OneDrive for specific users. Easies way is by means of the license controls you have in the Administration Portal...right one, through PowerShell
- Dean_GrossMar 06, 2017Silver Contributor
To expand on this answer, there is new functionality for assigning licenses using Groups in Azure AD, see https://docs.microsoft.com/en-us/azure/active-directory/active-directory-licensing-group-assignment-azure-portal
- Robert LienMar 07, 2017Brass ContributorGood point, but not aware that Azure allows for assigning ONLY OneDrive4B without SharePoint. Since that is in the same license, I am having to have to keep OneDrive since I need SharePoint. thx.
- Robert LienMar 04, 2017Brass ContributorHi, your answers seems to cover all of shareponit, including OneDrive4B. Questions was if I can disable the personal OneDrive4B without other company SharePoint resources.
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