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.
Something on the lines of
curl -XGET 'https://na1.salesforce.com/Userinfo' -H "Authorization: Bearter token"
which would give me the required information
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?