Scripts to help the Observability Team at Mozilla manage Sentry.
find_legacy_js_users.py
- list projects using an obsolete version of the JS SDK and their team adminsobsolete_users.py
- list users with expired invites, and users no longer at Mozillasentry_client.py
- module with a simple Sentry REST API client
The easiest way to run the scripts is using uv
, e.g.
uv run obsolete_users.py
The scripts use these environment variables:
LDAP_BIND_USER
- bind user used for LDAP queriesSENTRY_RO_TOKEN
- a Sentry API token with read-only accessSENTRY_TOKEN
- a Sentry API token with read and write access
You can set these variables in .env
in this directory.