• Jing He
  • NEWBIE
  • 5 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
I need to get a list of all users who are currently logged into my org.

This idea (https://success.salesforce.com/ideaView?id=08730000000BpPOAA0) explains that, as of a few months ago, this is possible. It explains where to find this information via the browser (Setup | Security Controls | Session Management), and also says that it's available through the API. Can anyone point me to documentation that explains how to get it via the API?

Thanks!

Hi,

 

I am accessing Login History Object using CuRL to API v27.0.  curl https://na15.salesforce.com/services/data/v20.0/sobjects/LoginHistory -H 'Authorization: Bearer access_token' -H "X-PrettyPrint:1". I was hoping to get all the fields as I would get  by downloading Excel sheet by going to Manage Users | Login History.

 

But the API call could yield only USERID as opposed to USERNAME as I would get by downloading Excel Sheet.

 

1) Is this a limitation of API or am I missing anything??

2) Is there a way to map USERID -> USERNAME ??

 

Any help would be appreciated.