Skip to content

Add "airflow users change-user-password"  #37009

Closed

Description

@ecerulm

Description

there is airflow users create and airflow users delete , but there is no airflow users change-password or anything to reset the password of a user.

If a user has forgot his password , the administrator needs a cli alternative to change its password

Use case/motivation

If a user has forgot his password , the administrator needs a CLI alternative to change its password

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Jan 25, 2024
  2. aritra24 commented on Jan 25, 2024

    @aritra24
    Collaborator

    That seems reasonable, I can take a look into adding it

  3. self-assigned this
    on Jan 25, 2024
  4. removed
    needs-triage
    on Jan 25, 2024
  5. ecerulm commented on Jan 25, 2024

    @ecerulm
    ContributorAuthor

    By the way, for completeness the cli alternative to change the password today would be

    
    FLASK_APP=airflow.www.app flask fab reset-password
    The username [admin]:   theusernameyouwanttochange
    Password: xxxxx
    Repeat for confirmation: xxxxx
    INFO - Updated user Firstname Lastname
    
  6. potiuk commented on Jan 25, 2024

    @potiuk
    Member

    Or you can use API or Web UI. But yes CLI command would be useful.

  7. ecerulm commented on Jan 26, 2024

    @ecerulm
    ContributorAuthor

    Or you can use API or Web UI.

    I was trying to do it via the Web UI but I could find a way to change the password of another user.

    I tried via Security > List users > Edit record and I don't see any way to change the password. I see that I can change / reset my own password via the profile icon on the top right > Your Profile > Reset password but I'm after reseting the password for another user (as an admin)

  8. potiuk commented on Jan 26, 2024

    @potiuk
    Member

    Cick on the "show user" (a small looking glass icon) for a user as an admin and you will see reset password button.

  9. ecerulm commented on Jan 26, 2024

    @ecerulm
    ContributorAuthor

    Click on the "show user" (a small looking glass icon) for a user as an admin and you will see reset password button.

    Ok, found it, well definitely I didn't expect to find "reset password" under "Show user" instead of "Edit user"

  10. potiuk commented on Jan 26, 2024

    @potiuk
    Member

    Click on the "show user" (a small looking glass icon) for a user as an admin and you will see reset password button.

    Ok, found it, well definitely I didn't expect to find "reset password" under "Show user" instead of "Edit user"

    Yep. Agree it's not intuitive. And as usual in open-source project like this PRs to change it are most welcome of course, if you think it could be improved 😄

  11. ecerulm commented on Jan 26, 2024

    @ecerulm
    ContributorAuthor
  12. potiuk commented on Jan 26, 2024

    @potiuk
    Member

    It's the right one - it's deprecated only because it's moved with AuthManager implementatiobn (but we have not described it well enough and did not generate swagger/API documentation for the new endpoints- it's coming in #36664

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions