Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

how to fetch user login detail

(0) ShareShare
ReportReport
Posted on by 129

how to check user login detail

I want to fetch the login hours(sum) using user to and from date, it this possible to write a job for this? what should be the line of code in X++ and relation?

Regards

Ayusri

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: how to fetch user login detail

    Hi Aayushii, You can check onlineTime, onlineTimeHours method in SysUserLog Table. You can fetch it by using userId, createdDateTime, logoutDateTime and re-using the logic written in the specified methods in your code.

    Andre: This thread is related to the below thread

    community.dynamics.com/.../how-to-check-user-login-detail

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,162 Super User 2025 Season 1 on at
    RE: how to fetch user login detail

    Hi Ayusri,

    Can you elaborate on the exact requirement? Do you need information about current active users or historical information? You can find information in the SysUserLog table. If a session is still active, there is no online time available yet.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans