ProjectManagementScripts/GetProjectUsers.ps1
2024-07-14 13:01:03 +02:00

19 lines
390 B
PowerShell

# Parameter help description
[CmdletBinding()]
param (
[string]
$Name
)
if($PSBoundParameters.ContainsKey('Name')){
. .\Variables.ps1
$Read='GR-'+$Name+'-RO'
$Write='GR-'+$Name+'-RW'
Write-Host $Read+$Roles
Write-Host $Write+$Roles
$ReadUsers=Get-ADGroupMember -Recursive -Identity $Read
$WriteUsers
Return $null
}
throw "No such Project was found"