Skip to content
Last update: April 11, 2024

changePassword mutation

This mutation changes the password.

Arguments

The InputChangePasswordType! represents the input object for changing a user's password.

Field Description
userId String! The Id of the user for whom the password change is being performed.
oldPassword String! The current or old password associated with the user account.
newPassword String! The new password to set for the user.

Possible returns

Possible return Description
CustomIdentityResultType The outcome of identity-related operations.
1
2
3
4
5
6
7
8
9
mutation changePassword($command: InputChangePasswordType!)  
changePassword(command: $command) {
succeeded
    errors
    {
    code
    description
    }
}
1
2
3
4
5
6
7
{
"command": {
    "userId": "testuserid",
    "newPassword": "Password1",
    "oldPassword": "Password2"
}
}