From ddaa5a3305d2c8d539cfd1dbb7e8b784d5c70768 Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Sun, 14 Jul 2024 22:02:40 +0200 Subject: [PATCH] working code for entirety, need to determine exact needed premissions --- AddUser.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AddUser.ps1 b/AddUser.ps1 index 67c623a..8a4f625 100644 --- a/AddUser.ps1 +++ b/AddUser.ps1 @@ -50,9 +50,9 @@ if($null -eq $Group){ $targeGroup =$null if($PSBoundParameters.ContainsKey("Server")){ - $targeGroup = . .\GetRoles.ps1 -Server $Server -ProjectName $ProjectName | Where-Object Name -Match $Type + $targeGroup = . .\GetRoles.ps1 -Server $Server -ProjectName $ProjectName | Where-Object Name -Match ".*-$($Type)" } else { - $targeGroup = . .\GetRoles.ps1 -ProjectName $ProjectName | Where-Object Name -Match $Type + $targeGroup = . .\GetRoles.ps1 -ProjectName $ProjectName | Where-Object Name -Match ".*-$($Type)" } if($null -eq $Group){