Automation Engine Script Guide > Ordered by Function > Activation Data > SYS_ACT_USERID

SYS_ACT_USERID

Script Function: Supplies the User ID under which the jobAn Automation Engine object type for a process that runs on a target system. will run

Syntax

SYS_ACT_USERID()

Return code

User name from the Login objectAutomation Engine controlled activities and processes are structured in the form of objects. See also: Task

Comments

This scriptA particular Automation Engine object type. functionPre-defined run book template in the Automation Engine. One single step only, e.g. Start Windows Service, Copy file,… can only be used in jobs. This script function retrieves the User ID under which a job will be executed. It is read from the loginAn Automation Engine object type that stores account credentials used by agents on target systems. information of  the Login object specified in the "Attributes" tab of this job.

This script function supplies the same result as GET_ATT with the attribute USERID.

Example

The following example prints the User ID and the entire login information in the activation reportA report provides more detailed information about a task's execution or a component..

:SET &URET# = SYS_ACT_USERID()
:
SET &LRET# = GET_ATT(LOGIN_INFO)
:
PRINT "User ID: &URET#", "Full login information: &LRET#"

 

See also:

Script Elements - Activation Data

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by function

 


Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support

Copyright © 2016 Automic Software GmbH