Get Last Login for Users

This XrmToolBox tool allows you to view and export the last User Access audit entry for all users in the environment or User Access audit entries within the predefined date range for the selected user (developed by Ahmed Sellou).

In out-of-the-box Audit Summary View, it is not possible to filter the user access for a particular user or export the audit log entries as an Excel file. Because of that, it is hard to generate the reports such as "Last User Access Timestamp for All Users", "User Access Audit Entries for User ABC", etc.
With this tool, you can retrieve the last User Access audit entry for all users or User Access audit entries for a selected user from the audit data and export them into Excel.

The tool can only retrieve the login history from the user access audit data, so make sure to enable auditing "Start Auditing" and enable user access log "Log access" at (Power Platform Admin Center > select environment > Settings > Audit and logs > Audit settings).
  • Tool Information
  • Functionalities
    • Retrieve the last User Access audit entry for all users (Fig. 1, Pt. 1)
    • Retrieve User Access audit entries for the selected user
      • Select the user for which you need to query the User Access audit (Fig. 2, Pt. 1)
      • Apply the date filter for the query if required (Fig. 2, Pt. 2)
        • Set the date range to filter in the query (Fig. 2, Pt. 3)
        • Query the User Access audit entries for the selected user within the selected date range (Fig. 2, Pt. 4)
    • Additionally, the tool can
      • Retrieve the list of all security roles assigned to the user (Fig. 3, Pt. 1)
      • Export the results to Excel (Fig. 1, Pt. 2)
  • Similar Tools
    • User Audit Viewer

Fig. 1 - Last User Access Audit Log for All Users


Fig. 2 - User Access Logs for Selected User



Fig. 3 - Security Roles of Selected User










This is part of the #TooLDR series where I test and review the tools for Power Platform. You can check out the information for the other tools on this page.

Comments

Popular Posts