In CRM 2011 is there a way to view user's log in information?
*This post is locked for comments
Hi Pat,
CRM 2011 with UR 5 adds the ability to audit user logins.
community.dynamics.com/.../crm-2011-update-rollup-5.aspx
OK, I've turned on Audit User Access, but how do I see the user access information? Is there an easy way to just see who is currently logged in? Can I get a list of users and the last time they logged in?
community.dynamics.com/.../crm-2011-auditing-best-practices.aspx
By Alex:-)
Basically with the current level of user access logging you can see who has logged in within the last four hours and that is about it. Here is a quick code snippet for you.
RetrieveMultipleRequest rmr = new RetrieveMultipleRequest(); RetrieveMultipleResponse resp = new RetrieveMultipleResponse(); SystemUser wr = new SystemUser(); QueryExpression query = new QueryExpression() { EntityName = "audit", ColumnSet = new ColumnSet(true), Criteria = new FilterExpression { FilterOperator = LogicalOperator.And, Conditions = { new ConditionExpression { AttributeName = "operation", Operator = ConditionOperator.Equal, Values = { 4 } //access }, new ConditionExpression { AttributeName = "objectid", Operator = ConditionOperator.Equal, Values = { "6e219f51-0310-4c4d-8c60-1c524e2ba7b3" } //my user id } // } }, Orders = { new OrderExpression { AttributeName = "createdon", OrderType = OrderType.Descending } } }; rmr.Query = query; resp = (RetrieveMultipleResponse)slos.Execute(rmr);
that will basically give you the last audit entry from a user's last login. For recent logons you would check for createdon in the last four hours.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
HR-09070029-0 2
ED-30091530-0 1