AuthorizationProfile - addPermission

AuthorizationProfile - addPermission

Description :

This command adds a permission to the access control list (ACL) that controls access to an authorization profile. A permission consists of a role and an authorization.

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

Valid authorizations for an authorization profile are:

  • AuthProfile.Read
  • AuthProfile.Modify
  • AuthProfile.ModifyACL
  • AuthProfile.Delete
  • AuthProfile.*
    Returns the DBKey of the authorization profile.

    Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

name

String

Name of the authorization profile.

roleName

String

Name of the role.

authName

String

Name of the authorization.

Example

The following example shows how to add a permission consisting of the role "SampleRole" and the authorization "AuthProfile.Read" to an authorization profile called "Test Profile".

Script





AuthorizationProfile addPermission "Test Profile" SampleRole AuthProfile.Read 



Was this page helpful? Yes No Submitting... Thank you

Comments