> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nextmed.med.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Get admin serviceusers 1



## OpenAPI

````yaml /openapi.json get /admin-service/users/{id}
openapi: 3.0.1
info:
  title: NextMed's Admin Service
  description: Documentation Admin Service v1.0.0
  contact:
    name: NextMed
    email: medchatbr@gmail.com
  version: 1.0.0
servers:
  - url: http://localhost:8081
    description: Admin Service (local)
  - url: http://localhost:8080/admin-service
    description: Local API (gateway)
security: []
tags:
  - name: User Controller
    description: Endpoints to handle users
  - name: Profile Controller
    description: Endpoints to handle user's profiles
  - name: Institution Controller
    description: Endpoints to handle institutions
  - name: Unity Controller
    description: Endpoints to handle institution's unities
  - name: Specialty Controller
    description: Endpoints to handle the available specialties
  - name: Protocol Controller
    description: >-
      Endpoints to manage clinical protocols (Admin): CRUD protocol, forms,
      questions, options, score ranges
paths:
  /admin-service/users/{id}:
    get:
      tags:
        - User Controller
      parameters:
        - name: origin
          in: header
          required: true
          schema:
            type: string
        - name: id
          description: User id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/UserResponse'
        '401':
          description: Unauthorized
        '404':
          description: Bad Request
components:
  schemas:
    UserResponse:
      type: object
      properties:
        firstName:
          type: string
        lastName:
          type: string
        gender:
          type: string
          enum:
            - FEMININE
            - MASCULINE
        document:
          type: string
        birthDate:
          type: string
          format: date
        dialingCode:
          type: string
        phone:
          type: string
        enabled:
          type: boolean
        id:
          type: string
          format: uuid
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        email:
          type: string
        profiles:
          type: array
          items:
            $ref: '#/components/schemas/UserProfileResponse'
        auth:
          type: array
          items:
            $ref: '#/components/schemas/UserAuthResponse'
        ratings:
          type: array
        unities:
          type: array
        institutions:
          type: array
    UserProfileResponse:
      type: object
      properties:
        userId:
          type: string
          format: uuid
        approvalStatus:
          type: string
          enum:
            - ANALYSING
            - APPROVED
            - REJECTED
        documentDoctor:
          type: string
        documentDoctorUpdatedAt:
          type: string
          format: date
        type:
          type: string
          enum:
            - DOCTOR_GENERALIST
            - DOCTOR_SPECIALIST
            - DEVELOPER
            - STAFF
            - INSTITUTION_ADMIN
            - INSTITUTION_COORD
        enabled:
          type: boolean
        id:
          type: string
          format: uuid
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        specialties:
          type: array
          items:
            $ref: '#/components/schemas/Specialty'
    UserAuthResponse:
      required:
        - type
      type: object
      properties:
        userId:
          type: string
          format: uuid
        externalAuthId:
          type: string
        email:
          type: string
        type:
          type: string
          enum:
            - USERPASS
            - GOOGLE
    Specialty:
      type: object
      properties:
        id:
          type: string
          format: uuid
        userProfileId:
          type: string
          format: uuid
        specialtyId:
          type: string
          format: uuid
        enabled:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time

````