Adding Custom Attributes to Active Directory user profile

July 4, 2011 — 22 Comments

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

adding-employee-id-in-active-directory-step-1

2.  Right click on ADSI Edit and Connect To

adding-employee-id-in-active-directory-step-2

3. Once you in the connection settings, select configuration from the drop down list where it says “Select a well known naming context”

adding-employee-id-in-active-directory-step-3

4. Open CN=DisplaySpecifiers

adding-employee-id-in-active-directory-step-4

5. Open CN=409, CN=DisplaySpecifiers, CN=Configuration

adding-employee-id-in-active-directory-step-5

6. Look for CN=Default Display and double click on default-display

image

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


image

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"

image

12. In the "Name:" field type "All Users" and select "Define Query…"

image

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.

 

SNAGHTML1b099e6

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

image

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.

22 responses to Adding Custom Attributes to Active Directory user profile

  1. 

    Will this solution work for any given attribute, ie. a new custom attribute ex. contactGuid,Contact GUID,0,100,0 ?

  2. 

    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?

  3. 

    The “Attribute Editor” tab is not displayed … Any ideas ???

  4. 

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

  5. 

    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!

  6. 

    Aryan,

    Great work! Thank you! If you don’t mind me asking, how did you figure this out? Book, another online forum?

    Thanks,

    Cesar

  7. 

    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?

  8. 

    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

  9. 

    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)

  10. 

    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

  11. 

    hi

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

  12. 

    employee number is already a default attribute…you only created a “view” colume

  13. 

    The numbers used in this post are explained here:
    http://msdn.microsoft.com/en-us/library/windows/desktop/ms677291(v=vs.85).aspx

  14. 

    Bryan,
    The numbers are explained here:

    http://msdn.microsoft.com/en-us/library/windows/desktop/ms677291(v=vs.85).aspx

    Hope that helps,
    Brad

  15. 
    Andre Johnson May 30, 2012 at 4:27 pm

    I just created a employee id field.but i dont see it in AD user profile

  16. 

    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

  17. 

    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

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s