cURL
curl --request GET \ --url https://api.example.com/api/management/users/{id}
{ "success": true, "timestamp": "<string>", "data": { "data.id": 123, "data.email": "<string>", "data.firstName": "<string>", "data.lastName": "<string>", "data.roles": [ {} ] } }
Retrieve detailed information about a specific user
GET /api/management/users/{id}
Authorization: Bearer <your_jwt_token>
MEMBER
ADMIN
curl -X GET "http://localhost:8080/api/management/users/1" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{ "success": true, "timestamp": "2026-03-03T10:30:00Z", "data": { "id": 1, "email": "[email protected]", "firstName": "John", "lastName": "Doe", "roles": ["ADMIN", "MEMBER"] } }
{ "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." } }
{ "success": false, "timestamp": "2026-03-03T10:30:00Z", "error": { "code": "USER_NOT_FOUND", "message": "User not found with id: 999" } }