Skip to main content

Get information about a single user

You can call the API to get information about a single user within your project.

Identification information is also available on your Dashboard > Data > Users.

Prerequisites

You need a project access token to call the query. You can also use a user access token without specifying the user ID, which returns information about the current user.

Guide​

  1. Call the user query.
  2. Add the user ID.
  3. Add all information you'd like to review. The sample query returns the number of account memberships and cards, as well as the user's identity information and mobile number.
  4. Add pagination if you want to narrow the results.

Query​

🔎 Open the query in API Explorer

query InfoOneUser {
user(id: "$YOUR_USER_ID") {
accountMemberships {
edges {
node {
id
statusInfo {
status
}
cards {
totalCount
}
}
}
totalCount
}
mobilePhoneNumber
identificationLevels {
PVID
QES
expert
}
identifications {
totalCount
}
}
}

Payload​

The payload shows that this user has a single identification: a true Expert identification level. They don't have any account memberships or cards.

{
"data": {
"user": {
"accountMemberships": {
"edges": [],
"totalCount": 0
},
"mobilePhoneNumber": "+33600000000",
"identificationLevels": {
"PVID": false,
"QES": false,
"expert": true
},
"identifications": {
"totalCount": 1
}
}
}
}