Legacy Dev Forum Posts

 View Only

Sign Up

Find LastLogin information

  • 1.  Find LastLogin information

    Posted 06-05-2025 18:24

    marcoflps | 2022-12-27 12:39:11 UTC | #1

    Hi all,

    Exploring developer tools, I tried to find some API that could return the user's last login date.

    I couldn't find it in UsersAPI. Does this last login information exist in some API? Or is there any query I can do to show users who logged in from a set date?

    Thanks


    Brad_Murlin | 2023-01-02 13:37:01 UTC | #2

    You can determine this based on their presence info:

    GET /api/v2/users/{userId}/presences/purecloud

    Example return: { "source": "PURECLOUD", "presenceDefinition": { "id": "xxxxx", "systemPresence": "Offline", "selfUri": "/api/v2/presencedefinitions/xxxxx" }, "message": "", "modifiedDate": "2022-05-19T21:21:31.163Z", "selfUri": "/api/v2/users/xxxxx/presences" }

    The presence of Offline and the modified date tells you when they were last logged in, for this user it was May 19, which matches what I see on the Admin>People last login value.


    marcoflps | 2023-01-02 13:37:00 UTC | #3

    exactly what i need Thank you very much


    system | 2023-02-02 13:36:10 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: 17768