Legacy Dev Forum Posts

 View Only

Sign Up

User Login and Log Out Time total Duration

  • 1.  User Login and Log Out Time total Duration

    Posted 06-05-2025 18:05

    Bindu | 2017-06-27 09:28:55 UTC | #1

    Hi,

    I need an information about, How do I retrieve user's Login and logout time as a total duration. I am using user aggregation query through analytics API to retrieve the User's information below see the query snippet

    List<AggregationQuery.MetricsEnum> Mylist = new List<AggregationQuery.MetricsEnum>(); Mylist.Add(AggregationQuery.MetricsEnum.Tagentroutingstatus); Mylist.Add(AggregationQuery.MetricsEnum.Torganizationpresence); Mylist.Add(AggregationQuery.MetricsEnum.Tsystempresence);

    So I am adding up these two metrics Torganizationpresence, Tsystempresence, for the total User's Logged in Duration.

    Please Suggest me for the same.

    Thank You


    tim.smith | 2017-06-27 12:33:54 UTC | #2

    There isn't a concept of "logged in" or "logged out" in PureCloud. Generally, you can consider the presence "Offline" to be when the user is not using PureCloud and any other presence means they are using PureCloud. However, keep in mind that external integrations and other apps that the user might log in to can change the user's presence, or log them in and not change it.


    anon47305574 | 2017-06-29 19:20:12 UTC | #3

    Also worth noting is that orgPresence is an alias (potentially many-to-one) on top of systemPresence, so you would not want to sum those two together unless you are certain that you are not unintentionally double-counting


    system | 2017-07-30 19:20:17 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 1474