So currently there are 2 user with similar id (one without space, other with space) in their ID. So I want to delete the user(other with space) but when I run the Delete Curl command it's not recognizing the userid (with space) in the curl command
None of the links posted work. However, you can remove any existing user by clicking "X" on the right of the relevant user's name. It will ask you for the confirmation to remove the user. Source
One thought I have that wasn't offered yet would be to execute the CURL statement fails then download the server log from the "Admin" menu in the user interface. The Catalina logs are quite robust and may point you to the solution. I hope that helps!
I like to mention that I am trying it in clustered environment so the " User Configuration " tab is generally not present.
If I understood you correct your mentioned approach is only possible when I can go through the “User configuration”.
Please let me know if there is any way to do it in clustered environment.