Skip to content

Commit

Permalink
Add passthru
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Dec 2, 2023
1 parent 8484455 commit 4ddd0fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Public/Sync-O365PersonalContact.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
[string[]] $UserId,
[ValidateSet('Member', 'Guest', 'Contact')][string[]] $MemberTypes = @('Member'),
[switch] $RequireEmailAddress,
[string] $GuidPrefix
[string] $GuidPrefix,
[switch] $PassThru
)

Initialize-DefaultValuesO365
Expand All @@ -46,6 +47,8 @@
$ExistingContacts = Get-O365ExistingUserContacts -UserID $User -GuidPrefix $GuidPrefix

$Actions = Sync-InternalO365PersonalContact -UserId $User -ExistingUsers $ExistingUsers -ExistingContacts $ExistingContacts -MemberTypes $MemberTypes -RequireEmailAddress:$RequireEmailAddress.IsPresent -GuidPrefix $GuidPrefix -WhatIf:$WhatIfPreference
$Actions
if ($PassThru) {
$Actions
}
}
}

0 comments on commit 4ddd0fe

Please sign in to comment.