1

I have some dags owner by user 'abc' and I want to this user a role with permissions to show just those dags on airflow GUI which are owned by user 'abc' and this user can pause or unpause or run its own owned dag. Just to clear here that I cannot use RBAC as RBAC is cloud based authentication , I am having Airflow 2.5.2 installed over docker-compose.

   ```airflow roles del-perms [-h] [-a [ACTION [ACTION ...]]] -r
                    [RESOURCE [RESOURCE ...]] [-v]
                    [role [role ...]]```
Usman_Ahmed
  • 67
  • 1
  • 9

1 Answers1

1

From airflow docs, dag-level permission

For example, if a user is trying to view DAG information for the example_dag_id, and the endpoint requires DAGs.can_read access, access will be granted if the user has either DAGs.can_read or DAG:example_dag_id.can_read access

You need to set to user permissions per dag and remove the Dags global permission.

ozs
  • 3,051
  • 1
  • 10
  • 19