change_ruleset_owner

Assigns the ownership of an enterprise rule set to a new owner.

Privilege Requirements:

The new owner must have the following privileges:

  • Edit Enterprise Rule set on the rule set.

  • If specific targets are selected in the rule set, the new user must have View Target privilege on those targets.

  • If some of the rules either creates or updates incidents, the new user must have Manage Target Event privilege on those targets as well.

Format

emcli change_ruleset_owner 
      -rule_set_name='rule set name'  
      -rule_set_owner=<rule set owner>  
      -new owner=<new owner> 

Options

  • rule_set_name

    Name of an enterprise rule set. This option only applies to rule sets that are associated with a list of targets.

  • rule_set_owner

    Current owner of the rule set.

  • new_owner

    New owner of the rule set.

Example

The following example removes USER1 as the owner of rule set "My rule set" and assigns USER2 as the new owner.

emcli change_ruleset_owner -rule_set_name 'My rule set' -rule_set_owner USER1 - new_owner USER2