add-perms

Definition

Adds permissions to roles.

Usage

$ airflow roles add-perms [role ...]
                        [-h] -a
                        [ACTION ...]
                        -r [RESOURCE ...]
                        [-v]

Arguments

Parameter Description

role

The name of the role for which permissions need to be added

-a, --action

The action to be allowed with the selected resource

-r, --resource

The resource to which permissions should be granted

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Examples

To allow users with the viewer role to edit connections, run:

$ airflow roles add-perms Viewer -a can_edit -r Connections

Output example:

Added can edit on Connections to role Viewer
Added 1 permission(s)
Found a mistake? Seleсt text and press Ctrl+Enter to report it