This little helper scripts creates user enrollment invites and sends them via email using listmonk.
- 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.ini
file (template:tokens.ini.ex
)
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.
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