Skip to main content
10 events
when toggle format what by license comment
Nov 13, 2014 at 15:48 comment added Matthew McDermott OK, last comment. User Account Creation and User Profile Creation are not the same thing. You have to Create the user, then the profile. Then update the profile. You cannot do what you want in "one step".
Nov 12, 2014 at 16:45 comment added Scubacode I have not found any way yet to either include that in the first step where I create the users or add a second step where all 5002 users get an updated email address either via PS script or a console app
Nov 12, 2014 at 16:45 comment added Scubacode Well, technically I suppose I could have rather asked two questions. But yes, if all 5002 users appear as SP users the first half would be complete. The second half of the question regarding the WorkEmail - yes, it can be updated once the user has a profile, but up until now the only way to do that is by manually going into each profile, choosing edit and then adding the new custom WorkEmail address.
Nov 12, 2014 at 15:06 comment added Matthew McDermott OK, but work email is on the user profile, which is created after you create the users in Azure AD. Once you create the users and then create the user profiles, isn't your test complete? You can update the user profiles WorkEmail property after you have user profiles.
Nov 12, 2014 at 13:00 comment added Scubacode Up till now I couldn't find anything to loop the above command, although I was looking for "loop through CSV/ Excel list of users", which is where I have my test users. The work email is for testing purposes, it is the only field that accepts gmail.com and doesn't insist on the tenant.onmicrosoft.com - I'm using gmail with aliases so all users email come to one inbox but addressed to different people. I find it easier to oversee it that way.
Nov 12, 2014 at 12:57 history edited Amal Hashim CC BY-SA 3.0
edited
Nov 12, 2014 at 12:56 history edited Matthew McDermott CC BY-SA 3.0
Updated with loop.
Nov 12, 2014 at 12:41 comment added Matthew McDermott Sorry, I assumed you knew how to run a loop in PowerShell. Do you need me to show you? I am lost on why you need work email.
Nov 12, 2014 at 10:52 comment added Scubacode I'm sorry but I don't see how this answers my question. I know that the user name must be [email protected] but for the alternate email address it also only accepts tenant.onmicrosoft.com unless I have another registered domain, which gmail is not my domain. Work email accepts the gmail.com address. Also, to my knowledge, the New-MsolUser cmdlet only does one user at a time and does not accept the WorkEmail parameter
Nov 11, 2014 at 12:57 history answered Matthew McDermott CC BY-SA 3.0