Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Add command flag to show deleted user accounts #4570

Open
lastzero opened this issue Oct 11, 2024 · 1 comment
Open

CLI: Add command flag to show deleted user accounts #4570

lastzero opened this issue Oct 11, 2024 · 1 comment
Assignees
Labels
authentication User Account Management and Authentication cli Command-Line Interface (CLI) enhancement Refactoring, improvement or maintenance task tested Changes have been tested successfully

Comments

@lastzero
Copy link
Member

lastzero commented Oct 11, 2024

As an admin, I would like to find previously deleted user accounts so that I can restore them if needed.

We are going to add a --deleted flag to the photoprism users ls command for this purpose:

NAME:
   photoprism users ls - Lists registered user accounts

USAGE:
   photoprism users ls [command options] [arguments...]

OPTIONS:
   --md, -m       format as machine-readable Markdown
   --csv, -c      export as semicolon separated values
   --tsv, -t      export as tab separated values
   -n LIMIT       LIMIT number of results (default: 100)
   --deleted, -d  show deleted user accounts

Example:

photoprism-users-ls

This seems particularly useful in combination with OpenID Connect (OIDC), as users cannot re-register if their account has been deleted (and not explicitly restored by an admin):

@lastzero lastzero self-assigned this Oct 11, 2024
@lastzero lastzero added cli Command-Line Interface (CLI) authentication User Account Management and Authentication enhancement Refactoring, improvement or maintenance task labels Oct 11, 2024
@lastzero lastzero moved this to Development 🐝 in Roadmap 🚀✨ Oct 11, 2024
lastzero added a commit that referenced this issue Oct 11, 2024
Signed-off-by: Michael Mayer <michael@photoprism.app>
@lastzero
Copy link
Member Author

I started a new preview build which should be available on Docker Hub shortly, so you can test these changes:

@lastzero lastzero moved this from Development 🐝 to Preview 🐳 in Roadmap 🚀✨ Oct 11, 2024
@lastzero lastzero added the please-test Ready for acceptance test label Oct 11, 2024
@lastzero lastzero assigned graciousgrey and unassigned lastzero Oct 11, 2024
lastzero added a commit that referenced this issue Oct 12, 2024
Signed-off-by: Michael Mayer <michael@photoprism.app>
graciousgrey added a commit that referenced this issue Oct 15, 2024
@graciousgrey graciousgrey added tested Changes have been tested successfully and removed please-test Ready for acceptance test labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authentication User Account Management and Authentication cli Command-Line Interface (CLI) enhancement Refactoring, improvement or maintenance task tested Changes have been tested successfully
Projects
Status: Preview 🐳
Development

No branches or pull requests

2 participants