DD-IX Enrollment Helpers
- Python 97.2%
- Elixir 2.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| create-invites.py | ||
| enroll.ini | ||
| README.md | ||
| send-invites.py | ||
| tokens.ini.ex | ||
DD-IX Enrollment Helpers
This little helper scripts creates user enrollment invites and sends them via email using listmonk.
Prerequisites
- authentik: get a api token from a user with permissions to create user invites
- listmonk: get a api token for sending mails
- put the credentials in the
tokens.inifile (template:tokens.ini.ex)
create-invites.py
This script creates the invites in authentik:
- prepare a csv file (
username,full name,email) ./create-invites.py < enroll.csv > invites.csv
The script prints the csv file with an additional invite uuid. The output is to be parsed by the send-invites.py script.
send-invites.py
This script send the invites via listmonk:
- use the csv file from the first step (
username,full name,email,itoken,expire) ./send-invites.py < invites.csv