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
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 :
-
Call system.alarm.getRosters()[“RosterName”] to retrieve the usernames of your desired roster called RosterName
-
Then call system.user.getUser() in a loop with the right arguments to get all users objects
-
Finally call user.getContactInfo() to retrieve the contact info of each user
2 Likes