SYS_USER_ALIVE

Use the SYS_USER_ALIVE script function to check whether a particular user is logged on to the Automation Engine through the Automic Web Interface.

Tip: Use the :ON_ERROR script statement to define action to take if the user is not available. For more information, see Script Elements for Error Handling.

Syntax

SYS_USER_ALIVE (Name, Department)

Parameters

Notes:

Return Codes

The script function as the following return codes:

Example

The following script in a Notification object checks if User1 is logged on. If so, the script adds that user as a recipient of the notification. If the user is not logged on, the script adds User2 as a recipient instead.

:IF SYS_USER_ALIVE("USER1", "DEV")="Y"
:
ADD_ATT RECIPIENT,"USER1/DEV"
:
ELSE
:
ADD_ATT RECIPIENT,"USER2/DEV"

:ENDIF

See also:

seealso

Script Elements for User Interaction and User Data