Informational
GET
users/@me
Note: This endpoint is deprecated and will be removed soon. Please use User Info instead of this endpoint.
Get the profile information of an authorizing end user in a three-legged context.
Resource Information
Method and URI | GET https://developer.api.autodesk.com/userprofile/v1/users/@me |
Authentication Context | user context required |
Required OAuth Scopes | none |
Data Format | JSON |
Rate Limit | 500 calls per minute |
Request
Headers
Authorization* string | Must be Bearer <token> , where <token> is obtained via a
three-legged OAuth flow. |
* Required
Response
HTTP Status Code Summary
200 OK | Successful request; user profile returned. |
401 Unauthorized | The access token is invalid. |
429 Too Many Requests | Rate limit exceeded; wait some time before retrying. |
500 Internal Server Error | Generic internal server error. |
Response
Body Structure (200)
userId string | The backend user ID of the profile |
userName string | The username chosen by the user |
emailId string: email | The user’s email address |
firstName string | The user’s first name |
lastName string | The user’s last name |
emailVerified bool | true if the user’s email address has been verifiedfalse if the user’s email address has not been verified |
2FaEnabled bool | true if the user has enabled two-factor authenticationfalse if the user has not enabled two-factor authentication |
countryCode enum: string | The 2-letter ISO 3166-1 country code; set automatically when the user creates an account. |
language enum: string | The language set by the user. Supported languages: cs (Czech), de (German), en (English), es (Spanish), fr (French), hu (Hungarian), it (Italian), pl (Polish), pt_BR (Brazilian Portugese), ru (Russian), jp (Japanese), zh_CN (Simplified Chinese), zh_CW (Traditional Chinese), ko (Korean). The value for unsupported languages is en (English). |
optin bool | true if the user’s account is set to receive marketing emails from Autodeskfalse if the user’s account is set not to receive marketing emails from Autodesk |
lastModified datetime: ISO 8601 | The timestamp of the last time the user’s profile was modified, in the following format: YYYY-MM-DDThh:mm:ss.ss . |
profileImages object | A flat JSON object of attribute-value pairs in which the attributes specify available profile image sizes in the format
sizeX<pixels> (where <pixels> is an integer that represents both height and width in pixels of square profile images)
and the values are URLs for downloading the images via HTTP
|
websiteUrl string | Website URL of the user |
LdapInfo object | The object contains two fields:
LdapEnabled: the flag that indicates if the user is a LDAP user. DomainName: the domain name of Ldap when LdapEnabled is true or else null. |
SocialUserInfoList array[SocialUserInfo] | The values of provider name, provider identifier and social user identifier are returned only for a social user. Otherwise, it returns an empty body. |
TwoFactorAuthType enum: string | Authentication type for 2FA.
Supported values: -
None : if user has not set any authentication type.-
Phone : if user’s 2FA type is set as phone.-
Authenticator : if user’s 2FA type is set as authenticator app. |
ContactMode enum: string | The mode of contact for two-factor authentication.
Supported values: -
None : if user has not set any mode.-
Sms : if user’s 2FA mode is set as SMS.-
Call : if user’s 2FA mode is set as call.-
Email : if user’s 2FA mode is set as email. |
createdDate datetime: ISO 8601 | The timestamp of the date of creation of the user account, in the following format: YYYY-MM-DDThh:mm:ss.sss . |
userProfessionalInfo object | Professional Information of the user. The object contains two fields:
-
Industry : Refers to the Industry Name of the user. Examples: Architecture & Construction, Engineering.-
IndustryCode : Refers to the Industry code of the user’s Industry Name. |
lastLoginDate datetime: ISO 8601 | The timestamp of the last logged in status, in the following format: YYYY-MM-DDThh:mm:ss.ss . |
eidmGuid string | EIDMGUID is an attribute set presented in a form of numerical strings. It is used to determine user accounts. |
Example
Successful profile retrieval (200).
Request
curl -v 'https://developer.api.autodesk.com/userprofile/v1/users/@me' \
-X 'GET' \
-H 'Authorization: Bearer 4viS1MuwMU0X4XVpMyISPb2cla2q' \
Response
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, no-store
Content-Type: application/json;charset=UTF-8
Date: Sat, 04 Jun 2016 18:59:25 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
max-age: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: Apigee Router
Set-Cookie: PF=ix2tNCKRRb9WwM6dO78Eic;Path=/;Secure;HttpOnly
Set-Cookie: bbbbbbbbbbbbbbb=KINDJALIIFLMNIHHAHLBPHPKNNFLHCIPDCKLJALMEDMDNIALGOKPFOLFNOOAMPMFBDMCGBOHPPEMLJGGECNMBMGBNKFOGINKCPLEAEJBFNDJEPHGCJPAJLKPNMLDEJEN; HttpOnly; secure
X-Frame-Options: SAMEORIGIN
Content-Length: 89
Connection: keep-alive
{
"userId": "USER123A",
"userName": "oxygenuser",
"emailId": "oxygenuser@mailinator.com",
"firstName": "Oxygen",
"lastName": "User",
"emailVerified": "true",
"2FaEnabled": "false",
"countryCode": "US",
"language": "en",
"optin": false,
"lastModified": "2015-04-09T08:52:38.95",
"profileImages": {
"sizeX20": "https://s3.amazonaws.com:443/com.autodesk.storage.public.dev/oxygen/USER123A/profilepictures/x20.jpg?r=634721497217628404",
"sizeX40": "https://s3.amazonaws.com:443/com.autodesk.storage.public.dev/oxygen/USER123A/profilepictures/x40.jpg?r=634721497217628404",
"sizeX50": "https://s3.amazonaws.com:443/com.autodesk.storage.public.dev/oxygen/USER123A/profilepictures/x50.jpg?r=634721497217628404",
"sizeX58": "https://s3.amazonaws.com:443/com.autodesk.storage.public.dev/oxygen/USER123A/profilepictures/x58.jpg?r=634721497217628404",
"sizeX80": "https://s3.amazonaws.com:443/com.autodesk.storage.public.dev/oxygen/USER123A/profilepictures/x80.jpg?r=634721497217628404",
"sizeX120": "https://s3.amazonaws.com:443/com.autodesk.storage.public.dev/oxygen/USER123A/profilepictures/x120.jpg?r=634721497217628404",
"sizeX160": "https://s3.amazonaws.com:443/com.autodesk.storage.public.dev/oxygen/USER123A/profilepictures/x160.jpg?r=634721497217628404",
"sizeX176": "https://s3.amazonaws.com:443/com.autodesk.storage.public.dev/oxygen/USER123A/profilepictures/x176.jpg?r=634721497217628404",
"sizeX240": "https://s3.amazonaws.com:443/com.autodesk.storage.public.dev/oxygen/USER123A/profilepictures/x240.jpg?r=634721497217628404",
"sizeX360": "https://s3.amazonaws.com:443/com.autodesk.storage.public.dev/oxygen/USER123A/profilepictures/x360.jpg?r=634721497217628404"
},
"websiteUrl": "http://myprofile.autodesk.com"
"ldapInfo": {
"ldapEnabled": true,
"domainName": "adsk"
},
"socialUserInfoList": [],
"twoFactorAuthType": "Authenticator",
"contactMode": "None",
"createdDate": "2020-10-13T07:28:44",
"userProfessionalInfo": {
"industry": "Buildings",
"industryCode": "ACSPBuildings"
},
"lastLoginDate": "2021-09-23T01:31:56.620252Z",
"eidmGuid": "XDSZRN83EQQA"
}
Show More