### List users
- Method `GET`
+- Params:
+ - `page`: **integer** page number
+ - `page_size`: **integer** number of users per page (default is `50`)
- Response:
```JSON
-[
+{
+ "page_size": integer,
+ "count": integer,
+ "users": [
{
- "deactivated": bool,
- "id": integer,
- "nickname": string
+ "deactivated": bool,
+ "id": integer,
+ "nickname": string
},
...
-]
+ ]
+}
```
-## `/api/pleroma/admin/users/search?query={query}&local={local}`
+## `/api/pleroma/admin/users/search?query={query}&local={local}&page={page}&page_size={page_size}`
### Search users by name or nickname
- Params:
- `query`: **string** search term
- `local`: **bool** whether to return only local users
+ - `page`: **integer** page number
+ - `page_size`: **integer** number of users per page (default is `50`)
- Response:
```JSON
-[
+{
+ "page_size": integer,
+ "count": integer,
+ "users": [
{
- "deactivated": bool,
- "id": integer,
- "nickname": string
+ "deactivated": bool,
+ "id": integer,
+ "nickname": string
},
...
-]
+ ]
+}
```
## `/api/pleroma/admin/user`
```JSON
{
- "deactivated": bool,
- "id": integer,
- "nickname": string
+ "deactivated": bool,
+ "id": integer,
+ "nickname": string
}
```
```JSON
{
- "is_moderator": bool,
- "is_admin": bool
+ "is_moderator": bool,
+ "is_admin": bool
}
```
```JSON
{
- "is_moderator": bool,
- "is_admin": bool
+ "is_moderator": bool,
+ "is_admin": bool
}
```