Deleting usersΒΆ

The delUser action allows the deletion of user accounts within Plixer Scrutinizer by ID or name. There is an additional field used with the action:

json

An array of users where each contains the name, password, and group template that user will be a member of.

Expected JSON object:

{
 "delUsers":[
         11,
         "MyGuest",
         207
 ]
}

Field

Description

delUsers

An array of all users to be deleted. You can delete multiple users at once. If only one user is needed, this will be an array of one.

id/name

The user_id of the user to be deleted. Alternatively, the name of the user can be used.

JSON object returned:

{
 "data":[
     "Deleting user id 11 (1 matched)",
     "Deleting user named 'MyGuest' (1 matched)"
     "Deleting user id 207 (0 matched)",
 ]
}

Field

Description

data

An array of responses for each user account that Plixer Scrutinizer attempted to delete. The example includes a failure message when a user did not exist.

Example API call:

curl --location --insecure --request POST '{{scrutinizer}}/fcgi/scrut_fcgi.fcgi' \
 --form 'authToken={{authToken}}' \
 --form 'rm=user_api' \
 --form 'action=delUsers' \
 --form 'json=
 {
     "delUsers":[
         11,
         "MyGuest",
         207
     ]
 }'