Skip to main content
13-Aquamarine
November 5, 2018
Solved

Can't delete some users as Administrator

  • November 5, 2018
  • 1 reply
  • 3395 views

I was testing a service I wrote to allow users to create users using the CloneUserWithGroups() API.  When testing, I created a couple users while logged in as the Administrator.  That part worked fine.  My issue is: ThingWorx won't allow me to delete those users!!??

 

ThingWorx returned a Delete Failure error message saying, "Editable System Objects Cannot Be Deleted."

 

I've removed those users from the groups the Administrator is in, but I'm still getting the same error message.

 

 

Best answer by posipova

Alright, just looked into the details of the one I reproduced.

Because you clone an Administrator user, it writes it as a systemobject (cloning all aspects).

I exported the user entity in xml format and manually edited the 

aspect,isEditableSystemObject="false" (was set to true originally post creation)

Save the xml, import it back into the system-  now you can delete your user.

1 reply

Support
November 5, 2018

Hi @Timo697.

 

Can you provide a screenshot of what you're attempting to delete?  Based on the error message you're getting, it sounds as if you are deleting system objects instead of the users you created.

 

Regards.

 

--Sharon

Timo69713-AquamarineAuthor
13-Aquamarine
November 5, 2018

Delete1.jpgDelete2.jpg

Support
November 5, 2018

Hi @Timo697.

 

Can you switch to old composer and see if you get the same behavior?

 

Regards.

 

--Sharon