User.UserData.LastAccessedDate relecting user creation date?

Hi all,

Has anyone else noticed that /d2l/api/lp/(version)/users/(userId) always returns a value for LastAccessedDate, even if the user has never logged in? The above snippet is for a user created late yesterday afternoon via the API, and we know the user has yet to access our Brightpace environment.
I'm wondering if this is by design (I don't think so as the docco states this value can be null), or if we're doing something at create time to cause this, or if this is a bug…




  • Sreelakshmi.N.546
    Sreelakshmi.N.546 Posts: 38
    edited August 3

    Hi Jo,

    Thank you for reaching out to us via Community.

    On checking I can understand that what you see is an expected behavior. This is the data that a user last logged in or, if they have not logged in, its the date they were created. Its called out in the Data Sets documentation

    Should you have any questions or concerns please do not hesitate to contact me directly.

    Thank you,

  • Jo.W.528
    Jo.W.528 Posts: 2 🌱

    Thank you Sreelakshmi :D
    I've always treated DataHub datasets and API data as two separate things - are we safe to x-ref the docco like that?
    If the above it correct, do you know if there's an API route to get their last Brightspace session start time? (ideally for browser or pulse).
    Thanks, Jo

  • Hi Jo,

    Yes the document has the actual information of what the LastAccessedDate refers to.

    As of now we have only this API call that can provide you with the last login date of the users.

    For user session details, I would recommend you to please refer to the User Logins dataset