This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Importing value to edsvaSecondaryOwners

I have a csv file with 2 columns, samaccountname and edsvaSecondaryOwners (in DN format, and it points to a separate account not equal to the samacountname in the same file).

Trying to read the csv file, and import the edsvaSecondaryOwners value in the file to the attribute edsvaSecondaryOwners of the target samaccountname.  But it doesn't work.  No error message, instead it listed the accounts that I am trying to change, and the actual DN of the account (not the value that I want to set to .. I am stupid here.  Please help.  

Here is the command that I ran:

import-csv .\secondaryOwners.csv | foreach {set-qaduser $_.samaccountname -objectAttributes @{edsvaSecondaryOwners=@($_.edsvaSecondaryOwners)}}

Parents
  • Hi,

    The edsvaSecondaryOwners attribute is normally only present for Group type objects; I don't know exactly what's inside your CSV but the "Set-QADUser" in your command makes me think you're trying to apply a Secondary owner to a user object? Please make sure your input file contains groups and you use the Set-QADGroup command and it should work!

  • Hi Michiel,

    My CSV contains the name of the target, which is samAccountName for user object, and the new attribute value for edsvaSecondaryOwners (DN value for another user that owned the user account).  Based on what I read from your reply, and the one from JohnnyQuest, it looks like the attribute is intended for group object whereas I was trying to repurpose it for user object.   Hence, the set-qadGroup command will not work for me because I cannot apply that to a user object, in a bulkload situation.  Via web interface, I can assign that to an user object though...  Now I am confused, lol

    Vince

  • One thing I noticed is missing from your cmdlet call is the '-proxy' switch.  Unless you've done a Connect-QADService -proxy before, this will be necessary as this attribute is part of the AR schema.

  • what a stupid mistake.  thank you johnnyQuest

Reply Children
No Data