Commit c2ad9fd5 authored by rinpatch's avatar rinpatch

Merge branch 'list-users' into 'develop'

Add CLI list users command

See merge request pleroma/pleroma!1990
parents dedb1ad5 fbc379d6
......@@ -42,6 +42,7 @@ The format is based on [Keep a Changelog](
- Authentication: Added rate limit for password-authorized actions / login existence checks
- Static Frontend: Add the ability to render user profiles and notices server-side without requiring JS app.
- Mix task to re-count statuses for all users (`mix pleroma.count_statuses`)
- Mix task to list all users (`mix pleroma.user list`)
- Support for `X-Forwarded-For` and similar HTTP headers which used by reverse proxies to pass a real user IP address to the backend. Must not be enabled unless your instance is behind at least one reverse proxy (such as Nginx, Apache HTTPD or Varnish Cache).
- MRF: New module which handles incoming posts based on their age. By default, all incoming posts that are older than 2 days will be unlisted and not shown to their followers.
......@@ -15,6 +15,11 @@ $PREFIX new <nickname> <email> [<options>]
- `--admin`/`--no-admin` - whether the user should be an admin
- `-y`, `--assume-yes`/`--no-assume-yes` - whether to assume yes to all questions
## List local users
$PREFIX list
## Generate an invite link
$PREFIX invite [<options>]
......@@ -364,6 +364,24 @@ def run(["sign_out", nickname]) do
def run(["list"]) do
start_pleroma(){local: true})
|> Pleroma.RepoStreamer.chunk_stream(500)
|> Stream.each(fn users ->
|> Enum.each(fn user ->
"#{user.nickname} moderator: #{}, admin: #{}, locked: #{
}, deactivated: #{}"
defp set_moderator(user, value) do
{:ok, user} =
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment