Forum Discussion
Automatically provision OneDrive for Business site for end user when adding O365 license
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.
- Aubrey MarshallFeb 20, 2018Brass Contributor
Do you have more details on how this is accomplished?
- BenSteginkFeb 21, 2018Iron Contributor
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.
- Rob EllisOct 23, 2018Bronze ContributorWe'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)
- Joonas PakkanenFeb 20, 2018Brass Contributor
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?
- BenSteginkFeb 20, 2018Iron Contributor
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.