How to get the last login date and time of a CRM user (MSCRM 2011)

29. March 2011 12:25

In Microsoft Dynamics CRM 2011 you can get the last login time of a CRM user by using the below query: 

SELECT

      AuthInfo, O.FriendlyName, SUO.LastAccessTime

FROM

      SystemUserOrganizations SUO

      LEFT JOIN SystemUserAuthentication SUA ON SUO.UserId = SUA.UserId AND LEFT(AuthInfo, 1)='C'

      LEFT JOIN Organization O ON SUO.OrganizationId=O.Id

WHERE

      LastAccessTime IS NOT NULL

ORDER BY SUO.LastAccessTime DESC

The query outputs the systemuser name, the organisation name and the date and time of the last login:

username@exaple.com OrganisationName 2011-03-23 16:36:13.457

You can finetune the query to your own wishes.

Tags:

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


Result on Demand blog

Welcome to our CRM 2011 blog. As a Microsoft CRM hosting and implementation company, we encounter lots of CRM installation, programming and performane issues. In this blog we share our knowledge and solutions.

Month List


© Resultondemand.nl   Hosting -  Performance -  Upgrade -  Nieuw -  Over ons -  Contact -  CRM 2011 proberen

2AT - Netricity - CRM boeken

Microsoft Partner? Bekijk hier ons partner aanbod