How to add Employee Number to Active Directory Users properties?
Please see my previous post about how you can add Employee ID filed for user profile.
In this blog, I am going to show you how you can add employee ID field in Active Directory user Properties.
1. Login to your domain controller and open ADSI Edit
2. Right click on ADSI Edit and Connect To
3. Once you in the connection settings, select configuration from the drop down list where it says “Select a well known naming context”
4. Open CN=DisplaySpecifiers
5. Open CN=409, CN=DisplaySpecifiers, CN=Configuration
6. Look for CN=Default Display and double click on default-display
7. In Default Display Properties, open extraColumns
8. Add employeeNumber,Employee Number,0,100,0 in the value filed and Click ADD.
Click OK and OK exit from Default Display
9. Now open Active Directory Users and Computers and open Saved Queries
10. Expand "Saved Queries"
11. Right Click "Saved Queries" select "New > Query"
12. In the "Name:" field type "All Users" and select "Define Query…"
13. On the "Users" tab next to the "Name:" field click on the drop down and select "Has a value"
14. Now Click "OK" and "OK" again
15. Expand "Saved Queries" and select "All Users"
16. Now you will have a list of all your users in the right pane.
17. With the query selected click View > Add/Remove Columns
18. Select Employee Number and Add to Displayed Columns
19. Now Click on View and Select Advanced Features
20. Double click on a user profile and now you will see Attribute Editor
Scroll down and look for Employee Number or press E in your keyboard to locate all the attributes which starts with E.
If you want to edit employee number, just double click or click on the edit button
21. Now you can edit Employee Number in Active Directory by going to User Profile properties.
To enable Employee Number in Active Directory and perform all these steps, you should have enterprise admin/Schema Admins rights.
Will this solution work for any given attribute, ie. a new custom attribute ex. contactGuid,Contact GUID,0,100,0 ?
Great column! But the Attribute Editor tab is not yet showing up (for me). Thinking this is not a replication issue (only one DC). Any thoughts?
The “Attribute Editor” tab is not displayed … Any ideas ???
Are you using Windows 2008? Are you a administrator?
You cannot see the attribute field because you search for the user and you open it from the search result. Do not search for the user! Just manually go down in the OU and find manually the user account. Then you right click and select the properties, and you will see the Attributes tab.
And of course in the active directory users and computer windows, at view menu, turn on the detailed, or advanced features…
-Seprenyi Balázs (MCSE, MCSA…)
Hello,
How would I add a plain text field attribute? As an example I want to add a Supervisor Plain text attribute that I can use to populate for a custom web app.
thanks for the help!
I don’t know the answer to your question. If I find the answer, I will post it here.
Aryan,
Great work! Thank you! If you don’t mind me asking, how did you figure this out? Book, another online forum?
Thanks,
Cesar
I followed your tutorial and created 3 new new attributes. I can see them from when I add the columns from a saved query in ADUC but I do not seen them in the Attribute Editor tab. How can I make the attributes viewable?
Are you a domain admin?
Aryan,
I followed your steps but cannot see Employee Number in the “Available Columns” although it does exist in Attribute Editor.
Any ideas?
Thanks
Cesar
Are you using Windows 2008 R2?
Not sure why your not able to see at all. I will check my DC and let you know soon.
Hello Aryan,
First of all, thanks for your tutorial.
I asked a question myself; what are the three number in your added value “employeeNumber,Employee Number,0,100,0”.
I understood the first was the attribut’s name, the second the attribut’s description… But I don’t understand the three numbers :s.
Thanks a lot to explain me what are they.
Regards,
Bryan.
(Sorry for my very poor English, I’m French)
Hi,
In Active Directory user properties :1.telephone numbers i want rename the home in place voip name how to,please help this issue.
we are using (GAL) user contact information home is showing i want voip number
Thanks,
Sri
hi
will the content of the employee id appear in the outlook address book? I dont want this to be visible to all users
It will not display in Outlook Address book. If you want you have to change the AD Schema
employee number is already a default attribute…you only created a “view” colume
The numbers used in this post are explained here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms677291(v=vs.85).aspx
Bryan,
The numbers are explained here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms677291(v=vs.85).aspx
Hope that helps,
Brad
I just created a employee id field.but i dont see it in AD user profile
Hi
Cool post.
What is the difference between “Custom Attribute” and “Extension Custom Attribute”?
I need to grant rights to a service account to write to a custom field in AD.
How can I do this?
Thanks, Maelito
Have a employee tab in aduc. How can I modify the same to add birthdate field.
or birthdate to ADUC Can anyone help please.
Thanks
Cedric
Thanks for helping out how to add custom attribute… its solve my problem.. many thanks !
Hi,
I created a custom attribute and want to create a log of your changes.
it’s possible?
I am not sure but let me find out and let you know
Vyctor, what do you mean by “create a log” Could you provide detail informaiton
I can see the attribute in the attribute editor tab but how can I added it so it can be an entry in general tab p^lease?
Hi Aryan,
Great post and well explained.
Is it possible to add ‘auto incremented integer value’ attribute to AD? I figured it out to add integer/numeric value but not auto incremental. It can be hidden or shown to user.