• SF-NewBie
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 7
    Replies

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. 

Is there an object for SetupAuditTrail that could be accessed via API?? or is the manual download through Your Name > Setup > Security Controls > View Setup Audit Trail the only option ??

 

Any help would be appreciated. 

Now that LoginHistory object is exposed via API I was trying that out and I am running into a problem related to Auth. I am using REST API as per instr given at http://www.salesforce.com/us/developer/docs/api_rest/index_Left.htm#StartTopic=Content/quickstart.ht...

 

I am able to do everything for the Account object as listed in there but when I try to access access LoginHistory object, it throws up an error that the resource does not exsist. I have given FULL scope for the connected app I created.

 

The command I am using is  curl https://na15.salesforce.com/services/data/v20.0/sobjects/LoginHistory -H 'Authorization: Bearer access_token' -H "X-PrettyPrint:1" with access_token replaced with the my own access_token/session id. I am getting the following response, 

 

{
"message" : "The requested resource does not exist",
"errorCode" : "NOT_FOUND"
}

 

PS: I am using a developer edition account 

 

Any inputs?

Is there an object for SetupAuditTrail that could be accessed via API?? or is the manual download through Your Name > Setup > Security Controls > View Setup Audit Trail the only option ??

 

Any help would be appreciated. 

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. 

Now that LoginHistory object is exposed via API I was trying that out and I am running into a problem related to Auth. I am using REST API as per instr given at http://www.salesforce.com/us/developer/docs/api_rest/index_Left.htm#StartTopic=Content/quickstart.ht...

 

I am able to do everything for the Account object as listed in there but when I try to access access LoginHistory object, it throws up an error that the resource does not exsist. I have given FULL scope for the connected app I created.

 

The command I am using is  curl https://na15.salesforce.com/services/data/v20.0/sobjects/LoginHistory -H 'Authorization: Bearer access_token' -H "X-PrettyPrint:1" with access_token replaced with the my own access_token/session id. I am getting the following response, 

 

{
"message" : "The requested resource does not exist",
"errorCode" : "NOT_FOUND"
}

 

PS: I am using a developer edition account 

 

Any inputs?

Hi ,

Is there any PDf that i can refer to , to create my webservice in salesforce.?

Also Im not able to setup my OAuth, when i go to Develop > Remote Access , it says "Remote access objects have been moved to applicaion.You'll be redirected to teh page in five seconds, or you can click Tke me there to go now".

Please Help.

Hi,

A year ago, I know it wasn't possible to access the login history via the API.

With new releases is this possible now?

If not, is there any automated approach to get it daily?

THanks!

  • February 03, 2005
  • Like
  • 0