Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Asset Console Creating an Access Definition File Guide


$GETROLE (get role of user)

$GETROLE reads a list of user roles currently executing asset management jobs in operation windows into the specified array.

Organization of this page

Syntax

$GETROLE(array-name)

Values

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

NODATA

ERROR

Script execution interrupted

Indicates one of the following:

  • Database access error

  • An invalid argument was specified, or an error other than the above occurred.

Legend:

—: Not applicable

Remarks

If no roles have been set for users, the process ends normally, but no information is set into the array variable.

Example

The following example acquires user roles, then outputs the role (administrator) in array number 1:

[SET_VALUE]
  $GETROLE(ARY)
  VAL = $GETARRAY(ARY, 1)
  MSG = 'ROLE = ' + VAL
  $ECHO(MSG)
Execution result:

ROLE = administrator