SubhamSinghal opened a new issue, #38721:
URL: https://github.com/apache/airflow/issues/38721

   ### Apache Airflow Provider(s)
   
   databricks
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-common-io==1.2.0
   apache-airflow-providers-common-sql==1.10.0
   apache-airflow-providers-databricks==6.1.0
   apache-airflow-providers-ftp==3.7.0
   apache-airflow-providers-http==4.8.0
   apache-airflow-providers-imap==3.5.0
   apache-airflow-providers-sqlite==3.7.0
   
   ### Apache Airflow version
   
   2.8.1
   
   ### Operating System
   
   ubuntu
   
   ### Deployment
   
   Google Cloud Composer
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   DatabricksCreateJobsOperator does not update ACL list.
   
   ### What you think should happen instead
   
   DatabricksCreateJobsOperator should update all components of job including 
ACLs.
   
   ### How to reproduce
   
   Create a job config with access control list.
   ```
    access_control = [{
               "group_name": "abc",
               "permission_level": "CAN_MANAGE_RUN"
           }]
    ```
   In the first run CreateJobOperator updates ACL properly. Now update ACL list 
and run CreateJobOperator again.
   ```
    access_control = [{
               "group_name": "abc",
               "permission_level": "CAN_MANAGE_RUN"
           },
           {
               "group_name": "def",
               "permission_level": "CAN_MANAGE_RUN"
           }
   ]
    ```
   
   new ACL list does not get reflected in databricks jobs. This may be due to 
reset job API does not have ACL list paramater. And there is a separate API to 
handle ACL update.
   reset job api: [link](https://docs.databricks.com/api/workspace/jobs/reset)
   update ACL api: 
[link](https://docs.databricks.com/api/workspace/jobs/updatepermissions)
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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