get_users
Retrieve PagerDuty users by name, team, or user ID and return selected profile fields to find the right person or view user details.
Instructions
Get PagerDuty users by filters or get details for a specific user ID.
Call patterns:
Search by name:
query="Name"with the default context (omitcurrent_user_context; limited to your teams).By team: pass
team_ids(impliescurrent_user_context=False, including overriding an explicit True).Do not set
current_user_context=Falsewith onlyquery; that errors becauseteam_idsare required in False mode.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_users"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Limit the number of results (optional). Not used if `user_id` is provided. | |
| query | No | Filter users whose names contain the search query (optional). Works with default `current_user_context=True` (limited to your teams). Not a substitute for `team_ids` when context is False. Not used if `user_id` is provided. | |
| include | No | List of fields to include in the response. If specified, only these fields will be returned for each user | |
| user_id | No | The user ID to retrieve (optional, cannot be used with any other filters). | |
| team_ids | No | Filter results to only users assigned to teams with the given IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `user_id` is provided. | |
| current_user_context | No | Use current user's team IDs to filter (default: True); errors if the current user belongs to no teams. Ignored when `team_ids` are provided (those imply False, even if this is explicitly True). Not used if `user_id` is provided. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||