function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
testtaroutesttarou 

How to get current user's info with REST API

I want to get current user's info with REST API.

 

However,I can not find it in Salesforce's document for REST API

Ideal -> 'https://na12.salesforce.com/services/data/v24.0/user/me'

In addition,if you know a structure for REST API or its document,Please tell me it.

 

ChrisOctagonChrisOctagon

The Chatter REST API docs are here: http://www.salesforce.com/us/developer/docs/chatterapi/index.htm

 

Under "Reference" -> "Chatter API Resources" -> "Users Resources" -> "User Profile Information" there is the information you're looking for. The URL to GET the current user's info would be:

 

/services/data/v24.0/chatter/users/me