# Roster script functions

**URL:** <https://forum.inductiveautomation.com/t/roster-script-functions/18355>\
**Category:** Ignition\
**Created:** [June 8, 2018, 10:58am UTC](https://forum.inductiveautomation.com/t/roster-script-functions/18355 "2018-06-08T10:58:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcarritt1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mcarritt1/32/4262_2.png) [@mcarritt1](https://forum.inductiveautomation.com/u/mcarritt1)\
**Post date:** [June 8, 2018, 10:58am UTC](https://forum.inductiveautomation.com/t/roster-script-functions/18355/1 "2018-06-08T10:58:00Z")

</div>

I need to change users of a roster through a button, are there no scripting functions to edit a roster?

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [June 8, 2018, 1:43pm UTC](https://forum.inductiveautomation.com/t/roster-script-functions/18355/2 "2018-06-08T13:43:19Z")

</div>

Not at this time. That’s why we added the [calculated roster](https://docs.inductiveautomation.com/display/DOC79/Notification+Block#NotificationBlock-Calculated) to alarm pipelines.

---

<div class="post-metadata">

**Author:** ![lukeo](https://avatars.discourse-cdn.com/v4/letter/l/b487fb/32.png) [@lukeo](https://forum.inductiveautomation.com/u/lukeo)\
**Post date:** [May 15, 2019, 6:01am UTC](https://forum.inductiveautomation.com/t/roster-script-functions/18355/3 "2019-05-15T06:01:42Z")

</div>

Is there a way in a script to query a roster?

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [May 15, 2019, 2:01pm UTC](https://forum.inductiveautomation.com/t/roster-script-functions/18355/4 "2019-05-15T14:01:10Z")

</div>

Does [system.alarm.getRosters()](https://docs.inductiveautomation.com/display/DOC80/system.alarm.getRosters) do what you want? I know it sounds like it just returns the names of the rosters, but what it really returns is a mapping of who is in each roster.
