Skip to main content

getUserDetails

A Workflow Engine function that retrieves the full Moogsoft user record from a supplied uid and copies the retrieved data to the workflowContext.userDetails key for use in subsequent actions within the workflow.

Note

This action takes one argument, attribute. You must specify the correct value for the type of action you are performing. The following values are supported:

  • owner (alert workflows only)

  • moderator_id (Situation or Situation Action workflows only)

  • uid (Situation Action workflows only) — The UID in the CEvent object will (generally) be the user who initiated the action - for example the user who initiated a right click tool. This will be different from the moderator_id.

If this action is used more than once in a workflow —for example to fetch both the moderator_id and uid — then the workflowContext.userDetails will be overwritten. In this use case, insert the required action to use the data between the getUserDetails actions.

This function is available as a feature of the Add-ons v2.3.5 download and later.

This function is available for alert and Situation workflows.

Back to Workflow Engine Functions Reference.

Arguments

Workflow Engine function workflowEngineFunction takes the following arguments:

Name

Required

Type

Description

attribute

yes

string

Must be one of the following. See overview above for details.

  • moderator_id

  • owner

  • did

Example

The following example demonstrates use of this action in a Situation Action (sigAction) workflow:

  1. sigActionFilter

    actionTypes: [ ‘Assigned Moderator' ]

  2. getUserDetails

    attribute: moderator_id

  3. copyToPayload

    key: moderatorEmail

    value: workflowContext.userDetails.email

  4. getUserDetail

    attribute: uid

  5. copyToPayload

    key: moderatorAssignedBy

    value: workflowContext.userDetails.fullname