API to query offline users over a period of time

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?

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

Regards

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