How to delete SecurityActions?

Hello all,

The scenario is:

I’m creating a Management Client plugin.

In the plugin definition class I’m overriding the SecurityActions property and I’m setting three security actions for the plugin:

securityAction1

securityAction2

securityAction3

I run the Management Client with the plugin, on the Security/Roles/Overall Security the 3 security actions are there, under the plugin node.

Let’s say I change my mind and I want to have only two security actions for the plugin.

I’m deleting the last entry from the overriden SecurityActions property in the plugin definition class. So now I only have:

securityAction1

securityAction2

I rebuild and start the Management Client.

In the Security/Roles/Overall Security window there are still three security actions, although in my plugin definition I only have two.

It seems that I am unable to get rid of the security actions once I’ve exposed them through the plugin definition property!?

Is there a way to programmatically delete these security actions that you define for your plugin?

Thanks for your time.

In the Management Client do -View ->Reset Application Layout.

There is an element of guessing, please let me know if it works.

Hello Bo,

This doesn’t work.

A similar scenario is when I’m using security actions for the itemNode in _itemNodes.Add(new ItemNode(..)) in plugindefinition’s Init().

Although for this case I have the option of calling the obsolete marked method SecurityAccess.RegisterItem(item); which seems to have the consequence of having the exact security actions displayed in Security/Roles/Overall Security window.

The correct answer is that you cannot. In the current implementation old security actions are not removed.