Skip to main content
15-Moonstone
March 18, 2021
Question

How to delete NON editable users / undefined users via service ?

  • March 18, 2021
  • 1 reply
  • 1484 views

Hi, 

I was working on user creation script. few users has been created by non editable mode. I am able to see those users via GetAllEntities() not in composer,

Also, i found a way to see users in composer by creating one service to add users in particular usergroup after adding them I am able to see added(non editable) users in that usergroup.

In Usergroup if i click and delete user nothing happens,if I try to change property I get you can't delete non editable users.

Now I added 10+ undefined users in that group. Now, I need to remove the users from my instance.. I tried via deleteuser service but users are not deleted and still I am able to see them via GetAllEntities()...

1 reply

Community Manager
March 18, 2021

Hi @sabharees.

 

It sounds like something is missing from your script used for creating the users.  Can you provide that so we can take a better look?  Also, what version of ThingWorx are you running?

 

Have you checked the logs located at \ThingworxStorage\logs for clues?

 

Regards.

 

--Sharon

sabharees15-MoonstoneAuthor
15-Moonstone
March 18, 2021

Hi,

 

I am using .. ThingWorx 8.5.4,

 

yes, as you said I missed fieldvalues at the execution of the service but later I figured the cause of issue and corrected my code. Now, user creation is working fine but I am not able to delete previously created users(non editable).