From 9625aaf946eb0ce9bfe436c7309291a5c7d8b669 Mon Sep 17 00:00:00 2001 From: DevClate <107187714+DevClate@users.noreply.github.com> Date: Fri, 19 Apr 2024 05:49:03 -0400 Subject: [PATCH] Added new parameters for New-CT365User being imported --- Functions/Public/New-CT365User.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Functions/Public/New-CT365User.ps1 b/Functions/Public/New-CT365User.ps1 index c2aa803..d8622bf 100644 --- a/Functions/Public/New-CT365User.ps1 +++ b/Functions/Public/New-CT365User.ps1 @@ -10,7 +10,7 @@ The path of the Excel file containing user data. The file should have a worksheet named 'Users' with columns for UserName, FirstName, LastName, Title, Department, StreetAddress, City, State, PostalCode, Country, PhoneNumber, MobilePhone, UsageLocation, and License. This parameter is mandatory and accepts pipeline input and property names. -.PARAMETER domain +.PARAMETER Domain The domain to be appended to the UserName to create the UserPrincipalName for each user. This parameter is mandatory and accepts pipeline input and property names. @@ -103,7 +103,12 @@ function New-CT365User { Country = $user.Country BusinessPhones = $user.PhoneNumber MobilePhone = $user.MobilePhone + FaxNumber = $user.FaxNumber UsageLocation = $user.UsageLocation + CompanyName = $user.CompanyName + EmployeeHireDate = $user.EmployeeHireDate + EmployeeId = $user.EmployeeId + EmployeeType = $user.EmployeeType AccountEnabled = $true }