How to update the user password to one with double quotes or a backslash

Problem statement: After Changing the user password to one with double quotes, the user is unable to log in afterward.

Solution:

Since double quotes have special meaning in scripting, we need to add an escape character \ in front of it.

For example, if we want to update the user password to “Test”123”, we need to call the update user endpoint with the following body script:

{
"password":"Test\"123"
}

This is the same for backslash (). The password “Test\123” needs to be scripted as “Test\123”.

Reference: