Skip to content

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

@lastzero

Description

@lastzero

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

Metadata

Metadata

Assignees

Labels

authUser Account Management and AuthenticationcliCommand-Line Interface (CLI)enhancementEnhancement or improvement of an existing featurereleasedAvailable in the stable releasetestedChanges have been tested successfully

Type

No type
No fields configured for issues without a type.

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions