We help IT Professionals succeed at work.

Associate AD attribute with user accounts

There is an out of the box 2008 schema attribute called "buildingName".  How do I associate this with user accounts so I can populate it with data through ADUC?
Comment
Watch Question

Commented:
I'm not sure if this can be done.  The attribute is for organizations and OUs, so I'd have to do some digging to see if it can be done or not.  Perhaps some of the other experts will have a more definitive answer.
Justin SmithSr. System Engineer
Top Expert 2012

Author

Commented:
Thanks for the quick reply.  Yes it appeared to be for OU's, but I don't even see a way to populate it on OU's.  Am I missing something?
Senior Active Directory Engineer
Top Expert 2012
Commented:
You cannot add simply any attribute within ADUC to be able to modify it. It requires some programming stuff :/ and DLL rebuilding (if you ask if I can - no I can't :) )

There is only one way, you can do this simply and painless. You need appropriately written VBScript and you can add context menu on user's object using ADSIEdit. When you click right mouse button on a user then you will see that option which executes script. This would be something similar to EmployeeID example on Mike's blog at
http://adisfun.blogspot.com/2009/05/add-employee-id-field-aduc.html

and you can also add extra column to display (read-only mode) in ADUC when browsing users. You can also do that using ADSIEdit. Some short example at http://pberblog.com/post/2009/06/21/Add-extra-columns-to-Active-Directory-Users-and-Computers-display.aspx

Remember, do those changes in test environment to make sure that it works fine for you then implement theme in production

Regards,
Krzysztof

Commented:
If you actually want to associate your "building name" with user accounts, then possibly you might try using the physicalDeliveryOfficeName attribute instead. Two nice features of this attribute are that it shows up in the Outlook Address Book under the column heading "Office", and it is directly accessible in ADUC.

You might populate this field with either the building name, or a hybrid of the building name and the office or cubicle within the building. The field is designed to hold information specific enough for a delivery person to bring something to the office or cubicle occupant.
Justin SmithSr. System Engineer
Top Expert 2012

Author

Commented:
Thanks for replies.  I guess my question becomes how do I populate the buildingAttribute for user accounts?  Is it even possible?

Agineg - we are already using the physicalDelivery attribute :)

Justin SmithSr. System Engineer
Top Expert 2012

Author

Commented:
Does show how to add things to ADUC, but not adding teh buildingName to users.