RBACRole - setPropertyValueByName
RBACRole - setPropertyValueByName
Description :
This command sets a property value on a role. The property name must be defined in the Role property class. The property must be defined as editable.
You can use the BMC BladeLogic blenc encryption utility to encrypt values you set with this command. For syntax and sample usage, see Server : setPropertyValue .
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
roleName | String | Name of the role to modify. |
propertyName | String | Name of the property whose value you want to change. |
valueAsString | String | The value you want to set the property to. |
Example
This example script assumes that a role named "SuperAdmin" is present in the system. It also assumes that a property called LOCATION has been defined in the Role property class.
Script
RBACRole setPropertyValueByName SuperAdmin LOCATION "West Coast"
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*