If you see in the script posted, I have $otherAttributes being used for New-Aduser, however the same variable cannot be used for Set-Aduser as it doesn't support -OtherAttributes.
I want to have the possibility of making the changes to an existing user by using the new values from SQL where the Action Column has value Update.
Further I want to use the same scenario for New-MsolUser & Set-MsolUser.
PowershellSQLActive DirectoryMicrosoft 365
8/22/2022 - Mon
Your help has saved me hundreds of hours of internet surfing.