3 Authentication is required and the user must be an admin.
5 ## `/api/pleroma/admin/users`
23 ## `/api/pleroma/admin/users/search?query={query}&local={local}`
25 ### Search users by name or nickname
29 - `query`: **string** search term
30 - `local`: **bool** whether to return only local users
44 ## `/api/pleroma/admin/user`
51 - Response: User’s nickname
60 - Response: User’s nickname
62 ## `/api/pleroma/admin/users/:nickname/toggle_activation`
64 ### Toggle user activation
69 - Response: User’s object
79 ## `/api/pleroma/admin/users/tag`
81 ### Tag a list of users
88 ### Untag a list of users
95 ## `/api/pleroma/admin/permission_group/:nickname`
97 ### Get user user permission groups membership
105 "is_moderator": bool,
110 ## `/api/pleroma/admin/permission_group/:nickname/:permission_group`
112 Note: Available `:permission_group` is currently moderator and admin. 404 is returned when the permission group doesn’t exist.
114 ### Get user user permission groups membership
122 "is_moderator": bool,
127 ### Add user in permission group
132 - On failure: `{"error": "…"}`
133 - On success: JSON of the `user.info`
135 ### Remove user from permission group
140 - On failure: `{"error": "…"}`
141 - On success: JSON of the `user.info`
142 - Note: An admin cannot revoke their own admin status.
144 ## `/api/pleroma/admin/activation_status/:nickname`
146 ### Active or deactivate a user
151 - `status` BOOLEAN field, false value means deactivation.
153 ## `/api/pleroma/admin/relay`
161 - On success: URL of the followed relay
169 - On success: URL of the unfollowed relay
171 ## `/api/pleroma/admin/invite_token`
173 ### Get a account registeration invite token
177 - Response: invite token (base64 string)
179 ## `/api/pleroma/admin/email_invite`
181 ### Sends registration invite via email
188 ## `/api/pleroma/admin/password_reset`
190 ### Get a password reset token for a given nickname
194 - Response: password reset token (base64 string)