# Get list of user sources in the dropdown

**URL:** <https://forum.inductiveautomation.com/t/get-list-of-user-sources-in-the-dropdown/45754>\
**Category:** General Discussion\
**Tags:** perspective\
**Created:** [April 19, 2021, 2:39pm UTC](https://forum.inductiveautomation.com/t/get-list-of-user-sources-in-the-dropdown/45754 "2021-04-19T14:39:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksadda](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@ksadda](https://forum.inductiveautomation.com/u/ksadda)\
**Post date:** [April 19, 2021, 2:39pm UTC](https://forum.inductiveautomation.com/t/get-list-of-user-sources-in-the-dropdown/45754/1 "2021-04-19T14:39:24Z")

</div>

Hi,

I want to list all the user sources in the dropdown in the perspective screen using the script. What need to write in the script to list all the user sources in the dropdown.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/8/8802677bec458f5119651bfef6914485b500fc15.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 19, 2021, 4:49pm UTC](https://forum.inductiveautomation.com/t/get-list-of-user-sources-in-the-dropdown/45754/2 "2021-04-19T16:49:03Z")

</div>

> [@\[FEATURE-1478\] Get Profiles List (get all user sources)](http://forum.inductiveautomation.com/t/feature-1478-get-profiles-list-get-all-user-sources/11401/4):
>
> There is currently no good way to fetch the list of all configured user source profiles from a script. From gateway scope, you could use this for now, but just know it depends on internal data structures which (though not likely to change in the foreseeable future) may change: from com.inductiveautomation.ignition.gateway import IgnitionGateway from simpleorm.dataset import SQuery from com.inductiveautomation.ignition.gateway.user import UserSourceProfileRecord query = SQuery(UserSourceProf…
