Viewing Login Attempts

For security reasons, authentication logs are not visible on the regular web user interface and can only be viewed in the application service logs or searched in a terminal using the following CLI command:

photoprism logins ls [search]

Command Options

You can combine it with these flags to change the output format and the maximum number of search results:

Command FlagDescription
--md, -mformat as machine-readable Markdown
--csv, -cexport as semicolon separated values
--tsv, -texport as tab separated values
-n LIMITLIMIT number of results (default: 100)

Example Report

Client IPUser NameRealmStatusLast LoginFailed At
172.19.0.1userapiOK2023-02-03 07:17:46
172.19.0.1viewerapiOK2023-02-03 07:16:55
172.19.0.1adminapiOK2023-02-03 06:55:06

Run photoprism logins clear to clear all recorded incidents and reset the database to a clean state.

Session Management

You can use the following terminal commands to create, inspect and, if necessary, delete access tokens for the authentication of browsers and other clients (including app passwords):

CLI CommandDescription
photoprism auth ls [search]Lists currently authenticated users and clients
photoprism auth add [username]Adds a new authentication secret for client applications
photoprism auth show [identifier]Shows detailed information about a session
photoprism auth rm [identifier]Deletes a session by id or access token
photoprism auth reset --yesResets the authentication of all users and clients

PhotoPrism® Documentation

For more information on specific features, services and related resources, please refer to the other documentation available in our Knowledge Base and User Guide: