MM-Lehmann edited a comment on issue #19205:
URL: https://github.com/apache/airflow/issues/19205#issuecomment-952232885


   Well, I thought it was obvious but trying to provide you with a doc link, I 
must admit it's actually not that well 
[documented](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/dag/index.html).
 But there is third-party info on it. Just like 
[here](https://cloud.google.com/composer/docs/airflow-rbac#assigning_dags_to_roles_in_dag_properties),
 when you instantiate your dag:
   ``` python
   dag = DAG(
     access_control={
       'Role_1': {'can_dag_edit', 'can_dag_read'},
     },
     ...
     )
   ```
   Make sure that the role you're referencing does exist. Upon Dag parsing, the 
role is then extended automagically with the new dag-level permissions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to