How do I prevent the use of certain commands?
Use ClearTrigger to prevent users from executing various commands. In the Enterprise Commands section of clearbits.txt add the commands or command groups you want to restrict:
- pre_unreserve;R;;x;
- pre_unlock pre_rmver;R;;x;
- pre_rmelem;R;;x;
- pre_rmbranch;R;;x;
- pre_MODIFY_MD;R;;x;
Adding an entry like the ones above to the command inhibited field would produce a dialog box like below when a inhibited user attempts an inhibited command…
… or the policy maker could use the ClearTrigger command GUI options to get a more customized dialog without having to write code:
- pre_unlock pre_rmver;R;;0;0;0;D; ;N; ;0;;;;;0;Q;I don’t want you to do this…;C;
- pre_MODIFY_MD;R;;0;0;0;D; ;N; ;0;;;;;0;Q;I don’t want you to do this…;C;
Adding an entry like the ones above to the command GUI dialog definition would produce a dialog box like below when a inhibited user attempts an inhibited command.
Remember! The ClearBits_File Web Generator for ClearTrigger makes this even easier.