Skip to content
Command line tool to deprovision PagerDuty users
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.gitignore Removing log files Dec 1, 2016
LICENSE Added REST API class Sep 15, 2016
README.md Adding logic to resolve open incidents Mar 7, 2017
user_deprovision.py

README.md

PagerDuty User De-Provision

Python script to de-provision a user in PagerDuty including removing them from all schedules, escalation policies, and teams that they are a part of. The affected resources are logged and printed to the console.

Usage

This script is meant to be used as a command line tool with the following arguments:

./user_deprovision.py --access-token ENTER_PD_ACCESS_TOKEN --user-email user-to-delete@example.com --from-email user-requesting-deletion@example.com

-a, --access-token: A valid PagerDuty v2 REST API access token from your account

-u, --user-email: The PagerDuty email address for the user you want to delete from your account

-f, --from-header: The PagerDuty email address of the user that is requesting the deletion

Author

Luke Epp lucas@pagerduty.com

Maintainer

Luke Epp lucas@pagerduty.com

You can’t perform that action at this time.