ILionLabelPermissions
This section details the functions and properties of the AMT-COBOL Repository Module LabelPermissions interface.
Properties
| Name | Type | Access | Description |
| Admin | Boolean | Read/Write | Admin permission |
| AssignObjects | Boolean | Read/Write | Assign objects |
| CreateLabel | Boolean | Read/Write | Create label permission |
| DeleteLabel | Boolean | Read/Write | Delete label permission |
| DeleteObjects | Boolean | Read/Write | Delete objects permission |
| InheritFromParent | Boolean | Read/Write | Inherit permissions from its parent |
| LookInto | Boolean | Read/Write | Look into permission |
| ModifyLabel | Boolean | Read/Write | Modify label permission |
Example
C#
ILionLabel prodLabel = app.GetLabel("Production");
ILionLabelPermissions labelPermissions = security.GetLabelPermissions(securityGroup, prodLabel);
labelPermissions.Admin = true;
security.SaveLabelPermissions(prodLabel, labelPermissions);
PowerShell
$O_ProdLabel = $O_App.GetLabel("Production")
$O_LabelPermissions = $O_Security.GetLabelPermissions($O_SecurityGroup, $O_ProdLabel)
$O_LabelPermissions.Admin = $true
$O_Security.SaveLabelPermissions($O_ProdLabel, $O_LabelPermissions)
