TemplateGroup - removePermission


TemplateGroup - removePermission

Description :

This command removes a permission entry from the ACL controlling access to a template group. A permission consists of a role and an authorization.

You must call this command with a valid authorization name, role name, and template group name. Otherwise this command returns an error.

Valid authorizations for a template group are:

  • ComponentTemplateFolder.Read
  • ComponentTemplateFolder.Modify
  • ComponentTemplateFolder.ModifyACL
  • ComponentTemplateFolder.Delete
  • ComponentTemplateFolder.Write
  • ComponentTemplateFolder.*
     Returns the DBKey of the template group.

    Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

groupName

String

The fully qualified group name.

roleName

String

Name of the role.

authName

String

Name of the authorization.

Example

The following example shows how to remove a permission consisting of role "SampleRole" and the authorization "ComponentTemplateFolder.Read" from a component template group called "/Sample Group".

Script





TemplateGroup removePermission "/Sample Group" SampleRole ComponentTemplateFolder.Read



 

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

BMC Server Automation Command Line Interface 8.7