Skip to main content

Managing Authentik users via YAML files

Project description

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

Install and run via pipx (Recommended)

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 --help
auth-user-mgr sync --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!

Project details


Download files

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

Source Distribution

authentik_user_manager-1.2.2.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

authentik_user_manager-1.2.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file authentik_user_manager-1.2.2.tar.gz.

File metadata

  • Download URL: authentik_user_manager-1.2.2.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for authentik_user_manager-1.2.2.tar.gz
Algorithm Hash digest
SHA256 20673999664b384fc69bc90d3cb0524d9dddea2b4b03476d00791c2ae2e96b5b
MD5 1ff95483a3a18c90e40a1e8a9894c713
BLAKE2b-256 5ec7949e5dbe9bea88dd6e88319a220bbcd441d2a7e73176d78855670a27589a

See more details on using hashes here.

Provenance

The following attestation bundles were made for authentik_user_manager-1.2.2.tar.gz:

Publisher: publish.yaml on OpenRailAssociation/authentik-user-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file authentik_user_manager-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for authentik_user_manager-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6d28cd5bf8f4eedeed203791e997e22ecb394940ca7be9245e7e08bf741c4d12
MD5 028b247c5d8373ac3b2143b3da9614c5
BLAKE2b-256 3a60acff52697b8788a98d5ae1ec892e8531ebcaafa35a84a0b9527e02e563df

See more details on using hashes here.

Provenance

The following attestation bundles were made for authentik_user_manager-1.2.2-py3-none-any.whl:

Publisher: publish.yaml on OpenRailAssociation/authentik-user-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page