import

Definition

Imports users from a JSON file.

Usage

$ airflow users import [-h] [-v] file

Arguments

Parameter Description

file

The name of the JSON file to import users from

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Example format for a users JSON file:

[
    {
        "email": "foo@bar.org",
        "firstname": "Jon",
        "lastname": "Doe",
        "roles": ["Public"],
        "username": "jondoe"
    }
]

Examples

To import users from a file, run:

$ airflow users import /tmp/users.json
Found a mistake? Seleсt text and press Ctrl+Enter to report it