[
https://issues.apache.org/jira/browse/AIRFLOW-3752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16749216#comment-16749216
]
ASF subversion and git services commented on AIRFLOW-3752:
----------------------------------------------------------
Commit 9f8ca32da41b089273670a12d31e5c8e92057c45 in airflow's branch
refs/heads/master from Andrew Stahlman
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=9f8ca32 ]
[AIRFLOW-3752] Add/remove user from role via CLI (#4572)
* [AIRFLOW-3752] Add/remove user from role via the CLI
Update the `users` subcommand to enable 2 new actions:
- `--add-role`: Make the user a member of the given role
- `--remove-role`: Remove the user's membership in the given role
For installations that use an external identity provider (e.g., Google
OAuth) the username is typically a long ID string. For the sake of
convenience, we allow the CLI operator to reference the target user
via either their `username` or their `email` (but not both).
* Update argparse spec
Accidentally left off this update to the argparse spec in the last
commit.
* Add unit tests
* Fix lint failures
> Add/remove users from roles via the CLI
> ---------------------------------------
>
> Key: AIRFLOW-3752
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3752
> Project: Apache Airflow
> Issue Type: Improvement
> Reporter: Andrew Stahlman
> Assignee: Andrew Stahlman
> Priority: Major
>
> As an Airflow administrator, I would like to be able to add or remove
> existing users to or from a role using the {{airflow}} CLI.
> [These
> docs|https://github.com/apache/airflow/blob/master/docs/howto/add-new-role.rst]
> suggest that the CLI supports this, but currently it only supports setting
> the roles for a new user.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)