This section details the functions and properties of the AMT-COBOL Repository
Module SecurityGroup interface
Properties
Name
Type
Access
Description
AppNewApplications
Boolean
Read/Write
Can this group add new applications or not.
GroupName
String
Read only
Returns the group name.
SysAdmin
Boolean
Read/Write
Is this a system administrator group or not.
Functions
Function name
Return type
Parameters
Description
Name
Type
LoadAdminOptions
Void
Repos
ILionRepository Object
Load the global admin options.
SaveAdminOptions
Void
Repos
ILionRepository Object
Save the global admin options.
Example
C#
ILionReposSecurityGroupsecurityGroup=security.AddGroup("DevOps");// Retrieve the global admin options for the DevOps grouptry{securityGroup.LoadAdminOptions(repos);}catch{Log("You are not authorized to retrieve the global admin options");return;}// Allow the DevOps group to add new applications to the RepositorysecurityGroup.AddNewApplications=true;securityGroup.SaveAdminOptions(repos);Log(securityGroup.GroupName+" can now add new applications to the Repository");
PowerShell
$O_SecurityGroup=$O_Security.AddGroup("DevOps")# Retrieve the global admin options for the DevOps grouptry{$O_SecurityGroup.LoadAdminOptions($O_Repos)}catch{Write-Error"You are not authorized to retrieve the global admin options"}# Allow the DevOps group to add new applications to the Repository$O_SecurityGroup.AddNewApplications=$true$O_SecurityGroup.SaveAdminOptions($O_Repos)Write-Host$O_SecurityGroup.GroupName"can now add new applications to the Repository"