Forum Discussion
Charles Willwerth
Oct 12, 2016Brass Contributor
Powershell to create user AND update Work E-mail in User Profile
Hello, I am trying to build a powershell script that will run against SharePoint Online. It will create a new user, and update their Work-Email property in their SharePoint Online User Profile. T...
Oct 12, 2016
You will need to add the user to a site:
New-SPOUser -LoginName "username@tenant.onmicrosoft.com"
and then
New-SPOPersonalSite -Email "username@tenant.onmicrosoft.com"
This will then create your user prorfile after a while and then you can update your properties.