diff --git a/EasyPIM/functions/Get-PIMGroupActiveAssignment.ps1 b/EasyPIM/functions/Get-PIMGroupActiveAssignment.ps1 index 783a3e4..4fe52e0 100644 --- a/EasyPIM/functions/Get-PIMGroupActiveAssignment.ps1 +++ b/EasyPIM/functions/Get-PIMGroupActiveAssignment.ps1 @@ -7,14 +7,14 @@ EntraID tenant ID .PARAMETER groupID The group id to check - .PARAMETER memberType + .PARAMETER memberType Filter results by memberType (owner or member) .PARAMETER principalName Filter results by principalName starting with the given value .Parameter summary When enabled will return the most useful information only .Example - PS> Get-PIMGroupActiveAssignment -tenantID $tid -groupID $gID + PS> Get-PIMGroupActiveAssignment -tenantID $tid -groupID $gID List active assignement for the group $gID .Example diff --git a/EasyPIM/internal/functions/Import-Settings.ps1 b/EasyPIM/internal/functions/Import-Settings.ps1 index f422b0d..7d8b17e 100644 --- a/EasyPIM/internal/functions/Import-Settings.ps1 +++ b/EasyPIM/internal/functions/Import-Settings.ps1 @@ -97,7 +97,7 @@ function Import-Setting ($path) { "Recipients" = $_.Notification_Activation_Approver_Recipients.split(',') } $rules += Set-Notification_Activation_Approver $Notification_Activation_Approver - #> + #> # patch the policy Update-Policy $_.policyID $($rules -join ',') } diff --git a/EasyPIM/internal/functions/Set-Approval.ps1 b/EasyPIM/internal/functions/Set-Approval.ps1 index d47f490..f4b0efd 100644 --- a/EasyPIM/internal/functions/Set-Approval.ps1 +++ b/EasyPIM/internal/functions/Set-Approval.ps1 @@ -40,7 +40,7 @@ function Set-Approval ($ApprovalRequired, $Approvers, [switch]$entraRole) { ], "escalationApprovers":[] }]}}]} - #> + #> $rule = '{ "id":"Approval_EndUser_Assignment", @@ -93,7 +93,7 @@ function Set-Approval ($ApprovalRequired, $Approvers, [switch]$entraRole) { "escalationApprovers":[] }] } -}' +}' <# $rule = ' diff --git a/EasyPIM/internal/functions/Set-ApprovalFromCSV.ps1 b/EasyPIM/internal/functions/Set-ApprovalFromCSV.ps1 index 68bd8ad..7b3141d 100644 --- a/EasyPIM/internal/functions/Set-ApprovalFromCSV.ps1 +++ b/EasyPIM/internal/functions/Set-ApprovalFromCSV.ps1 @@ -59,10 +59,10 @@ if ($ApprovalRequired -eq "FALSE") { $req = "false" }else { $req = "true" } # turn approvers list to an array $Approvers= $Approvers -replace "^","@(" $Approvers= $Approvers -replace "$",")" - write-verbose "APPROVERS: $Approvers" + #write-verbose "APPROVERS: $Approvers" #then turn the sting into an array of hash table - $Appr = Invoke-Expression $Approvers + $Appr = Invoke-Expression $Approvers $rule += ' "primaryApprovers": [ @@ -73,7 +73,6 @@ if ($ApprovalRequired -eq "FALSE") { $req = "false" }else { $req = "true" } $id = $_.id $name = $_.description $type = $_.userType - write-host "ID => $($_.id)" if ($cpt -gt 0) { $rule += ","