Skip to content

pagerduty add-team-user

Add member to a team in your pagerduty account.

Description

Add user to the team of given ID.

Synopsis

pagerduty add-team-user
    --site <site>
    --id <id>
    --user_id <user_id>
    [--role <role>]

Arguments

site - (string)

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

id - (string)

     The ID of the team
     Example: --id "PQ9K7I8"
     Default: _None_      Attributes: required

user_id - (string)

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

role - (string)

     The role of the user on the team.
     Example: --role "PQ9K7I8"
     Default: _None_      Attributes: optional

     Validation:
         allowed values: observer, responder, manager

Examples

pagerduty add-team-user --id "PQ9K7I8" --user_id "PAGNO81" --role "PQ9K7I8"

Access Control

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

Field Value
Action "update"
Service Type "pagerduty"
Service Instance
Namespace
Object Type "team"
Object ID

Please see Access Control for details.