Skip to main content
7-Bedrock
November 27, 2024
Solved

Old user groups are not removed from the organization after deployment.

  • November 27, 2024
  • 1 reply
  • 580 views

I am trying to import the organization from the Dev system to the Q system, but the old user groups are not being removed from the organization unit. Additionally, I cannot edit them in the Q system because they are in an extension format."

 

I am facing the same issue mentioned in the article: Article - CS327733 - Organizations imported in ThingWorx Platform are not overridden correctly

 

I want to remove the old user groups from the organization unit in the QA system.

Is there any way to do this?

 

Thanks & Regards

Suraj

Best answer by Constantine

Hello,

The fact that old groups stay is not a bug, but a feature. Try to remove them programmatically:

Organizations["MyOrganization"].DeleteOrganizationalUnit({
	deleteChildren: true,
	name: 'MyOrgUnit'
});

or if it doesn't work, then you'd need to import a new version of the extension, where those org units are not there anymore.

/ Constantine

1 reply

18-Opal
November 27, 2024

Hello,

The fact that old groups stay is not a bug, but a feature. Try to remove them programmatically:

Organizations["MyOrganization"].DeleteOrganizationalUnit({
	deleteChildren: true,
	name: 'MyOrgUnit'
});

or if it doesn't work, then you'd need to import a new version of the extension, where those org units are not there anymore.

/ Constantine