Returns the list of roles the caller can assign to users and the distinct creators of the users visible to the caller (for the created_by filter on GET /api/users), respecting RBAC hierarchy.
Organizations dropdown is populated by the dedicated
/api/organizations endpoint, which supports search and pagination.
GET
/filters/users
curl \
--request GET 'https://api.your-domain.com/api/filters/users' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"code": 200,
"message": "user filters retrieved successfully",
"data": {
"roles": [
{
"id": "role_abc123",
"name": "Admin",
"description": "System administrator"
},
{
"id": "role_def456",
"name": "Support",
"description": "Support operator"
}
],
"created_by": [
{
"user_id": "kyfy0tlnlk3l",
"name": "Sviluppo - Integrazioni Esterne",
"email": "sviluppo+integrazioni@nethesis.it",
"organization_id": "eeex9cffzsd7",
"organization_name": "Nethesis Diretta"
}
]
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}