JobPolicy excludeRoleFromRoleBasedJobPolicyRule
JobPolicy excludeRoleFromRoleBasedJobPolicyRule
Description:
This command excludes a user role from the specified job policy rule. The job policy rule is not applied when you run jobs with users that belong to the excluded role.
Return type: String
Command input:
Variable name | Variable type | Description |
---|---|---|
rule name | String | Name of the job policy rule. |
role name | String | Name of the user role that you want to exclude from the specified job policy. |
Syntax:
JobPolicy excludeRoleFromRoleBasedJobPolicyRule <rule name> <role name>
Example:
The following example shows how to exclude the BLAdmins role from the Max Targets Allowed Rule policy.
JobPolicy excludeRoleFromRoleBasedJobPolicyRule "Max Targets Allowed Rule" BLAdmins
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*