We use the LDAP question type a lot, but would like to have an option, to change what value is forwarded to Powershell.
Right now its the DistinguishedName, but it would be amazing to have an option, to forward the SamAccountName instead.
We log everything that happens in au2mator in SQL, but since we do this at an SamAccountName level, we have to start all scripts with something similar to this:
$ADUser = Get-ADUser -Filter “DistinguishedName -eq ‘$Username'” -Properties * -ErrorAction stop
$SamAccountName = $ADUser.SamAccountName