updateUser
Update a user's GitHub username or email address
updateUser(
input: UpdateUserInput
): UpdateUserPayload!
Example
- Query
- Variables
- Response
mutation ($input: UpdateUserInput) {
updateUser(input: $input) {
user {
auth0Id
authMethod
displayName
emailAddress
githubUsername
id
isConsideredInactive
isEmailLegacyUnverified
isEmailVerified
isVIP
isVipAuthUser
lastSeenAt
samlIdentityProviderName
samlNameId
samlOrganizationId
trackingUserId
vipAuthId
wpcomUsername
}
}
}
{
"input": {
"displayName": "displayName",
"emailAddress": "emailAddress",
"githubUsername": "example-user",
"userId": 42
}
}
{
"data": {
"updateUser": {
"user": {
"auth0Id": "auth0Id",
"authMethod": "authMethod",
"displayName": "displayName",
"emailAddress": "emailAddress",
"githubUsername": "example-user",
"id": 42,
"isConsideredInactive": true,
"isEmailLegacyUnverified": true,
"isEmailVerified": true,
"isVIP": true,
"isVipAuthUser": true,
"lastSeenAt": "2024-01-15T00:00:00.000Z",
"samlIdentityProviderName": "samlIdentityProviderName",
"samlNameId": "samlNameId",
"samlOrganizationId": 42,
"trackingUserId": "trackingUserId",
"vipAuthId": "vipAuthId",
"wpcomUsername": "wpcomUsername"
}
}
}
}
Arguments
updateUser.input ● UpdateUserInput input common
The user changes to apply.
Type
UpdateUserPayload object common
The result of updating a user.