# Get list of users from AD/Int Source

**URL:** <https://forum.inductiveautomation.com/t/get-list-of-users-from-ad-int-source/6828>\
**Category:** Ignition\
**Created:** [July 8, 2013, 12:01pm UTC](https://forum.inductiveautomation.com/t/get-list-of-users-from-ad-int-source/6828 "2013-07-08T12:01:28Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [July 8, 2013, 12:01pm UTC](https://forum.inductiveautomation.com/t/get-list-of-users-from-ad-int-source/6828/1 "2013-07-08T12:01:28Z")

</div>

I am wondering if there is a way to query the AD/Internal source to return a list of users.

Generally the client is logged in as a generic user, and occasionally logged in by a technician or engineer with higher permissions, however we still log the “operator” user, but this is just a simple dropdown of users that does not actually auth, just used for logging.

Is there a way to return a dataset with all the users from a specific role?

---

<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:** [July 18, 2013, 1:01am UTC](https://forum.inductiveautomation.com/t/get-list-of-users-from-ad-int-source/6828/2 "2013-07-18T01:01:00Z")

</div>

:bump:

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 18, 2013, 1:05am UTC](https://forum.inductiveautomation.com/t/get-list-of-users-from-ad-int-source/6828/3 "2013-07-18T01:05:41Z")

</div>

You can use system.user.getUsers(source) to get a list of Users, and then filter those Users to get only the ones with a specific role. Then, if you really need a dataset, you can create one from that filtered list.
