get_users
Retrieve PagerDuty user details by ID or filter users based on team assignments, search queries, and contextual data for efficient user management.
Instructions
Get PagerDuty users by filters or get details for a specific user ID.
Args:
user_id (str): The user ID to retrieve (optional, cannot be used with any other filters).
current_user_context (bool): Use current user's team IDs to filter (default: True). Not used if user_id
is provided.
team_ids (List[str]): Filter results to only users assigned to teams with the given IDs (optional, cannot be used with current_user_context). Not used if user_id
is provided.
query (str): Filter users whose names contain the search query (optional). Not used if user_id
is provided.
limit (int): Limit the number of results (optional). Not used if user_id
is provided.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
current_user_context | No | ||
limit | No | ||
query | No | ||
team_ids | No | ||
user_id | No |