I'm looking to automate our onboarding of new users process. If someone can point me in the right direction that would be greatly appreciated. What I am looking for or need some guidance for is. I am working on getting the process started of making a PowerShell script that will check a SharePoint list for a new entry. Then take the information from the entry and create the user in AD, Waits for Office 365 to sync then assign the license. The part I'm struggling with right this moment is getting the SharePoint part of the script built.
Environment: Hybrid (On prem AD that syncs to office 365)
Logic:
-Check the Share Point List
-On Local Run the New User Powershell Script
-Check for new user in powershell
-Scripted Changed from Manual Input to Automatic input.
-Wait 60 minutes (Powershell sleep command let)
-Connecting to Office 365 Cloud
-Assign Licesnse
-Delay 5 Minute (Powershell sleep command let)
-Enable Archiving and Lit. hold