The following cmdlet should exclude users where edsvaDeprovisionStatus is not 1, however it includes all users, including those with edsvaDeprovisionStatus=1:
Get-QADUser -SizeLimit 0 -IncludedProperties "edsvaDeprovisionStatus" -LdapFilter "(!(edsvaDeprovisionStatus=1))" -Proxy
Status:
The Active Roles product team has raised Defect request #472861. This issue will be evaluated and resolved in a future version of Active Roles.
Workaround1:
Get-QADUser -SizeLimit 0 -IncludedProperties "edsvaDeprovisionStatus" -LdapFilter "(edsvaDeprovisionStatus=NULL)" -Proxy
Workaround2:
#############################
Connect-QADService -proxy << Replace with your Server name >>
$root = "Replace with your targeting OU DN or Domain"
foreach($user in (Get-QADUser -SearchRoot $root -IncludedProperties edsvaDeprovisionStatus,edsvaUnDeprovision -SizeLimit 0 -SearchScope OneLevel))
{
if($user.edsvaDeprovisionStatus -ne 1)
{
write-host $User
}
}
#############################
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center