airflow.providers.fab.auth_manager.cli_commands.permissions_command

Permissions cleanup command.

Attributes

log

Functions

cleanup_dag_permissions(dag_id, *[, session])

Clean up DAG-specific permissions from Flask-AppBuilder tables.

permissions_cleanup(args)

Clean up DAG permissions in Flask-AppBuilder tables.

Module Contents

airflow.providers.fab.auth_manager.cli_commands.permissions_command.log[source]
airflow.providers.fab.auth_manager.cli_commands.permissions_command.cleanup_dag_permissions(dag_id, *, session=NEW_SESSION)[source]

Clean up DAG-specific permissions from Flask-AppBuilder tables.

When a DAG is deleted, we need to clean up the corresponding permissions to prevent orphaned entries in the ab_view_menu table.

This addresses issue #50905: Deleted DAGs not removed from ab_view_menu table and show up in permissions.

Parameters:
airflow.providers.fab.auth_manager.cli_commands.permissions_command.permissions_cleanup(args)[source]

Clean up DAG permissions in Flask-AppBuilder tables.

Was this entry helpful?