Why do you need to know last login Date?
CRM uses Active Directory authentication. So if user left the company, user will be removed from Active Directory but in CRM, it is still an active user unless you have some automation running behind the scene to disable the user in CRM. Active User means he is using CRM license and hence unnecessary cost. Another scenario could be he is not using CRM at all. So one solution to above issue could be to identify when the user last logged in to CRM. If last login date is not in last certain number of days, you can disable the user.
How can I find the last access date and time for a User?
Well, there are various ways to find out.
Dynamics CRM 2016 or lower On Premise:
You can execute be...