userProfile
Note
Required Custom Scope: profapi:core-std-profile:read or profapi:core-all-profile:read.
See Custom Scopes for details on scope differences and field-level access.
Fetches the User Profile information with User ID or Email ID. Email ID is used only if User ID is not provided.
Template for Query:
query GetUserProfile($filter: UserProfileInput!) {
userProfile(filter: $filter) {
# UserProfile Fields
}
}
Template for Query Variables:
{
"filter": {
"id": "<USER_ID>"
}
}
Optional UserProfileInput fields (for example, emailId, isCheckEmailDomain) are documented in UserProfileInput.
Arguments
| filter* | Filter to fetch the core profile for the given user. |
* Required
Possible Returns
| Value Type | Description |
|---|---|
| UserProfile | Represents the user profile. |
Examples
Example 1
Fetches the User Profile information with User ID or Email ID. Email ID is used only if User ID is not provided.
Query:
query GetUserProfile($filter: UserProfileInput!) {
userProfile(filter: $filter) {
profileImages {
isImagePresent
userThumbnails {
sizeX120
}
}
personalInfo {
aboutMe
primaryEmail
language
countryCode
ldapInfo {
isLdapEnabled
}
basicInfo {
firstName
lastName
screenName
}
webLinks {
linkedInProfile
blog
website
}
contactInfo {
phones {
category
countryCode
number
extension
}
address {
addressLine1
addressLine2
city
stateProvince
postalCode
country
}
alternateEmail
}
professionalInfo {
jobTitle
industry
industryCode
company {
companyName
}
additionalProfessionalInfo {
roleId
roleLastModified
industryTaxonomyIds {
industryGroupId
segmentId
subSegmentId
}
industryLastModified
}
}
}
}
}
Show More
Query Variables:
{
"filter": {
"id": "<USER_ID>"
}
}
Response:
{
"data": {
"userProfile": {
"profileImages": {
"isImagePresent": false,
"userThumbnails": {
"sizeX120": "https://images.profile-stg.autodesk.com/default/user_X120.png"
}
},
"personalInfo": {
"aboutMe": "This is profile staging account.",
"primaryEmail": "profile.stg1@ssttest.net",
"language": "en",
"countryCode": "US",
"ldapInfo": {
"isLdapEnabled": false
},
"basicInfo": {
"firstName": "Profile",
"lastName": "Staging",
"screenName": ""
},
"webLinks": {
"linkedInProfile": "https://www.linkedin.com/in/profilestaging",
"blog": "http://www.autodesk.com/blogs",
"website": "http://www.autodesk.com"
},
"contactInfo": {
"phones": [
{
"category": "0",
"countryCode": "91",
"number": "9916187425",
"extension": "001"
}
],
"address": {
"addressLine1": "1 Market Street",
"addressLine2": "",
"city": "San Francisco",
"stateProvince": "CA",
"postalCode": "94585",
"country": "US"
},
"alternateEmail": "profilestaging@gmail.com"
},
"professionalInfo": {
"jobTitle": "Software QA Bot",
"industry": "",
"industryCode": "",
"company": {
"companyName": "Autodesk Inc"
},
"additionalProfessionalInfo": {
"roleId": "",
"roleLastModified": "2024-02-20T17:52:37.379Z",
"industryTaxonomyIds": [],
"industryLastModified": null
}
}
}
}
}
}
Show More