Forum Discussion

Joonas Pakkanen's avatar
Joonas Pakkanen
Brass Contributor
Feb 12, 2018

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

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

  • BenStegink's avatar
    BenStegink
    Steel Contributor

    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.

    • Joonas Pakkanen's avatar
      Joonas Pakkanen
      Brass 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?

      • BenStegink's avatar
        BenStegink
        Steel 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.

    • jcgonzalezmartin's avatar
      jcgonzalezmartin
      MVP
      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

Resources