Skip to content

Get Request Workflow Action Users

This REST API allows users to retrieve the users who can act on the current workflow stage of a submitted request.

The response returns one row per user, group, and stage, sorted by group name and then user name. It includes members of the stage’s approver groups and the requestor when the stage’s group is Requestor (groupId = -1).

A request with nothing pending (not submitted, completed, or all lines already actioned) returns an empty list.

This API does not use paging; all rows are returned.

Endpoint Details

URL Structure

http(s)://<EPMWARE_URL>/service/api/request/get_wf_action_users

Method

GET

Parameters

Parameter Type Required Description
requestId Query Yes Filter by request ID
wfStageId Query No Filter by workflow stage ID
wfCycleId Query No Filter by workflow cycle ID
groupId Query No Filter by group ID

Request Examples

Using curl

curl GET 'https://demo.epmwarecloud.com/service/api/request/get_wf_action_users?requestId=1444' \
  -H 'Authorization: Token 15388ad5-c9af-4cf3-af47-8021c1ab3fb7'

Response Format

Successful Response

{
  "startIndex": 0,
  "totalCount": 2,
  "resultSize": 2,
  "vEWVRequestWfActionStageUsers": [
    {
      "requestId": 1444,
      "userId": 401,
      "wfStageId": 661,
      "wfCycleId": 3454,
      "groupId": 12,
      "userName": "AJONES",
      "firstName": "Anna",
      "lastName": "Jones",
      "email": "anna.jones@example.com",
      "groupName": "Finance Reviewers",
      "actionAllowed": true,
      "stageName": "Admin Review",
      "allowRequestorToApprove": true,
      "requestedBy": 286
    },
    {
      "requestId": 1444,
      "userId": 415,
      "wfStageId": 661,
      "wfCycleId": 3454,
      "groupId": 12,
      "userName": "MLEE",
      "firstName": "Mark",
      "lastName": "Lee",
      "email": "mark.lee@example.com",
      "groupName": "Finance Reviewers",
      "actionAllowed": true,
      "stageName": "Admin Review",
      "allowRequestorToApprove": true,
      "requestedBy": 286
    }
  ]
}

Response Fields

Field Type Description
requestId Long Request ID
wfCycleId Long Workflow cycle ID
wfStageId Long Workflow stage ID
stageName String Workflow stage name
groupId Long Approver group ID (-1 = Requestor)
groupName String Approver group name
userId Long User ID
userName String User name
firstName String First name
lastName String Last name
email String Email address
actionAllowed Boolean True if the user can act on the stage now
allowRequestorToApprove Boolean True if the requestor may approve their own request at this stage
requestedBy Long Requestor user ID

← Get Request Workflow Stages | Back to Request