auth
Get user by ID
Get a specific user by ID (superadmin only)
get/auth/users/{userId}
Path parameters
userIdstring required
Response
User retrieved successfully
Example response
{
"success": true,
"msg": "Operation completed successfully",
"data": {
"_id": "64f123a456b789012c345def",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com"
}
}