Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hi Team, I'm trying to disable the active user from codebeamer via REST API as mentioned in codebeamer wiki using
https://codebeamer.com/cb/wiki/117612#section-Update+an+existing+user.
It works when the user is not the only project admin of a project, whereas when the user is only project admin of a project, disabling of such user also shows successful response code 200. I would have expected an error response code from RESTAPI, since it didn't disable the user. Trying the same scenario from Web UI, it shows the below error message. User [10] MME1COB cannot be disabled as he or she is the only Project Admin in the following project(s): [22] BD Test1 Project. Could you please log this as a defect and fix them ?
Solved! Go to Solution.
I found the topic also documented here: https://www.ptc.com/en/support/article/CS413687
Indeed, the current legacy V1 is in maintenance mode. Hopefully, a fully functional behavior will be provided on Swagger V3 in the future.
Implement missing Swagger API to update the user in Codebeamer similar to rest api https://codebeamer.com/cb/wiki/117612#section-Update+an+existing+user.
Note: Currently there is a known bug on this rest api. When the user is only project admin of a project, disabling of such user also shows successful response code 200 but not disabled. In this case it should have reported an error. While implementing the Swagger API please consider this use case.
I found the topic also documented here: https://www.ptc.com/en/support/article/CS413687
Indeed, the current legacy V1 is in maintenance mode. Hopefully, a fully functional behavior will be provided on Swagger V3 in the future.