esi-security-templates

esi-security-templates library provides templates for profiles

Documentation

GENERATE_RANDOM_STRING(length)

Generate random string with provided length, consisting of numbers and characters

Parameters

length

Length of string that is generated

Returns

string

SET_COMPLEXITY(length)

Set password complexity for profile password

Parameters

length

Length of password that is generated

SET_REPLACEMENTS(replacementsKvP)

Set list of replacement tokens, which will be applied to all templates

Parameters

replacementsKvP

table with key value pairs, mapping token names to their to-be replaced value.

SET_PROFILE_TEMPLATES_MASTER(templates)

Override list of default profile templates for the Master-Core.

Property values can contain tokens in the format TOKEN, which will be replaced.

Parameters

templates

table with a list of tables for profiles, according to the syslib.mass format.

GET_PROFILE_TEMPLATES_MASTER_RAW()

Retrieve Master-Core templates in raw format

GET_PROFILE_TEMPLATES_MASTER(massTbl,includeRefs,hasEngineers)

Retrieve resolved list of Master-Core profiles with properties according to template, with resolved token values.

one without DataStudio permissions 'engineers'). Otherwise, the 'readers' profile has permissions for DataStudio.

Parameters

massTbl

table suitable for syslib.mass command

includeRefs

If truthy, the returned templates will also contain the refs table (for further processing)

hasEngineers

If truthy, result will include 2 reader profiles (one with DataStudio 'readers',

SET_PROFILE_TEMPLATES_LOCAL(templates)

Override list of default profile templates for a Local-Core.

Property values can contain tokens in the format TOKEN, which will be replaced.

Parameters

templates

table with a list of tables for profiles, according to the syslib.mass format.

GET_PROFILE_TEMPLATES_LOCAL_RAW()

Retrieve Local-Core templates in raw format

GET_PROFILE_TEMPLATES_LOCAL(massTbl,includeRefs,hasEngineers,hasVkpi,hasMES)

Retrieve resolved list of Local-Core profiles with properties according to template, with resolved token values.

one without DataStudio permissions 'engineers'). Otherwise, the 'readers' profile has permissions for DataStudio.

Parameters

massTbl

table suitable for syslib.mass command

includeRefs

If truthy, the returned templates will also contain the refs table (for further processing)

hasEngineers

If truthy, result will include 2 reader profiles (one with DataStudio 'readers',

hasVkpi

If truthy, a VKPI profile will be created for each site

hasMES

If truthy, an MES profile will be created for each site