# Retrieve email from a On-Call Roster?

**URL:** <https://forum.inductiveautomation.com/t/retrieve-email-from-a-on-call-roster/63394>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [August 24, 2022, 2:22pm UTC](https://forum.inductiveautomation.com/t/retrieve-email-from-a-on-call-roster/63394 "2022-08-24T14:22:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carla\_Ratto](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@Carla\_Ratto](https://forum.inductiveautomation.com/u/Carla_Ratto)\
**Post date:** [August 24, 2022, 2:22pm UTC](https://forum.inductiveautomation.com/t/retrieve-email-from-a-on-call-roster/63394/1 "2022-08-24T14:22:10Z")

</div>

Hi,  
Is it possible de retrieve the email of an user in an On-Call Roster with a script ? If I understand well, getRosters() only returns names, but not contact infos ?  
Thanks,  
Carla

---

<div class="post-metadata">

**Author:** ![matthew.ayre](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew.ayre/32/19499_2.png) [@matthew.ayre](https://forum.inductiveautomation.com/u/matthew.ayre)\
**Post date:** [August 24, 2022, 2:39pm UTC](https://forum.inductiveautomation.com/t/retrieve-email-from-a-on-call-roster/63394/2 "2022-08-24T14:39:26Z")

</div>

Hi @Carla_Ratto, from getRosters() you could filter for the username you need and then use [system.user.getUser()](https://docs.inductiveautomation.com/display/DOC81/system.user.getUser) to get the contact info.

---

<div class="post-metadata">

**Author:** ![Carla\_Ratto](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@Carla\_Ratto](https://forum.inductiveautomation.com/u/Carla_Ratto)\
**Post date:** [August 24, 2022, 2:42pm UTC](https://forum.inductiveautomation.com/t/retrieve-email-from-a-on-call-roster/63394/3 "2022-08-24T14:42:50Z")

</div>

Ok I finally found the solution, sorry for the useless topic. I put the solution, maybe it would help someone else later :

1. Call system.alarm.getRosters()[“RosterName”] to retrieve the usernames of your desired roster called RosterName

2. Then call system.user.getUser() in a loop with the right arguments to get all users objects

3. Finally call user.getContactInfo() to retrieve the contact info of each user
