Adding Custom Attributes to Active Directory user profile

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

Default Display Properties,  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

ADUC 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

ADUC Add Remove Columns

18. Select Employee Number and Add to Displayed Columns

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

Enable Active Directory 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

Employee Number Attribute in Active Directory

21. Now you can edit Employee Number in Active Directory by going to User Profile properties.

Enable Employee Number in Active Directory

To enable Employee Number in Active Directory and perform all these steps, you should have enterprise admin/Schema Admins rights.

Published by Aryan Nava

Founder of "BlockchainMind", CTO for two Blockchain startup during 2018, Cloud/DevOps Consultant and Blockchain Trainer

28 thoughts on “Adding Custom Attributes to Active Directory user profile

  1. 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?

  2. 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…)

  3. 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!

  4. 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?

  5. Aryan,

    I followed your steps but cannot see Employee Number in the “Available Columns” although it does exist in Attribute Editor.

    Any ideas?



    1. 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.

  6. 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.


    (Sorry for my very poor English, I’m French)

  7. 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



  8. hi

    will the content of the employee id appear in the outlook address book? I dont want this to be visible to all users

  9. 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

  10. Have a employee tab in aduc. How can I modify the same to add birthdate field.
    or birthdate to ADUC Can anyone help please.

  11. 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.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: