Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Python module and script to invite people fetched from LDAP to Grafana

Project description


Azure DevOps builds Azure DevOps tests Azure DevOps coverage

PyPI PyPI - License PyPI - Python Version PyPI - Format PyPI - Status PyUp - Updates

Inviting people to join a Grafana organization is usually done from the Grafana UI. For smaller groups this might be easy but for a larger set of people one rather would like to not fiddle around in the UI and instead do it in an automated fashion.

This tool is intended to send invites to join a new Grafana organization to people obtained from LDAP.


$ python install


$ pip install grafana-inviter


  • Copy the example_config.json configuration and adjust it to your needs
  • Generate a Grafana API token with admin privileges (https://<YOUR_GRAFANA_URL>/org/apikeys)
  • Ensure you have a LDAP service account user for searches created
$ grafana-inviter --grafana-token "<YOUR_GF_TOKEN_WITH>" --ldap-user <YOUR_SVC_ACCOUNT_USER> --config config.json --ask-ldap-password
LDAP password:
Sending invite to John Doe (John
{'name': 'John Doe', 'loginOrEmail': '', 'role': 'Viewer', 'sendEmail': False, 'orgId': 10}
 > User is already added to organization
Sending invite to Jane Doe (
{'name': 'Jane Doe', 'loginOrEmail': '', 'role': 'Viewer', 'sendEmail': False, 'orgId': 10}
 > Created invite for

Available invite URLs: ['https://<YOUR_GRAFANA_URL>/invite/Vv4Q8SYVyk7ULGpeWvjMXl0iuWLl67']

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for grafana-inviter, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size grafana-inviter-0.0.7.tar.gz (6.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page