Salesforce: Any API for getting user information?

Assuming you've done OAuth, the OAuth response includes an id field with an Identity Service URL - e.g.:


GET this URL, passing the access token, and you'll receive the user info. Note the use of -L to follow redirects:

$ curl -L -H 'X-PrettyPrint: 1' -H 'Authorization: Bearer 00D...'
    "username":"[email protected]",
    "display_name":"Sample User",
    "email":"[email protected]",
        "body":"Working on OAuth 2.0 article"

More info on the Identity Service.

There is an actual endpoint for this now as well:

See here for the help document

For Rest API (, we have created one more API to get current authenticate user information. You can find more details at link

Please let me know in case of any other information required.