query UserById($id: ID!) {
userById(id: $id) {
createdAt
email
firstName
id
image
lastLoggedIn
}
}{
"id": "id"
}{
"data": {
"userById": {
"createdAt": "value",
"email": "string",
"firstName": "string",
"id": "id",
"image": "string",
"lastLoggedIn": "value"
}
}
}userById
Gets a user of the current tenant by global id.
userById(id: ID!): UserV2!Arguments
Global id of the user (UserV2.id).
Returns
The user's own settings in one app's namespace within the current tenant. Only readable by that user.
When the user was added.
Email address of the user.
First name of the user.
Global id of the user. userById and the user mutations take it. TenantUser.userId holds the raw UUID.
URL of the user's profile picture. Null if there is none.
When the user last signed in. Null if they never have.
Last name of the user.
Permissions the user has in the current tenant, from their roles and granted directly.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Roles the user has in the current tenant.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Whether the user has signed in to the current tenant yet. See UserInTenantStatus.
query UserById($id: ID!) {
userById(id: $id) {
createdAt
email
firstName
id
image
lastLoggedIn
}
}{
"id": "id"
}{
"data": {
"userById": {
"createdAt": "value",
"email": "string",
"firstName": "string",
"id": "id",
"image": "string",
"lastLoggedIn": "value"
}
}
}Was this page helpful?