# Get a List of all possible User Roles

**URL:** <https://forum.inductiveautomation.com/t/get-a-list-of-all-possible-user-roles/39018>\
**Category:** Ignition\
**Created:** [September 24, 2020, 12:54pm UTC](https://forum.inductiveautomation.com/t/get-a-list-of-all-possible-user-roles/39018 "2020-09-24T12:54:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elliot.lohr](https://avatars.discourse-cdn.com/v4/letter/e/3bc359/32.png) [@elliot.lohr](https://forum.inductiveautomation.com/u/elliot.lohr)\
**Post date:** [September 24, 2020, 12:54pm UTC](https://forum.inductiveautomation.com/t/get-a-list-of-all-possible-user-roles/39018/1 "2020-09-24T12:54:52Z")

</div>

Hey all, is there any built in scripting functions that get all possible user roles a user can have? I know there are a couple that exist to get the roles assigned to a currently signed in user, or one that can retrieve the roles of a user provided a username and password.

---

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [September 24, 2020, 1:02pm UTC](https://forum.inductiveautomation.com/t/get-a-list-of-all-possible-user-roles/39018/2 "2020-09-24T13:02:20Z")

</div>

Check this out: [https://docs.inductiveautomation.com/display/DOC80/system.user.getRoles](https://docs.inductiveautomation.com/display/DOC80/system.user.getRoles)  
You provide the user source and it’ll return the available roles.

---

<div class="post-metadata">

**Author:** ![elliot.lohr](https://avatars.discourse-cdn.com/v4/letter/e/3bc359/32.png) [@elliot.lohr](https://forum.inductiveautomation.com/u/elliot.lohr)\
**Post date:** [September 24, 2020, 1:03pm UTC](https://forum.inductiveautomation.com/t/get-a-list-of-all-possible-user-roles/39018/3 "2020-09-24T13:03:33Z")

</div>

Can’t believe I glanced over this! Thank you!
