0 votes

I would like to set the Hire Date of a user to the CustomAttributeDate2. Using your script to create users from a csv file. I have tried "Hire Date" = "%CustomAttributeDate2%" and this fails. image.png image.png

So obviously, these customColumnNames can only be put in Active Directory. Is there a way for me to get that data into the customAttribute in adaxes? Add something to the script.

by (890 points)

1 Answer

+1 vote
by (10.1k points)

Hello,

As far as we understand you are referring to the following script in our repository: https://www.adaxes.com/script-repository/import-new-and-updated-users-from-csv-file-s246.htm. If so, yes, it is possible to import values to Adaxes custom attributes. To do so, you need to map the name of the required column to the LDAP name of the custom attribute (e.g. adm-CustomAttributeDate2) in the $customColumnsNames variable. In your case the issue occurs because you specified the value reference to the custom attribute, but not the attribute LDAP name. The mapping should look like this:

"HireDate" = "adm-CustomAttributeDate2";
0

I see, thanks for the info. This is working properly now.

Related questions

0 votes
1 answer

This script description says it can find the manager via FullName Distinguished name or Display name. Wondering if we can change it to use employeeID or SamAccountName.

asked Oct 24, 2022 by mightycabal (890 points)
0 votes
1 answer

Example: If a user has a ' in theirname: Fred J O'neal. Normally the username is set as %lastname:lower,4%%firstname:lower,3%%initials:lower% Problem is o'nefrej would be the result. ... name", "Information") $username = #this is what I'm not sure how to do?

asked Dec 6, 2022 by mightycabal (890 points)
0 votes
1 answer

Or is there another solution to solve this?

asked Sep 15, 2022 by boris (450 points)
0 votes
0 answers

We are in hybrid mode with 365. All the accounts we create have to made with a .com instead of .local. How can I make that change in adaxes? Or is this some default I need to change in AD instead?

asked Apr 11, 2022 by LEGIT1 (150 points)
0 votes
1 answer

Using this built in function: There is no option to change the domain on the user account, however this is not the domain we use for UPN. However after creating a user, you can change it but trying to avoid going back into the object.

asked Apr 14 by mightycabal (890 points)
3,231 questions
2,932 answers
7,499 comments
535,360 users