user
Retrieve a single user by ID or GitHub username.
user(
githubUsername: String
id: Int
): User
Example
- Query
- Variables
- Response
query (
$githubUsername: String
$id: Int
$appId: Int
$organizationId: Int
$organizationId2: Int
$roleId: String
) {
user(githubUsername: $githubUsername, id: $id) {
applicationRoles(appId: $appId, organizationId: $organizationId) {
nextCursor
total
}
auth0Id
authMethod
displayName
emailAddress
emailVerification {
email
expires
status
}
githubUsername
id
isConsideredInactive
isEmailLegacyUnverified
isEmailVerified
isVIP
isVipAuthUser
lastSeenAt
mfaMethods {
configuredMethods
preferredMethod
}
organizationRoles(organizationId: $organizationId2, roleId: $roleId) {
nextCursor
total
}
samlIdentityProviderName
samlNameId
samlOrganizationId
tokens {
active
createdAt
disabledDueToInactivity
environmentIds
exp
expiresAt
id
lastUsedAt
purpose
userId
}
trackingUserId
vipAuthId
wpcomUsername
}
}
{
"githubUsername": "example-user",
"id": 42,
"appId": 42,
"organizationId": 42,
"organizationId2": 42,
"roleId": "roleId"
}
{
"data": {
"user": {
"applicationRoles": {
"nextCursor": "nextCursor",
"total": 42
},
"auth0Id": "auth0Id",
"authMethod": "authMethod",
"displayName": "displayName",
"emailAddress": "emailAddress",
"emailVerification": {
"email": "user@example.com",
"expires": "2024-01-15T00:00:00.000Z",
"status": "CANCELED"
},
"githubUsername": "example-user",
"id": 42,
"isConsideredInactive": true,
"isEmailLegacyUnverified": true,
"isEmailVerified": true,
"isVIP": true,
"isVipAuthUser": true,
"lastSeenAt": "2024-01-15T00:00:00.000Z",
"mfaMethods": {
"configuredMethods": [
"configuredMethods"
],
"preferredMethod": "preferredMethod"
},
"organizationRoles": {
"nextCursor": "nextCursor",
"total": 42
},
"samlIdentityProviderName": "samlIdentityProviderName",
"samlNameId": "samlNameId",
"samlOrganizationId": 42,
"tokens": [
{
"active": true,
"createdAt": "2024-01-15T00:00:00.000Z",
"disabledDueToInactivity": true,
"environmentIds": [
42
],
"exp": 42,
"expiresAt": "2024-01-15T00:00:00.000Z",
"id": 42,
"lastUsedAt": "2024-01-15T00:00:00.000Z",
"purpose": "purpose",
"userId": 42
}
],
"trackingUserId": "trackingUserId",
"vipAuthId": "vipAuthId",
"wpcomUsername": "wpcomUsername"
}
}
}
Arguments
user.githubUsername ● String scalar common
The GitHub username.
user.id ● Int scalar common
The user ID.
Type
User object common
A user in WordPress VIP.