# \[Perspective\] List of Tag Groups

**URL:** <https://forum.inductiveautomation.com/t/perspective-list-of-tag-groups/64584>\
**Category:** Ignition\
**Tags:** scripting, ignition81, perspective\
**Created:** [September 28, 2022, 9:33am UTC](https://forum.inductiveautomation.com/t/perspective-list-of-tag-groups/64584 "2022-09-28T09:33:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davide3i](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davide3i/32/27811_2.png) [@Davide3i](https://forum.inductiveautomation.com/u/Davide3i)\
**Post date:** [September 28, 2022, 9:33am UTC](https://forum.inductiveautomation.com/t/perspective-list-of-tag-groups/64584/1 "2022-09-28T09:33:02Z")

</div>

Hello. Is there a function to programmatically get the list of the current Gateway’s Tag Groups in a Provider?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 28, 2022, 9:57am UTC](https://forum.inductiveautomation.com/t/perspective-list-of-tag-groups/64584/2 "2022-09-28T09:57:53Z")

</div>

Not in the system functions (as far as I know), but you might be able to find something with this:

[http://files.inductiveautomation.com/sdk/javadoc/ignition80/8.0.0-beta/com/inductiveautomation/ignition/gateway/model/GatewayContext.html](http://files.inductiveautomation.com/sdk/javadoc/ignition80/8.0.0-beta/com/inductiveautomation/ignition/gateway/model/GatewayContext.html)

which has a `getTagManager` method, which will bring you to this:

[http://files.inductiveautomation.com/sdk/javadoc/ignition80/8.0.0-beta/com/inductiveautomation/ignition/gateway/tags/model/GatewayTagManager.html](http://files.inductiveautomation.com/sdk/javadoc/ignition80/8.0.0-beta/com/inductiveautomation/ignition/gateway/tags/model/GatewayTagManager.html)

Which has a `getTagGroupsAsync` method.

---

<div class="post-metadata">

**Author:** ![Davide3i](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davide3i/32/27811_2.png) [@Davide3i](https://forum.inductiveautomation.com/u/Davide3i)\
**Post date:** [September 28, 2022, 10:00am UTC](https://forum.inductiveautomation.com/t/perspective-list-of-tag-groups/64584/3 "2022-09-28T10:00:44Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [March 12, 2025, 3:28pm UTC](https://forum.inductiveautomation.com/t/perspective-list-of-tag-groups/64584/4 "2025-03-12T15:28:42Z")

</div>

Can you shared your script please?

---

<div class="post-metadata">

**Author:** ![Davide3i](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davide3i/32/27811_2.png) [@Davide3i](https://forum.inductiveautomation.com/u/Davide3i)\
**Post date:** [March 13, 2025, 6:40am UTC](https://forum.inductiveautomation.com/t/perspective-list-of-tag-groups/64584/5 "2025-03-13T06:40:53Z")

</div>

Unfortunately I don't have it anymore. I'm sorry!
