Legacy Dev Forum Posts

 View Only

Sign Up

API to query offline users over a period of time

  • 1.  API to query offline users over a period of time

    Posted 06-05-2025 19:24

    BharatRudrakshala | 2023-09-14 15:26:00 UTC | #1

    I would like to query all users that have not logged in to genesys cloud for the past 6 months. I have tried to use the POST /api/v2/analytics/users/details/query to get users that have been offline for the past 6 months using this request

    { "interval": "2023-03-01T00:00:00Z/2023-09-01T23:59:00Z", "paging": { "pageSize": 10, "pageNumber": 1 }, "order": "asc", "presenceFilters": [ { "type": "or", "predicates": [ { "type": "dimension", "dimension": "systemPresence", "value": "OFFLINE" } ] } ] }

    The issue here is it does not let me get user information for more than 31days. Is there any other way to get this information?

    Am I on the right track? Is there a better way to get this information?


    Ebenezer_Osei | 2023-09-25 17:25:34 UTC | #2

    You could query GET /api/v2/users to get all users and filter based on the dateLastLogin value.

    Regards


    system | 2023-10-26 17:25:36 UTC | #3

    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: 22006