Get user details by ID
GET/company/users/:id
Returns the complete information of a specific company user.
Objective
Allow viewing the profile of any company user, useful for administrators and managers.
Use Cases
- View another user's profile (admin/manager only)
- Verify contact information
- Consult data of a specific user
Authentication
- Requires valid JWT (m.isLoged middleware)
- User must be authenticated
- Only returns data if the user belongs to the same company
Notes
- Non-administrator users can view their own profile
- The controller verifies that the user belongs to the company
Request
Responses
- 200
- 401
- 404
User details retrieved successfully.
Unauthorized. Possible causes:
- Invalid or expired JWT token
- User does not have permission to view this profile
User not found