# Get On-Call User from a Schedule

Looks up the name and unique ID of whichever user is currently on call, according to a specified PagerDuty on-call schedule.


> **Availability:** See the [Incident Workflow Actions Overview table](/workflow-actions) for the plans this workflow is available on.

## Description

Return the name and ID of an on-call user from a schedule.

## Instructions

1. If you have not done so, follow the instructions to [Create an Incident Workflow](/ai-automation/automation/incident-workflows#create-an-incident-workflow).
2. When the instructions prompt you to [add actions](/ai-automation/automation/incident-workflows#add-actions), select **this action**.
3. Enter the following **Inputs** and click **Save**.
4. Continue following instructions to **Publish** the Workflow.
5. When the action runs, you will see the **Outputs** listed below.

## Inputs

| Name     | Description                             |
| :------- | :-------------------------------------- |
| Schedule | Search and select your desired schedule |

## Outputs

| Name              | Description                                                                         |
| :---------------- | :---------------------------------------------------------------------------------- |
| On Call User ID   | The User ID of the on-call user.                                                    |
| On Call User Name | The name of the on-call user.                                                       |
| Result            | Value that shows if the action was successful or not. Either "Success" or "Failed." |
| Result Summary    | Brief description of what the action did or if it failed.                           |
| Error             | Brief description that is populated if the action failed.                           |
