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
[โ€“] 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;