This mutation allows Enterprise Admins to disable users within their Enterprise.
Query
disableUser(name:”email address”)
Disables the defined user based on the email address provided. Query can only be run by an Enterprise Administrator.
Argument | Type | Description |
---|---|---|
name | String! |
The email address of the user to disable. |
Example
Disabling a user from an Enterprise.
This example disabled a user from the enterprise based on their associated email address.
mutation {
disableUser(name: "[email protected]") {
firstName
lastName
}
}
{
"data": {
"disableUser": {
"firstName": "AlphaBetaCharlie",
"lastName": "EplisonFoxtrotGamma"
}
}
}