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 (420 points)

1 Answer

+1 vote
by (7.7k 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 (420 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 (420 points)
0 votes
1 answer

Or is there another solution to solve this?

asked Sep 15, 2022 by boris (300 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

Currently, when I disable a user account in Adaxes, the group memberships of the user remain intact. I'd like to automate the removal of group memberships such as distribution ... a list of groups/DL that the user was previously in and removed from. Thanks!

asked Nov 3, 2021 by jayden.ang (20 points)
2,931 questions
2,647 answers
6,860 comments
157,451 users