# How can I fetch the name of the User Source configured in my Ignition project properties using a script?

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-fetch-the-name-of-the-user-source-configured-in-my-ignition-project-properties-using-a-script/112029>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 7, 2025, 10:18am UTC](https://forum.inductiveautomation.com/t/how-can-i-fetch-the-name-of-the-user-source-configured-in-my-ignition-project-properties-using-a-script/112029 "2025-11-07T10:18:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![haasith.saisarakinti](https://avatars.discourse-cdn.com/v4/letter/h/ce7236/32.png) [@haasith.saisarakinti](https://forum.inductiveautomation.com/u/haasith.saisarakinti)\
**Post date:** [November 7, 2025, 10:18am UTC](https://forum.inductiveautomation.com/t/how-can-i-fetch-the-name-of-the-user-source-configured-in-my-ignition-project-properties-using-a-script/112029/1 "2025-11-07T10:18:24Z")

</div>

I’m using **Ignition version 8.1.37** , and I want to retrieve the name of the User Source that’s selected in **Project Properties → General → User Source**.

I do **not** want to list all user sources or users within them — just the **name of the active user source** currently assigned to the project.

Is there a scripting function or a reliable way (in Gateway or Perspective scope) to get this value at runtime?

---

<div class="post-metadata">

**Author:** ![Cose\_Peter1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cose_peter1/32/79174_2.png) [@Cose\_Peter1](https://forum.inductiveautomation.com/u/Cose_Peter1)\
**Post date:** [November 7, 2025, 10:39am UTC](https://forum.inductiveautomation.com/t/how-can-i-fetch-the-name-of-the-user-source-configured-in-my-ignition-project-properties-using-a-script/112029/2 "2025-11-07T10:39:56Z")

</div>

I once had the requirement to add users to the default userSource and this is how I did it.  
Not sure if we can just get the name of the userSource.

> [@Get the User Source the project is set to in perspective](https://forum.inductiveautomation.com/t/get-the-user-source-the-project-is-set-to-in-perspective/58979/4):
>
> Parameters String userSource - The user source to add a user to. If set to an empty string, the function will attempt to use the project’s default user source (if called from a project).

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 7, 2025, 1:00pm UTC](https://forum.inductiveautomation.com/t/how-can-i-fetch-the-name-of-the-user-source-configured-in-my-ignition-project-properties-using-a-script/112029/3 "2025-11-07T13:00:39Z")

</div>

You will have to use the SDK `ProjectManager` API that you can get from a gateway context. (Doing this is utterly unsupported, fwiw.)

---

<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:** [November 7, 2025, 3:45pm UTC](https://forum.inductiveautomation.com/t/how-can-i-fetch-the-name-of-the-user-source-configured-in-my-ignition-project-properties-using-a-script/112029/4 "2025-11-07T15:45:43Z")

</div>

For some more breadcrumbs; once you have a project you need to obtain an instance of the [`GlobalProps`](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.50/com/inductiveautomation/ignition/common/project/GlobalProps.html) resource.

Consider [Ignition Extensions](https://forum.inductiveautomation.com/t/ignition-extensions-convenience-utilities-for-advanced-users/64615) to get easier access to the local project. Note that it's no more 'supported' whether you're using Ignition Extensions or directly accessing the SDK. Do **not** contact our support department if you're doing something in here and it fails.

For my actual _recommendation_: just encode this in a project library constant or something. Is the default database going to change all that often, _really_?
