JobPolicy includeRoleForRoleBasedJobPolicyRule
JobPolicy includeRoleForRoleBasedJobPolicyRule
Description:
This command includes the earlier excluded user role in the specified policy. After inclusion, the job policy rule is applied to the jobs that you run with users who belong to the included 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 include in the specified job policy. |
Syntax:
JobPolicy includeRoleForRoleBasedJobPolicyRule <rule name> <role name>
Example:
The following example shows how to include the BLAdmins role in the Max Targets Allowed Rule policy.
JobPolicy includeRoleForRoleBasedJobPolicyRule "Max Targets Allowed Rule" BLAdmins
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*