3 Authentication is required and the user must be an admin.
5 ## `/api/pleroma/admin/users`
11 - `query`: **string** *optional* search term
12 - `local_only`: **bool** *optional* whether to return only local users
13 - `page`: **integer** *optional* page number
14 - `page_size`: **integer** *optional* number of users per page (default is `50`)
32 ## `/api/pleroma/admin/user`
39 - Response: User’s nickname
48 - Response: User’s nickname
50 ## `/api/pleroma/admin/users/:nickname/toggle_activation`
52 ### Toggle user activation
57 - Response: User’s object
67 ## `/api/pleroma/admin/users/tag`
69 ### Tag a list of users
76 ### Untag a list of users
83 ## `/api/pleroma/admin/permission_group/:nickname`
85 ### Get user user permission groups membership
98 ## `/api/pleroma/admin/permission_group/:nickname/:permission_group`
100 Note: Available `:permission_group` is currently moderator and admin. 404 is returned when the permission group doesn’t exist.
102 ### Get user user permission groups membership
110 "is_moderator": bool,
115 ### Add user in permission group
120 - On failure: `{"error": "…"}`
121 - On success: JSON of the `user.info`
123 ### Remove user from permission group
128 - On failure: `{"error": "…"}`
129 - On success: JSON of the `user.info`
130 - Note: An admin cannot revoke their own admin status.
132 ## `/api/pleroma/admin/activation_status/:nickname`
134 ### Active or deactivate a user
139 - `status` BOOLEAN field, false value means deactivation.
141 ## `/api/pleroma/admin/relay`
149 - On success: URL of the followed relay
157 - On success: URL of the unfollowed relay
159 ## `/api/pleroma/admin/invite_token`
161 ### Get a account registeration invite token
165 - Response: invite token (base64 string)
167 ## `/api/pleroma/admin/email_invite`
169 ### Sends registration invite via email
176 ## `/api/pleroma/admin/password_reset`
178 ### Get a password reset token for a given nickname
182 - Response: password reset token (base64 string)