Admin API filter to search users by username

This commit is contained in:
Quentin Gliech
2025-09-15 12:37:48 +02:00
parent d458160c53
commit cb8c408489
7 changed files with 86 additions and 3 deletions

View File

@@ -915,6 +915,17 @@
},
"style": "form"
},
{
"in": "query",
"name": "filter[search]",
"description": "Retrieve users where the username matches contains the given string\n\nNote that this doesn't change the ordering of the result, which are still ordered by ID.",
"schema": {
"description": "Retrieve users where the username matches contains the given string\n\nNote that this doesn't change the ordering of the result, which are still ordered by ID.",
"type": "string",
"nullable": true
},
"style": "form"
},
{
"in": "query",
"name": "filter[status]",
@@ -3893,6 +3904,11 @@
"type": "boolean",
"nullable": true
},
"filter[search]": {
"description": "Retrieve users where the username matches contains the given string\n\nNote that this doesn't change the ordering of the result, which are still ordered by ID.",
"type": "string",
"nullable": true
},
"filter[status]": {
"description": "Retrieve the items with the given status\n\nDefaults to retrieve all users, including locked ones.\n\n* `active`: Only retrieve active users\n\n* `locked`: Only retrieve locked users (includes deactivated users)\n\n* `deactivated`: Only retrieve deactivated users",
"$ref": "#/components/schemas/UserStatus",