Skip Navigation
Lemmy Support @lemmy.ml KNova @links.dartboard.social

User list?

Is there a way, as an admin, to see a list of users on my instance?

4

You're viewing a single thread.

4 comments
  • In the UI? Not that I know of. From the database... sure:

    docker exec -it <instancename>_postgres_1 sh

    psql -U lemmy -h 127.0.0.1 -p 5432 -d lemmy

    SELECT * from local_user;

    • This is fine, thanks!

      • To expand on that, I do a join between the local_user and person tables so I can grab the name and display names for the local users:

        select 
          p.name, 
          p.display_name, 
          a.person_id, 
          a.email, 
          a.email_verified, 
          a.accepted_application 
        from 
          local_user a, 
          person p 
        where 
          a.person_id = p.id;