You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: create.ps1
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -247,7 +247,7 @@ try {
247
247
switch ($actionAccount) {
248
248
"Create" {
249
249
#region Create account
250
-
$actionMessage="creating account with FirstName [$($account.FirstName)] and LastName [$($account.FirstName)]"
250
+
$actionMessage="creating account with FirstName [$($account.FirstName)] and LastName [$($account.LastName)]"
251
251
252
252
# Set ExtId with ExtID of user in Salto DB, if not available, set with person externalId
253
253
if (-not [string]::IsNullOrEmpty($getSaltoAccountResponse.ExtID)) {
@@ -283,12 +283,12 @@ try {
283
283
284
284
$outputContext.AuditLogs.Add([PSCustomObject]@{
285
285
# Action = "" # Optional
286
-
Message="Created account with FirstName [$($account.FirstName)] and LastName [$($account.FirstName)] with AccountReference: $($outputContext.AccountReference|ConvertTo-Json)."
286
+
Message="Created account with FirstName [$($account.FirstName)] and LastName [$($account.LastName)] with AccountReference: $($outputContext.AccountReference|ConvertTo-Json)."
287
287
IsError=$false
288
288
})
289
289
}
290
290
else {
291
-
Write-Warning"DryRun: Would create account with FirstName [$($account.FirstName)], LastName [$($account.FirstName)] and ExtId [$($account.ExtId)]."
291
+
Write-Warning"DryRun: Would create account with FirstName [$($account.FirstName)], LastName [$($account.LastName)] and ExtId [$($account.ExtId)]."
292
292
}
293
293
#endregion Create account
294
294
@@ -353,4 +353,4 @@ finally {
353
353
if ([String]::IsNullOrEmpty($outputContext.AccountReference) -and$actionContext.DryRun-eq$true) {
354
354
$outputContext.AccountReference="DryRun: Currently not available"
0 commit comments