Uses the Veracode Identity API to deactivate a list of users.
Clone this repository:
git clone https://github.com/tjarrettveracode/veracode-offboard
Install dependencies:
cd veracode-offboard
pip install -r requirements.txt
(Optional) Save Veracode API credentials in ~/.veracode/credentials
[default]
veracode_api_key_id = <YOUR_API_KEY_ID>
veracode_api_key_secret = <YOUR_API_KEY_SECRET>
If you have saved credentials as above you can run:
python vcoffboard.py (arguments)
Otherwise you will need to set environment variables:
export VERACODE_API_KEY_ID=<YOUR_API_KEY_ID>
export VERACODE_API_KEY_SECRET=<YOUR_API_KEY_SECRET>
python vcoffboard.py (arguments)
Arguments supported include:
- --usernames, -u : list of user names to deactivate, separated by spaces
- --delete (opt): If set, deletes users rather than deactivating. Note that this is not reversible!
- If
--delete
is not set, this script only deactivates users (by setting theActive
flag toFalse
). It does not delete them.