# How do I prevent the use of certain commands?

**URL:** <https://community.abs-consulting.com/t/how-do-i-prevent-the-use-of-certain-commands/46>\
**Category:** ClearTrigger\
**Created:** [November 9, 2021, 3:18pm UTC](https://community.abs-consulting.com/t/how-do-i-prevent-the-use-of-certain-commands/46 "2021-11-09T15:18:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert](https://community.abs-consulting.com/user_avatar/community.abs-consulting.com/robert/32/28_2.png) [@robert](https://community.abs-consulting.com/u/robert)\
**Post date:** [November 9, 2021, 3:18pm UTC](https://community.abs-consulting.com/t/how-do-i-prevent-the-use-of-certain-commands/46/1 "2021-11-09T15:18:16Z")

</div>

# 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…

 ![](https://community.abs-consulting.com/uploads/default/original/1X/4b3fb2e807be4468579ef00e8a7ff1ce5a55afae.jpeg)

… 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.

 ![](https://community.abs-consulting.com/uploads/default/original/1X/4500d72c9290b3929c7a5f9826ca8d4b34cfe58f.jpeg)

**Remember!** The **ClearBits\_File Web Generator for ClearTrigger** makes this even easier.
