API to check User Status (Logged In vs Logged Out)

Hi all,

Is there any API we can use to check the current logged status of an user in Genesys Cloud?
I understand it's possible to gather the current user's presence but, in that case, the user is logged in.

Genesys reports have that information very well detailed, I feel strange not being able to find and API that would give us that.

Thank you in advance.

Best,
Vasco

Hello,

Do you mean the "User Status Detail Report" in User Reports?
Showing Offline, Available, ... statuses

"Offline" is a presence status.
So Logged Out would correspond to Offline presence status.
And Logged In would correspond to all other presence status (different from Offline).

You can get a user's presence via a GET /api/v2/users/{userId} with "expand" query parameter containing "presence"

JSM

Hi Jerome,

I'm talking about the Agent Login-Logout Details Report. I would like to be able and estract that info with the API.

Best,
Vasco

Yes.
This report is based on the same statuses.

The Login StartTime happens when the user sets his presence to any possible presence status, except "OFFLINE" (ex: "AVAILABLE", "BUSY", "AWAY", ...).
As long as the user changes his state to something different from "OFFLINE" (ex: "AVAILABLE", "BUSY", "AWAY", ...), he is still considered as LoggedIn.

When the user logs out from the PureCloud client, or if he just kills the Web client (and after few seconds of timeout to detect that web client is not there anymore), his presence status is set to "OFFLINE".
Which defines the Login EndTime (when the user enters "OFFLINE" presence status).

Regards,

Vasco,

We have already developed a Dashboard to show user statuses and compare against the licencesed users vs connected users and with the posibility to disconnect them.

If need assistance just let us know.

Regards,
Mario.

Thank you both for the help.

But can we use an API to get that data?
Can you tell me again the name of the dashboad?

Best,
Vasco

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.