Changing usernamesΒΆ

The changeUsername action allows editing the name of a user account. It requires an additional field:

json

An array of user groups each containing the existing name of user, the new user name to be set. Alternatively, the user_id can be used instead of the oldname field.

Expected JSON object:

{
 "changeUsername":
     {
         "user_id":"14",
         "newname":"OpSCT"
     }
}

Field

Description

user_id

The user ID of the account to be changed

oldname

An alternative to user ID, and contains the current name of the user

newname

Contains the name to which you wish to change this user

JSON object returned:

{
 "data":
     {
         "message": "User myUser successfully renamed to OpSCT"
     }
}

Field

Description

data

An array of responses for each preference change updated or attempted

message

Contains either a statement of success or an error explaining why the name change failed

Example API call:

curl --location --insecure --request POST '{{scrutinizer}}/fcgi/scrut_fcgi.fcgi' \
 --form 'authToken={{authToken}}' \
 --form 'rm=user_api' \
 --form 'action=changeUsername' \
 --form 'json=
 {
     "changeUsername":
         {
             "oldname":"myUser",
             "newname":"OpSCT"
         }
 }'