From b1800eaa00508cae7d450047d579395b12299183 Mon Sep 17 00:00:00 2001 From: vaskotoo <56625074+vaskotoo@users.noreply.github.com> Date: Sat, 18 Jan 2020 06:01:09 +0100 Subject: [PATCH] Allow array input for $User Since we already run "foreach" on the $User, thought we can allow this to be an Array String input. I have also tested it, and it works as expected, I got the multiple user output for my search. --- PSGSuite/Public/Gmail/Get-GSGmailMessageList.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSGSuite/Public/Gmail/Get-GSGmailMessageList.ps1 b/PSGSuite/Public/Gmail/Get-GSGmailMessageList.ps1 index dcc23eac..7de07c4d 100644 --- a/PSGSuite/Public/Gmail/Get-GSGmailMessageList.ps1 +++ b/PSGSuite/Public/Gmail/Get-GSGmailMessageList.ps1 @@ -45,7 +45,7 @@ function Get-GSGmailMessageList { ( [parameter(Mandatory = $false,ValueFromPipelineByPropertyName = $true)] [Alias("PrimaryEmail","UserKey","Mail")] - [String] + [String[]] $User = $Script:PSGSuite.AdminEmail, [parameter(Mandatory = $false,ParameterSetName = "Filter")] [Alias('Query')]