web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Is there a way within CRM 2011 to view logged in users

(0) ShareShare
ReportReport
Posted on by 1,540

In CRM 2011 is there a way to view user's log in information?

  • Are they currently logged in?
  • When was the last time they logged in?
  • Login counts or frequency?

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    alf Profile Picture
    17,915 on at
    Re: Is there a way within CRM 2011 to view logged in users

    Hi Pat,

    CRM 2011 with UR 5 adds the ability to audit user logins.

    community.dynamics.com/.../crm-2011-update-rollup-5.aspx

  • Pat Buskey Profile Picture
    1,540 on at
    Re: Is there a way within CRM 2011 to view logged in users

    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?

  • Mohammad Atif Profile Picture
    on at
    Re: Is there a way within CRM 2011 to view logged in users

    community.dynamics.com/.../crm-2011-auditing-best-practices.aspx

    By Alex:-)

  • Suggested answer
    Jamie Miley Profile Picture
    2,060 on at
    Re: Is there a way within CRM 2011 to view logged in users

    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);
    
    
  • Jamie Miley Profile Picture
    2,060 on at
    Re: Is there a way within CRM 2011 to view logged in users

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans