Skip to content

pagerduty get-user

Get a user by ID.

Description

Get a specific user from your PagerDuty account.

Synopsis

pagerduty get-user
    --site <site>
    --user_id <user_id>

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: required

user_id - (string)

     The ID of the user.
     Example: --user_id "PAGNO81"
     Default: _None_      Attributes: required

Examples

pagerduty get-user --user_id "PAGNO81"

Access Control

To use this command, you need access to the following:

Field Value
Action "read"
Service Type "pagerduty"
Service Instance
Namespace
Object Type "users"
Object ID id

Please see Access Control for details.