Automatically provision OneDrive for Business site for end user when adding O365 license

%3CLINGO-SUB%20id%3D%22lingo-sub-155053%22%20slang%3D%22en-US%22%3EAutomatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-155053%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIs%20it%20possible%20to%20automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20users%20when%20adding%20O365%20license%3F%3C%2FP%3E%0A%3CP%3EI%20know%20that%20we%20can%20use%26nbsp%3BRequest-SPOPersonalSite%20CMDlet%20and%20PreProvision%20scripts%2C%20but%20it%20would%20be%20great%20if%20this%20can%20be%20set%20up%20more%20easily.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EExample%3A%20User%20gets%20Office%20365%20license%20and%20system%20automatically%20provisions%20user%20OneDrive.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegards%2C%20Joonas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-155053%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-345416%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-345416%22%20slang%3D%22en-US%22%3E%3CP%3EHas%20anyone%20find%20out%20if%20this%20issue%20with%20OneDrive%20accounts%20not%20provisioning%20until%20the%20user%20clicks%20on%20the%20OneDrive%20portal%20icon%3F%20is%20this%20beheaviour%20for%20all%20Subscriptions%20within%20Office%20365%3F%20or%20is%20it%20only%20for%20certain%26nbsp%3B%20subscriptions%20like%20EDU%3F%20GOV%3F%20GCC%3F%20DOD%3F%20Non-Profit%3F%20can%20someone%20confirm%3F%20I%20did%20support%20for%20Business%20Premium%20accounts%20are%20when%20this%20happened%20it%20was%20back%20when%20the%20good%20ole%20Business%20Premium%20came%20to%20change%20the%20older%20licensing%20and%20they%20were%20turning%20off%20Public%20Websites.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277215%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277215%22%20slang%3D%22en-US%22%3E%3CP%3EOh%2C%20that%20would%20be%20really%20nice%20if%20it's%20provisioned%20as%20soon%20as%20the%20license%20is%20assigned%20now.%20I'll%20have%20to%20check%20that%20out%2C%20thanks%20for%20the%20tip%20Rob!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20glad%20to%20hear%20you%20enjoy%20the%20podcast...always%20fun%20to%20know%20people%20actually%20listen%20to%20Scott%20and%20I%26nbsp%3Band%20our%20thoughts%20on%20Office%20365%20and%20Azure%26nbsp%3B%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20specific%26nbsp%3Btopics%20you%20want%20us%20to%20cover%20or%20questions%20you%20want%20answered%20in%20an%20upcoming%20episode%3F%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277118%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277118%22%20slang%3D%22en-US%22%3EPs%2C%20love%20the%20podcast%20Ben!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277114%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277114%22%20slang%3D%22en-US%22%3EWe've%20noticed%20that%20in%20the%20last%20few%20weeks%2C%20OneDrive%20for%20Business%20is%20automatically%20provisioned%20for%20a%20user%20when%20they%20are%20assigned%20a%20SharePoint%20Online%20license.%20(or%20at%20least%20that%20appears%20to%20be%20what%20is%20happening)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-162362%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-162362%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F299%22%20target%3D%22_blank%22%3E%40Aubrey%20Marshall%3C%2FA%3E%2C%20I%20don't%20have%20any%20examples%20or%20scripts%20that%20are%20publicly%20available%20right%20now.%26nbsp%3B%20Working%20on%20a%20way%20to%20provide%20solutions%20like%20this%20easier%20and%26nbsp%3Balso%20have%20it%20on%20my%20to-do%20list%20to%20write%20a%20blog%20post%20that%20would%20give%20a%20little%20more%20detail%20on%20how%20this%20process%20might%20work.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20a%20presentation%20I%20did%20recently%20here%20-%20%3CA%20href%3D%22https%3A%2F%2Fcollab365.community%2Fhood-6-automating-sharepoint-online-powershell-azure-automation-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcollab365.community%2Fhood-6-automating-sharepoint-online-powershell-azure-automation-flow%2F%3C%2FA%3E.%26nbsp%3B%20It%20doesn't%20give%20the%20step-by-step%20details%2C%20but%20does%20provide%20some%20additional%20details%20into%20how%20I%20did%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-161497%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-161497%22%20slang%3D%22en-US%22%3E%3CP%3EDo%20you%20have%20more%20details%20on%20how%20this%20is%20accomplished%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-161320%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-161320%22%20slang%3D%22en-US%22%3E%3CP%3EI%20just%20manually%20added%20users%20to%20the%20SP%20List.%26nbsp%3B%20However%2C%20you%20could%20easily%20automate%20that%20part%20if%20you%20had%20a%20CSV%20file%20with%20all%20the%20users...or%20some%20other%20way%20you%20wanted%20to%20automatically%20add%20users%20to%20the%20list.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-161315%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-161315%22%20slang%3D%22en-US%22%3E%3CP%3ESounds%20like%20a%20great%20workaround!%3C%2FP%3E%0A%3CP%3EStill%20wishing%20that%20there%20could%20be%20much%20simpler%20solution%20for%20this.%3C%2FP%3E%0A%3CP%3EDid%20you%20use%20some%20automation%20to%20get%20user%20in%20SharePoint%20list%20or%20just%20manually%20added%20it%20there%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-160245%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-160245%22%20slang%3D%22en-US%22%3E%3CP%3EI%E2%80%99ve%20actually%20done%20this%20for%20one%20of%20my%20clients.%20%26nbsp%3BWhen%20the%20need%20to%20add%20a%20new%20users%2C%20they%20simply%20put%20the%20UPN%2Femail%20address%20in%20a%20SharePoint%20list%20along%20with%20the%20two%20character%20location%20code.%20%26nbsp%3BAdding%20an%20item%20to%20the%20list%2C%20triggers%20some%20PowerShell%20running%20in%20Azure%20Automation%20to%20appropriate%20license%20the%20users%20in%20Office%20365%20as%20well%20as%20provision%20OneDrive%20for%20Business.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20a%20few%20different%20ways%20you%20could%20trigger%20the%20PowerShell%2C%20but%20the%20end%20of%20the%20day%2C%20PowerShell%20is%20going%20to%20be%20at%20the%20heart%20of%20your%20solution%20for%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-155425%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-155425%22%20slang%3D%22en-US%22%3EAgree%20with%20Pablo%20here...if%20your%20problem%20is%20the%20use%20of%20PowerShell%2C%20then%20you%20should%20invest%20some%20time%20on%20checking%20if%20you%20can%20get%20the%20same%20with%20a%20third%20party%20tool%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-155057%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-155057%22%20slang%3D%22en-US%22%3EAFAIK%20there's%20no%20way%20to%20do%20that%20on%20the%20portal.%20You%20could%20combine%20pre-provisioning%20scripts%20with%20Licensing%20scripts.%20Here's%20a%20good%20example%3A%3CBR%20%2F%3E%3CA%20href%3D%22http%3A%2F%2Fwww.questiondriven.com%2F2016%2F01%2F19%2Foffice-365-license-user-and-provision-onedrive-via-powershell-scheduled-task%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.questiondriven.com%2F2016%2F01%2F19%2Foffice-365-license-user-and-provision-onedrive-via-powershell-scheduled-task%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-559844%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-559844%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F506%22%20target%3D%22_blank%22%3E%40Rob%20Ellis%3C%2FA%3E%26nbsp%3Bis%20this%20a%20fact%3F%20one%20of%20my%20clients%20has%2013k%20users.%20if%20so%20this%20would%20make%20it%20easier.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-683238%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20provision%20OneDrive%20for%20Business%20site%20for%20end%20user%20when%20adding%20O365%20license%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683238%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F25127%22%20target%3D%22_blank%22%3E%40Fernando%20Melo%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20this%20is%20how%20it%20works%20now%20and%20has%20for%20some%20time%20-%20My%20company%20controls%20OD%20access%20tightly%20for%20right%20now%20and%20SP%20access.%20So%20naturally%20if%20a%20users%20SP%20license%20is%20off%20-%20Then%20OD%20does%20not%2Fis%20not%20provisioned%20(At%20least%20that%20is%20what%20I%20have%20seen%20and%20makes%20perfect%20sense)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20once%20I%20turn%20on%20SP%20for%20approved%20people.%20Usually%20within%20a%20hr%20the%20users%20OD%20is%20provisioned.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

 

Is it possible to automatically provision OneDrive for Business site for end users when adding O365 license?

I know that we can use Request-SPOPersonalSite CMDlet and PreProvision scripts, but it would be great if this can be set up more easily.

 

Example: User gets Office 365 license and system automatically provisions user OneDrive.

 

Regards, Joonas

13 Replies
Highlighted
AFAIK there's no way to do that on the portal. You could combine pre-provisioning scripts with Licensing scripts. Here's a good example:
http://www.questiondriven.com/2016/01/19/office-365-license-user-and-provision-onedrive-via-powershe...
Highlighted
Agree with Pablo here...if your problem is the use of PowerShell, then you should invest some time on checking if you can get the same with a third party tool
Highlighted

I’ve actually done this for one of my clients.  When the need to add a new users, they simply put the UPN/email address in a SharePoint list along with the two character location code.  Adding an item to the list, triggers some PowerShell running in Azure Automation to appropriate license the users in Office 365 as well as provision OneDrive for Business.

 

There are a few different ways you could trigger the PowerShell, but the end of the day, PowerShell is going to be at the heart of your solution for this.

Highlighted

Sounds like a great workaround!

Still wishing that there could be much simpler solution for this.

Did you use some automation to get user in SharePoint list or just manually added it there?

Highlighted

I just manually added users to the SP List.  However, you could easily automate that part if you had a CSV file with all the users...or some other way you wanted to automatically add users to the list.

Highlighted

Do you have more details on how this is accomplished?

Highlighted

@Aubrey Marshall, I don't have any examples or scripts that are publicly available right now.  Working on a way to provide solutions like this easier and also have it on my to-do list to write a blog post that would give a little more detail on how this process might work.

 

I have a presentation I did recently here - https://collab365.community/hood-6-automating-sharepoint-online-powershell-azure-automation-flow/.  It doesn't give the step-by-step details, but does provide some additional details into how I did it.

Highlighted
We've noticed that in the last few weeks, OneDrive for Business is automatically provisioned for a user when they are assigned a SharePoint Online license. (or at least that appears to be what is happening)
Highlighted
Highlighted

Oh, that would be really nice if it's provisioned as soon as the license is assigned now. I'll have to check that out, thanks for the tip Rob!

 

Also, glad to hear you enjoy the podcast...always fun to know people actually listen to Scott and I and our thoughts on Office 365 and Azure  :)

 

Any specific topics you want us to cover or questions you want answered in an upcoming episode? :)

Highlighted

Has anyone find out if this issue with OneDrive accounts not provisioning until the user clicks on the OneDrive portal icon? is this beheaviour for all Subscriptions within Office 365? or is it only for certain  subscriptions like EDU? GOV? GCC? DOD? Non-Profit? can someone confirm? I did support for Business Premium accounts are when this happened it was back when the good ole Business Premium came to change the older licensing and they were turning off Public Websites.

Highlighted

@Rob Ellis is this a fact? one of my clients has 13k users. if so this would make it easier.

Highlighted

@Fernando Melo

 

Yes this is how it works now and has for some time - My company controls OD access tightly for right now and SP access. So naturally if a users SP license is off - Then OD does not/is not provisioned (At least that is what I have seen and makes perfect sense)

 

However, once I turn on SP for approved people. Usually within a hr the users OD is provisioned.