title: Salesforce: Any API for getting user information?
body: <p>I am trying to find a way to get the information about the salesforce enterprise user from his auth_token. I want to find the username, email address and role(admin/user) from the auth-token. </p>
  
  <p>Something on the lines of</p>
  
  <pre><code>curl -XGET 'https://na1.salesforce.com/Userinfo' -H "Authorization: Bearter token"
  </code></pre>
  
  <p>which would give me the required information</p>
  
  <p>I have been looking at the REST API and MetaData API but did not find anything. Preferably I would want this information from a REST API and not some programmatic API. Any help?</p>