Skip to main content

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

User details retrieved successfully.