Group - bulkApplyBlAclTemplateByGroup


Group - bulkApplyBlAclTemplateByGroup

Description :

This command bulk applies an ACL template to all objects in a group. You must provide the fully qualified name of the group and the name of the ACL template. You must also provide a string describing the type of group. The following is a list of all valid group type strings:

  • Job Group: JOB_GROUP
  • Smart Job Group: SMART_JOB_GROUP
  • Server Group: STATIC_SERVER_GROUP
  • Smart Server Group: SMART_SERVER_GROUP
  • Depot Group: DEPOT_GROUP
  • Smart Depot Group: SMART_DEPOT_GROUP
  • Template Group: TEMPLATE_GROUP
  • Smart Template Group: SMART_TEMPLATE_GROUP
  • Component Group: STATIC_COMPONENT_GROUP
  • Smart Component Group: SMART_COMPONENT_GROUP
  • System Package Group: SYSTEM_PACKAGE_GROUP

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

groupName

String

Name of the group or folder.

modelType

String

Internal model type of group or folder.

templateName

String

Name of the ACL template.

recursive

Boolean

Flag to control whether template should apply to objects in sub-groups.

replace

Boolean

Flag to replace or append permissions.

Example

The following example shows you how to apply an ACL template to an existing job group.

Script


# Name of the existing job group.

GROUP_NAME="/parent/jobgroup1"

# Group type string.

GROUP_TYPE="JOB_GROUP"

# Name of the existing ACL template.

ACLTEMPLATE_NAME="acltemplate1"

# Recurse flag (true to apply template to objects in sub-groups).

RECURSE="false"

# Replace flag (true to replace existing permissions and false to append).

REPLACE="false"

#Now apply the ACL template to the job group.

`blcli Group bulkApplyBlAclTemplateByGroup $GROUP_NAME $GROUP_TYPE $ACLTEMPLATE_NAME $RECURSE $REPLACE`



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.7