Retrieve email from a On-Call Roster?

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 ?

Hi @Carla_Ratto, from getRosters() you could filter for the username you need and then use system.user.getUser() to get the contact info.

1 Like

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

1 Like