AdministrativeGroup Property

General info

Label

Administrative Role

Description

Set the level of administrative privileges for this profile.

Data type

UInt32

Default value

0 (syslib.model.codes.AdministrativeGroup.NONE)

Type

CodingGroup

Code

271

Symbolic name

MODEL_PROP_ADMINISTRATIVEGROUP

Lua access code

syslib.model.properties.AdministrativeGroup

Available since

1.0

Parent classes

Profile

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs.
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.
PROP_HAS_DEFAULT The property has a default value as standard.

Codings

Coding group: AdministrativeGroup

Name Code Label Tooltip

NONE

0

None

No administrative access.

ADMIN

1

Administrator

Full administrative access.

REVIEWER

2

Reviewer

Read-only administrative access.

Examples

Read from or write to the AdministrativeGroup property.

  • Lua

  • C#

-- Read from the AdministrativeGroup
syslib.getvalue("<OBJECT FULL PATH>.AdministrativeGroup")

-- Write to the AdministrativeGroup
syslib.setvalue("<OBJECT FULL PATH>.AdministrativeGroup",
    syslib.model.codes.AdministrativeGroup.NONE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the AdministrativeGroup
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.AdministrativeGroup"));
// Write to the AdministrativeGroup
Result result = sli.WriteValue(sc, new WriteItem(AdministrativeGroup.NONE, "<OBJECT FULL PATH>.AdministrativeGroup"));

A switch-like function of the codings.

function get_coding_name(code)
    local _ag = syslib.model.codes.AdministrativeGroup
    if _ag.NONE==code then return 'NONE'
    elseif _ag.ADMIN==code then return 'ADMIN'
    elseif _ag.REVIEWER==code then return 'REVIEWER'
    end
end
return get_coding_name(syslib.model.codes.AdministrativeGroup.NONE)