Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Is it possible to show a user when logging in his last login date and time?

Posted on by Microsoft Employee

Hi,

Is it possible to show a user when logging in his last login date and time?

We have a business requirement to show each user when they login to Dynamics 365 on premise information about their last login (date and time). Can this be done in Dynamics 365 8.2 in a supported way? If not, can it be done in a unsupported way?

Thank you very much for your help. Cheers,

Stéphane

*This post is locked for comments

  • Suggested answer
    Nishant Rana Profile Picture
    Nishant Rana 55 Microsoft Employee on at
    RE: Is it possible to show a user when logging in his last login date and time?

    We had the similar requirements

    This should help

    nishantrana.me/.../

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to show a user when logging in his last login date and time?

    Hi Kokulan,

    Thank you so much for taking the time to answer and send me those screenshots as well. Please see my answer to Goutam above. I would like each user to see their report immediately upon login to Dynamics without any manipulation on their part. I also want to make sure that they are unable to see other users logs for security reasons. I'm affraid that XRM toolbox would be too complicated for our users. I've been able to access the audit logs as an administrator but I'm affraid that adding these permissions to other security roles will allow them to see all the logs and not just their own... correct me if I'm wrong.

    Thanks again for your detailed answer!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to show a user when logging in his last login date and time?

    Hi Goutam, thanks for taking the time to respond to my question. This is really helpful and I was aware of Audit functionality although I don't have much experience using it.

    The goal for the new functionality is to make the system more secure. The ideal solution is that the user logs in and then immediately sees only his own last login information (date and time) so he may detect suspisious activity. Now if the user can access this information not immediately but by some other means like clicking somewhere after logging in, this could potentially meet our requirements.

    Is it possible to display the information immediately upon login?

    And can we enfore security roles so that a user can only see his own audit logs/records and not everyone else's?

    Thanks Goutam

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Is it possible to show a user when logging in his last login date and time?

    Hi

    I think the first question is where and how you want to see this report really.

    Once you enabled User Access auditing, CRM will audit when the user logs in

    ScreenClip-_5B00_596_5D00_.png

    You can use the out of the box Audit Summary View with filters to monitor

    ScreenClip-_5B00_596_5D00_.png

    https://community.dynamics.com/365/b/dynamics365enterprisecloudfronts/archive/2019/01/24/audit-user-access-in-d365

    You can create SSRS report and display the last login for each user or even have filters on the report to filter to only users you care about

    https://www.concurrency.com/blog/march-2016/creating-an-audit-report-for-user-logins-in-dynami

    You could also consider using  XrmToolBox plugins such as Audit Center, Audit Explorer, and Audit History Extractor

    ScreenClip-_5B00_568_5D00_-_2800_1_2900_.png

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Is it possible to show a user when logging in his last login date and time?

    Hi ,

    The supported way I believe you are aware about user audit user access.

    blogs.msdn.microsoft.com/.../dynamics-crm-audit-user-access-data

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans