New-MSUserMigrations

Create new User record(s)

Syntax


New-MSUserMigrations [-FirstName (String)] [-LastName (String)] -SamAccount (String) [-Domain (String)] [-EmployeeId (String)] [-AdSId (String)] [-Email (String)] [-Process (String)] [-SubProcess (String)] [-BatchSize (Int32)]

New-MSUserMigrations -UserMigrations (Array) [-DontMatchOnMigrationId] [-DontMatchOnSamAccount] [-DontMatchOnAdSid] [-DontMatchOnEmployeeId] [-DontMatchOnEmail] [-DontMatchOnLegacyId] [-DontMatchOnUserPrincipalName] [-DontMatchOnAzObjectId] [-MatchOnFullName] [-LookupOnly] [-BatchSize (Int32)]

Examples


## Create a new User with FirstName "APITester", LastName "UserMigrations", SamAccount "apitester.um", EmployeeId  "ABC123", Email "apitester@demo.com". Assign to the "3. Scheduling\Self Schedule Invite Sent" process/sub-process and return the new User Id.
(New-MSUserMigrations -FirstName "APITester" -LastName "UserMigrations" -SamAccount "apitester.um" -EmployeeId "ABC123" -Email "apitester@demo.com" -Process "3. Scheduling" -SubProcess "Self Schedule Invite Sent").Id