Prohibiting Users from Using a Custom Command (RemoveUserPermission)

Use the ICICommandSettings interface RemoveUserPermission method to remove a user or Settings Level from the list of those that have permission to use a custom command. Refer to Command Settings Interface Methods for an illustration of how this and other ICICommandSettings can be accessed in the Administrator interface.

Signature:

HRESULT RemoveUserPermission([in] BSTR bstrUser);