Skip to main content

Authentik User Manager

OpenRail Administrative Project Test suites REUSE status The latest version can be found on PyPI. Information on supported Python versions.

Manage Authentik users and group memberships via YAML configuration files.

Features

  • Synchronize users and group memberships with Authentik instance
  • Configure users and their group memberships via YAML files
  • Create individual invitation links for new users
  • Email notification system for user invitations

Installation

pipx makes installing and running Python programs easier and avoids conflicts with other packages. Install it with:

pip3 install pipx

The following one-liner both installs and runs this program from PyPI:

pipx run authentik-user-manager

If you want to use authentik-user-manager without prepending it with pipx run every time, install it globally:

pipx install authentik-user-manager

To upgrade authentik-user-manager to the newest available version:

pipx upgrade authentik-user-manager

Other installation methods

You may also use pip directly:

pip install authentik-user-manager

CLI Usage

authentik-user-manager provides a command-line interface for synchronizing users and their group memberships with an Authentik instance.

Command Structure

auth-user-mgr <command> [options]

Main Commands

sync

Synchronize users with the Authentik instance:

auth-user-mgr sync -c <config_file> -u <users_file_or_directory>

For detailed help on any command with additional flags such as --dry and --no-email:

auth-user-mgr sync --help

import

Import users from a CSV file into the user inventory YAML files. This is useful for batch-adding users to groups, e.g. for events:

auth-user-mgr import -i <csv_file> -u <users_file_or_directory> -o <output_yaml> -g <groups>

For each user in the CSV:

  • If they already exist in a YAML file under -u, their group memberships are updated in-place.
  • If they are not found, they are appended to the -o output file with the specified groups.

Example:

auth-user-mgr import -i participants.csv -u config/users/ -o config/users/event.yaml -g "Event Group,Speakers"

The CSV file must have the columns name and email (required). A username column is optional — if empty, the username will be auto-generated at sync time. See config/users.import.sample.csv for an example.

Use --dry to preview changes without modifying any files:

auth-user-mgr import -i participants.csv -u config/users/ -o config/users/event.yaml -g "Event Group" --dry

For detailed help:

auth-user-mgr import --help

Configuration

The application's configuration and the list of managed users are stored in YAML files. You can find sample configuration files in the config/ directory.

Note: There are two ways how to store your users inventory:

  1. In a single file, as shown in config/users.sample.yaml
  2. In multiple files in one directory, as shown in config/users.sample/

API permissions

Especially for automated syncs, it is recommended to set up a system user in Authentik and create an API token for them. The following permissions are required:

  • User: Can view User
  • Group: Can view Group
  • Group: Add user to group
  • Group: Remove user from group
  • Group: Can add Group
  • Flow: Can view Flow
  • Invitation: Can view Invitation
  • Invitation: Can add Invitation
  • Invitation: Can delete Invitation

Development and Contribution

We welcome contributions to improve this library. Please read CONTRIBUTING.md for all information.

License

The content of this repository is licensed under the Apache 2.0 license.

There may be components under different, but compatible licenses or from different copyright holders. The project is REUSE compliant which makes these portions transparent. You will find all used licenses in the LICENSES directory.

The project has been started by the OpenRail Association. You are welcome to contribute!

Metadata

Release files for authentik-user-manager 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for authentik-user-manager 1.4.1
File Size Uploaded
authentik_user_manager-1.4.1.tar.gz 32.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for authentik-user-manager 1.4.1
File Interpreter ABI Platform
authentik_user_manager-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 72.5 kB

Release files / authentik_user_manager-1.4.1.tar.gz

Download URL authentik_user_manager-1.4.1.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c154f4ce262b4b1870dfcfa1218186b305b611f445660566535188d760b3fda4
BLAKE2b-256 checksum
How to use checksums
cf6fd1d87bff5e5328349502197626c48511c98f6ab1ab584c5ebd27ca8976f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / authentik_user_manager-1.4.1-py3-none-any.whl

Download URL authentik_user_manager-1.4.1-py3-none-any.whl
Size 40.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86bf657bcf8a13a5be1c0b65f32d9f1f0c6a37302dd9946702b751fcd4ac7d8b
BLAKE2b-256 checksum
How to use checksums
e4cc3d598cc8aa907976ebed83ffa65cb86a99f7eb2eb7e1af4233ab4087e737
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.4.1 This release

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page