Get User
On this page
GraphQL endpoint: /user
Fetches a user profile by id. Each profile field is filtered by the owner's visibility settings and the relationship between the viewer and the user; the owner always sees all of their own fields.
Query
query ($id: ID!) {
user(id: $id) {
id
username
firstName
middleName
lastName
birthdate
aboutMe
timezone
metadata
secretStorage
addresses {
city
country
state
street
types
zipCode
visibility
}
emails {
email
types
visibility
}
telephoneNumbers {
number
types
visibility
}
socialNetworks {
type
url
visibility
}
webpages {
type
url
visibility
}
interests {
description
title
}
nameVisibility
aboutMeVisibility
birthdateVisibility
interestsVisibility
timezoneVisibility
metadataVisibility
}
}
Variables
{
"id": "00000000-0000-4000-8000-000000000001"
}
Response
{
"data": {
"user": {
"aboutMe": "this is my generic intro",
"aboutMeVisibility": [
"PUBLIC"
],
"addresses": [
{
"city": "test city",
"country": "United States",
"state": "Alabama",
"street": "test street 1",
"types": [
"HOME"
],
"visibility": [
"PUBLIC"
],
"zipCode": "12345"
}
],
"birthdate": "1990-01-15",
"birthdateVisibility": [
"PUBLIC"
],
"emails": [
{
"email": "test2@email.com",
"types": [
"OTHER"
],
"visibility": [
"PUBLIC"
]
}
],
"firstName": "1john",
"id": "00000000-0000-4000-8000-000000000001",
"interests": [
{
"description": null,
"title": "Interest 3"
}
],
"interestsVisibility": [
"PUBLIC"
],
"lastName": "2doe",
"metadata": {
"test": "value"
},
"metadataVisibility": [
"PUBLIC"
],
"middleName": "ray",
"nameVisibility": [
"PUBLIC"
],
"secretStorage": {},
"socialNetworks": [
{
"type": "FACEBOOK",
"url": "https://test-sm4.not",
"visibility": [
"PUBLIC"
]
}
],
"telephoneNumbers": [
{
"number": "5",
"types": [
"OTHER"
],
"visibility": [
"PUBLIC"
]
}
],
"timezone": "UTC",
"timezoneVisibility": [
"PUBLIC"
],
"username": "username6",
"webpages": [
{
"type": "WEBPAGE",
"url": "https://test-webpage7.not",
"visibility": [
"PUBLIC"
]
}
]
}
}
}