User.UserData.LastAccessedDate relecting user creation date?

Options

https://docs.valence.desire2learn.com/res/user.html#User.UserData

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…

Thanks!

Tagged:

Answers

  • Sreelakshmi.N.546
    Sreelakshmi.N.546 Posts: 80
    edited August 2023
    Options

    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

    https://community.d2l.com/brightspace/kb/articles/4740-users-data-sets

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

    Thank you,
    Sreelakshmi

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

    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

  • Sreelakshmi.N.546
    Options

    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

    https://community.d2l.com/brightspace/kb/articles/4740-users-data-sets

    Thanks,

    Sreelakshmi