Disable user
Disables the given User identified by username. This method is idempotent i.e. if the user is already disabled then no action will be taken.
PUT
/rest/api/admin/user/{username}/disablePath parameters
usernamestringrequiredthe username identifying the given user
Responses
204
returns no content if the user is disabled
401
The calling user is not authenticated or does not have the <b>LICENSED</b> permission.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring403
The calling user does not have permission to perform this action.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring404
No User exists for the provided username.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring