Automation Engine Script Guide > Ordered by Function > User Data > SYS_USER_DEP

SYS_USER_DEP

Script Function: Supplies the departmentDepartment name to which the Automation Engine user belongs. of the user who has started the task.

Syntax

SYS_USER_DEP()

Return code

Department of the user.

Comments

This script function determines the department of the user who has started the task (for example, "AE" in "SMITH/AE").

Note that you can start tasks manually or by using the script statement "ACTIVATE_UC_OBJECT" via Workflow and Schedule objects. If the task in which "SYS_USER_DEP" is called belongs to a Schedule object, this script functions supplies the department of the user who has started the Schedule object.

The user can also be identified in the Statistical Overview.

Example

The following example uses this script function in order to retrieve the department that has been used to log and writes the result to the activation report.

:SET &LOGDEP# = SYS_USER_DEP()
:
PRINT "Login information: The user department is &LOGDEP#."

 

See also:

Script element Description

SYS_USER_ALIVE

Checks whether a user is logged on to AE with a UserInterface.

SYS_USER_LANGUAGE

Supplies the language in which the Server generates the log files.

SYS_USER_LNAME

Supplies the first and last name of the user who has started the task.

SYS_USER_NAME Supplies the name of the user who has started the task.

Script Elements - User Data

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by function