jyotsa09 commented on PR #26338:
URL: https://github.com/apache/airflow/pull/26338#issuecomment-1308975249

   Hi @chenglongyan I was just trying to use this feature but have some 
confusion. It would be great if you can help me out to understand this. 
   While adding/deleting permission for the role we need `--action` and 
`--resource` as a required arguments but CLI says its an optional arguments. 
Below is the screenshot-
   <img width="1349" alt="Screenshot 2022-11-09 at 9 18 10 PM" 
src="https://user-images.githubusercontent.com/88504849/200877491-3761a76a-43ff-422f-a203-9274963c76ce.png";>
   
   Also can we add multiple actions/resources at a time ? like this - 
   `airflow roles add-perms test-role -a '[can_read,can_edit]' -r 'XComs'`
   `airflow roles add-perms test-role -a 'can_read' -r '[XComs, Password]'`


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