cURL
curl --request GET \ --url https://api.example.com/api/management/users
{ "success": true, "timestamp": "<string>", "data": { "data.content": [ { "content[].id": 123, "content[].email": "<string>", "content[].firstName": "<string>", "content[].lastName": "<string>", "content[].roles": [ {} ] } ], "data.pageable": { "pageable.pageNumber": 123, "pageable.pageSize": 123, "pageable.offset": 123 }, "data.totalPages": 123, "data.totalElements": 123, "data.size": 123, "data.number": 123, "data.first": true, "data.last": true, "data.empty": true } }
Retrieve a paginated list of all users in the system
GET /api/management/users
Authorization: Bearer <your_jwt_token>
id,desc
id
email
firstName
lastName
ApiResponse
MEMBER
ADMIN
curl -X GET "http://localhost:8080/api/management/users?page=0&size=20&sort=id,desc" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{ "success": true, "timestamp": "2026-03-03T10:30:00Z", "data": { "content": [ { "id": 1, "email": "[email protected]", "firstName": "John", "lastName": "Doe", "roles": ["ADMIN", "MEMBER"] }, { "id": 2, "email": "[email protected]", "firstName": "Jane", "lastName": "Smith", "roles": ["MEMBER"] } ], "pageable": { "pageNumber": 0, "pageSize": 20, "offset": 0 }, "totalPages": 1, "totalElements": 2, "size": 2, "number": 0, "first": true, "last": true, "empty": false } }
{ "success": false, "timestamp": "2026-03-03T10:30:00Z", "error": { "code": "UNAUTHORIZED", "message": "Authentication required" } }
{ "success": false, "timestamp": "2026-03-03T10:30:00Z", "error": { "code": "FORBIDDEN", "message": "Access denied. ADMIN role required." } }