Script Function: Supplies the departmentDepartment name to which the Automation Engine user belongs. of the userIn the Automation Engine, a user is an instance of a User object, and generally the user is a specific person who works with Automic products. The User object is assigned a user ID and then a set of access rights to various parts of the Automation Engine system and product suite. These access rights come in the form of Automation Engine authorizations and privileges, Decision user roles and EventBase rights and ARA web application object rights. You can manage all these centrally in the ECC user management functions. See also, Unified user management. who has started the taskAn executable object that is running. Tasks are also referred to as activities..
SYS_USER_DEP()
Return code |
---|
Department of the user. |
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,… 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 objectIt starts executable objects periodically. A particular Automation Engine object type., 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.
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 reportA report provides more detailed information about a task's execution or a component..
:SET &LOGDEP# = SYS_USER_DEP()
:PRINT "Login information: The user department is &LOGDEP#."
See also:
Script element | Description |
---|---|
Checks whether a user is logged on to AE with a UserInterfaceThis is the Automation Engine's graphical user interface. [Formerly called the "Rich Client", "RichGUI" and "Dialog Client."]. |
|
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. |
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 |