Disabling the only Admin user of a Project through REST API V1 "PUT /rest/user" succeeds with HTTP 200 response although no change is done in Codebeamer
Applies To
- Codebeamer 9.x to 2.1
Description
- When disabling the only Project Administrator for a project through System Admin > User Accounts menu, Codebeamer will show the message User [<userId>] <user name> cannot be disabled as he or she is the only Project Admin in the following project(s): <project id ><project name>:
- When performing the same operation through REST API V1 PUT /rest/user with a JSON payload similar to the below:
-
{ "uri" : "/user/1", "status" : "Disabled" }
-
- The request will appear to succeed (Codebeamer will return HTTP 200 status response):
- Yet, the user won't be disabled: