# \[FEATURE-1478\] Get Profiles List (get all user sources)

**URL:** <https://forum.inductiveautomation.com/t/feature-1478-get-profiles-list-get-all-user-sources/11401>\
**Category:** Ignition\
**Created:** [March 22, 2016, 3:37pm UTC](https://forum.inductiveautomation.com/t/feature-1478-get-profiles-list-get-all-user-sources/11401 "2016-03-22T15:37:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jspecht](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jspecht/32/6465_2.png) [@jspecht](https://forum.inductiveautomation.com/u/jspecht)\
**Post date:** [January 4, 2021, 7:31pm UTC](https://forum.inductiveautomation.com/t/feature-1478-get-profiles-list-get-all-user-sources/11401/4 "2021-01-04T19:31:20Z")

</div>

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:

```auto
	from com.inductiveautomation.ignition.gateway import IgnitionGateway
	from simpleorm.dataset import SQuery
	from com.inductiveautomation.ignition.gateway.user import UserSourceProfileRecord
	query = SQuery(UserSourceProfileRecord.META).ascending(UserSourceProfileRecord.Name)
	results = IgnitionGateway.get().getPersistenceInterface().query(query)
	userSourceProfileNames = []
	for result in results:
		userSourceProfileNames.append(result.getName())
	return userSourceProfileNames

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/feature-1478-get-profiles-list-get-all-user-sources/11401)._
