Prevent cockpit users to delete groups with devices

Product/components used and version/fix level:

Cumulocity 1018.0.281

Question related to a free trial, or to a production (customer) instance?

production

Hi all,

if a cockpit user deletes a group, then he gets asked if all child assets shall be deleted too. When he selected to delete child assets, all devices and measurements are deleted. Can we override this behaviour that devices can´t be deleted in cockpit at all?

thx

Helmut

Hi @hgansmueller,

The easiest way would be to remove the Inventory Admin permission from these users so they are not at all able to delete groups/devices.

Another option would be to apply some custom stylesheet which would take care of hiding the checkbox:

c8y-delete-assets-modal .form-group {
  display: none;
}

You could either include this in a custom build of cockpit, a plugin that you install into cockpit or you include this as part of your tenants branding.

Regards,
Tristan

1 Like

thx a lot :slight_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.