diff --git a/EasyPIM/EasyPIM.psd1 b/EasyPIM/EasyPIM.psd1 index ca02148..227da43 100644 --- a/EasyPIM/EasyPIM.psd1 +++ b/EasyPIM/EasyPIM.psd1 @@ -4,7 +4,7 @@ RootModule = 'EasyPIM.psm1' # Version number of this module. -ModuleVersion = '1.7.4' +ModuleVersion = '1.7.5' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/EasyPIM/functions/Get-PIMGroupActiveAssignment.ps1 b/EasyPIM/functions/Get-PIMGroupActiveAssignment.ps1 index 4fe52e0..2323267 100644 --- a/EasyPIM/functions/Get-PIMGroupActiveAssignment.ps1 +++ b/EasyPIM/functions/Get-PIMGroupActiveAssignment.ps1 @@ -34,6 +34,7 @@ function Get-PIMGroupActiveAssignment { [Parameter(Position = 0, Mandatory = $true)] [String] $tenantID, + [Parameter(Mandatory = $true)] [string]$groupID, [string]$memberType, [string]$principalName, diff --git a/EasyPIM/functions/Get-PIMGroupEligibleAssignment.ps1 b/EasyPIM/functions/Get-PIMGroupEligibleAssignment.ps1 index fc674b1..8466c50 100644 --- a/EasyPIM/functions/Get-PIMGroupEligibleAssignment.ps1 +++ b/EasyPIM/functions/Get-PIMGroupEligibleAssignment.ps1 @@ -34,6 +34,7 @@ function Get-PIMGroupEligibleAssignment { $tenantID, # select the most usefull info only [switch]$summary, + [Parameter(Mandatory = $true)] [string]$groupID, [string]$rolename, [string]$principalName diff --git a/EasyPIM/functions/Get-PIMGroupPolicy.ps1 b/EasyPIM/functions/Get-PIMGroupPolicy.ps1 index 9345219..2736109 100644 --- a/EasyPIM/functions/Get-PIMGroupPolicy.ps1 +++ b/EasyPIM/functions/Get-PIMGroupPolicy.ps1 @@ -72,6 +72,10 @@ function Get-PIMGroupPolicy { } + #fix #77 + elseif (!( $PSBoundParameters.ContainsKey('groupID'))) { + throw "You must provide a groupID or a groupName" + } $out = @() $groupID | ForEach-Object {