this post was submitted on 07 Jun 2023
2 points (100.0% liked)

Lemmy Support

4647 readers
3 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] Lodion@lemmy.click 4 points 1 year ago (1 children)

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;

[–] knova@links.dartboard.social 1 points 1 year ago (1 children)
[–] ptz@lemmy.ptznetwork.org 2 points 1 year ago* (last edited 1 year ago)

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;