Alarm Pipeline Calculated Roster

I'm trying to create a Calculated Roster that consists of a Direct Roster + the user that is logged into the Client. I'm struggling to come up with the function that gathers the logged in user's info. Could someone please shed some light on that?

Thanks!
Andrew

There's no guarantee there is only one logged in user. Or there might be zero. You should include logic in your UI that checks for appropriateness and saves the UI session ID in a memory tag. A script in the pipeline could then check that session ID, make sure it is still connected, and use the user information from it.

Looks like I can't use the function system.user.getUser() within the Calculated Roster script presumably because, like you said, there could be multiple users logged in. Is there a function that pulls all Client Details from the gateway? I could then filter by Project and append those users to the Direct Roster.

I think I found it. system.util.getSessionInfo().

and/or

Depending on your UI choice.