0 votes

Hello, I am looking for a way with a custom command or script to change ExtensionAttribute4 for all users in a specific OU(and Sub-OU's). Currently all of the values are firstname.lastname@xxx.com and I need to change them to firstname.lastname@yyy.com just changing the field after the @ symbol.

Thank You

by (470 points)

1 Answer

0 votes
by (1.1k points)

One Way you could do it is from the Adaxes Administration Console.

In the Console Tree, open Active Directory, then your domain
In the Console Tree select the OU with your users
In the Result Pane, Select, Shift-Select, or CTRL-Select the user(s) you want to modify
Right-Click one of the highlighted accounts and select "Add/Modify Property"

Select "Show all properties" then scroll through the list and select "extensionAttribute4" then "Next"

In the Property value, enter %firstname%.%lastname%@yyy.com (or %firstname:lower%.%lastname:lower%@yyy.com if you want all lower) and click Next

Alternately, you can click on the "Insert a property value reference" button to the right of the box and select your fields

Click "Finish". You should get confirmation for all the users that were modified.

* Off-topic to Adaxes Support, how do I attach pictures so there is no scroll bar next to the image? Also, it appears there is a limit of 3 attachements?

0

Unfortunately, the Firstname and LastName fields do not always match what is in the EA4. I would need something that captures the EA4 value before the @ and writes it to a CustomAttribText value. Once I had that I could easily re-write the field with a custom command.

Related questions

0 votes
1 answer

I have a dropdown-field on the web surface, which is populated by a script. The script looks up all groups in a specific OU and displays them. In the Property Pattern ... random order. What should i do to show the groups in alphabetical order in the portal?

asked Sep 15, 2020 by lohnag (160 points)
0 votes
1 answer

Since DIRSYNC doesn't appear to sync UPN correctly and it needs to be changed VIA powershell online. Is there a way to create a custom ... current on-prem UPN? Set-MsolUserPrincipalName -UserPrincipalName oldemail@old.com -NewUserPrincipalName newemail@new.com

asked Aug 11, 2015 by auser42 (340 points)
0 votes
1 answer

good day, is there any chance to modify the behavior of the address field? Which displays a users address like this: We would like to have City and Zip/Postalcode comma ... question, can the blank line be removed from a drop down list? Regards Ingemar Jacob

asked Sep 16, 2013 by ijacob (960 points)
0 votes
1 answer

I am doing a proof of concept deployment of Adaxes and I am struggling with something that I believe is easy to correct. I am using the web form to create a new user with a space in it's name ... zA-Z0-9-]+.)+[a-zA-Z0-9_-]+$'." What did I miss for this config?

asked Jul 22, 2021 by jwisniewski (20 points)
0 votes
1 answer

Hi Is it possible to get the Web Interface address via a script? Thanks Matt

asked Oct 13, 2023 by chappers77 (2.0k points)
3,348 questions
3,049 answers
7,791 comments
545,060 users