# Active Directory - pull custom attributes?

**URL:** <https://forum.inductiveautomation.com/t/active-directory-pull-custom-attributes/11714>\
**Category:** Ignition\
**Created:** [May 24, 2016, 4:38pm UTC](https://forum.inductiveautomation.com/t/active-directory-pull-custom-attributes/11714 "2016-05-24T16:38:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kstofcho](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@Kstofcho](https://forum.inductiveautomation.com/u/Kstofcho)\
**Post date:** [May 24, 2016, 4:38pm UTC](https://forum.inductiveautomation.com/t/active-directory-pull-custom-attributes/11714/1 "2016-05-24T16:38:39Z")

</div>

Is it possible to pull attribute values from the attribute editor in AD into Ignition? For example, I have an employeeID attribute and would like to display this in Ignition (to avoid duplication/having to save values in a database in addition to AD). I successfully pulled all the values (username, first name, last name, etc…) from the following manual page by using system.user.getUsers() but that only includes a short list of attributes. Is there a simple way to access and pull additional attributes from AD?

Thank you!

[docs.inductiveautomation.com:84 … r.getUsers](https://docs.inductiveautomation.com:8443/display/DOC/system.user.getUsers)

---

<div class="post-metadata">

**Author:** ![michael.biggers](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@michael.biggers](https://forum.inductiveautomation.com/u/michael.biggers)\
**Post date:** [June 22, 2017, 3:53pm UTC](https://forum.inductiveautomation.com/t/active-directory-pull-custom-attributes/11714/2 "2017-06-22T15:53:12Z")

</div>

I’ve been wondering this too! I wish I could help more, but from what I’m reading it seems like the only way to do it may be through either custom modules or some advanced scripting and liberal use of the Java standard library. Hopefully someone with a bit more experience can see this and answer properly, though.

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [June 22, 2017, 7:46pm UTC](https://forum.inductiveautomation.com/t/active-directory-pull-custom-attributes/11714/3 "2017-06-22T19:46:28Z")

</div>

Its possible to use ldap or another library like this one ([http://timgolden.me.uk/python/active\_directory.html](http://timgolden.me.uk/python/active_directory.html)) in a script to get the data you want, but I agree a built in way would be really nice.

---

<div class="post-metadata">

**Author:** ![michael.biggers](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@michael.biggers](https://forum.inductiveautomation.com/u/michael.biggers)\
**Post date:** [June 22, 2017, 9:30pm UTC](https://forum.inductiveautomation.com/t/active-directory-pull-custom-attributes/11714/4 "2017-06-22T21:30:17Z")

</div>

Hi Ryan,  
I thought it wasn’t possible to import modules that aren’t part of the Python standard library, which unfortunately the active\_directory module isn’t. Is there a way to somehow import it anyway?

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [June 23, 2017, 1:08am UTC](https://forum.inductiveautomation.com/t/active-directory-pull-custom-attributes/11714/5 "2017-06-23T01:08:36Z")

</div>

You certainly can! Only restriction is the python needs to be compatible with jython 2.5, so things that only work on python 2.6+ cannot be used.

Just drop the script/lib into the user-lib/pylib folder. More details here [How do we import new python libraries to ignition](http://forum.inductiveautomation.com/t/how-do-we-import-new-python-libraries-to-ignition/10037)

---

<div class="post-metadata">

**Author:** ![michael.biggers](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@michael.biggers](https://forum.inductiveautomation.com/u/michael.biggers)\
**Post date:** [June 26, 2017, 6:05pm UTC](https://forum.inductiveautomation.com/t/active-directory-pull-custom-attributes/11714/6 "2017-06-26T18:05:43Z")

</div>

Thanks! It seems you’re right, and your solution worked just fine.
