I am trying to put together a script that takes a csv from our HR system and updates attributed in AD. I have been using syntax like this for other attributes with no issues:
Import-Csv $Importedcsv | ForEach-Object { Set-QADUser $_.mail -manager $_.Supervisor_Primary ` -ObjectAttributes @{ExtensionAttribute1=($_.ExtensionAttribute1); ExtensionAttribute2=($_.ExtensionAttribute2)} }
I have a csv from HR that has the following format:
The issue that we are running into is that the attributes that are coming from our HR systems do not coincide with anything we have in AD. How do we populate the -manager attribute using data from this csv?
Thanks for everyone's help!
Brian