AMT Help Files
homeAMT Developer StudioCode ManagementLionRepository ModuleInterfacesILionReposSecurityGroup

ILionReposSecurityGroup

This section details the functions and properties of the AMT 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#

ILionReposSecurityGroup securityGroup = security.AddGroup("DevOps");

// Retrieve the global admin options for the DevOps group
try {
  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 Repository
securityGroup.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 group
try {
  $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"

Contents

 Go to top