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

# Read a member by Microsoft user id

> Read a member Microsoft user id



## OpenAPI

````yaml https://api.absentify.com/api/v1/openapi.json get /members/microsoft/{microsoft_user_id}
openapi: 3.1.0
info:
  title: absentify CRUD API
  description: OpenAPI compliant REST API
  version: 1.0.0
servers:
  - url: https://api.absentify.com/api/v1
security: []
tags:
  - name: Departments
  - name: Leave types
  - name: Members
  - name: Requests
  - name: Public holidays
  - name: Workspace
  - name: Absences
  - name: Allowance Management
externalDocs:
  url: https://absentify.com/docs/en/api-reference
paths:
  /members/microsoft/{microsoft_user_id}:
    get:
      tags:
        - Members
      summary: Read a member by Microsoft user id
      description: Read a member Microsoft user id
      operationId: member-getMemberByMicrosoftId
      parameters:
        - in: path
          name: microsoft_user_id
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      id:
                        type: string
                      custom_id:
                        anyOf:
                          - type: string
                          - type: 'null'
                      name:
                        anyOf:
                          - type: string
                          - type: 'null'
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                      allowances:
                        type: array
                        items:
                          type: object
                          properties:
                            remaining:
                              type: number
                            brought_forward:
                              type: number
                            allowance:
                              type: number
                            taken:
                              type: number
                            year:
                              type: number
                            compensatory_time_off:
                              type: number
                            updatedAt:
                              type: string
                            createdAt:
                              type: string
                            id:
                              type: string
                            allowance_type:
                              type: object
                              properties:
                                id:
                                  type: string
                                name:
                                  type: string
                                ignore_allowance_limit:
                                  type: boolean
                              required:
                                - id
                                - name
                                - ignore_allowance_limit
                              additionalProperties: false
                          required:
                            - remaining
                            - brought_forward
                            - allowance
                            - taken
                            - year
                            - compensatory_time_off
                            - updatedAt
                            - createdAt
                            - id
                            - allowance_type
                          additionalProperties: false
                      allowance_type_configurations:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            allowance_type_id:
                              type: string
                            default:
                              type: boolean
                            disabled:
                              type: boolean
                          required:
                            - id
                            - allowance_type_id
                            - default
                            - disabled
                          additionalProperties: false
                      allowance_type_configurtaions:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            allowance_type_id:
                              type: string
                            default:
                              type: boolean
                            disabled:
                              type: boolean
                          required:
                            - id
                            - allowance_type_id
                            - default
                            - disabled
                          additionalProperties: false
                        description: 'DEPRECATED: Use allowance_type_configurations instead'
                      approval_process:
                        type: string
                        enum:
                          - Linear_all_have_to_agree
                          - Linear_one_has_to_agree
                          - Parallel_all_have_to_agree
                          - Parallel_one_has_to_agree
                      status:
                        type: string
                        enum:
                          - INACTIVE
                          - ACTIVE
                          - ARCHIVED
                      birthday:
                        anyOf:
                          - type: string
                          - type: 'null'
                      employment_start_date:
                        anyOf:
                          - type: string
                          - type: 'null'
                      employment_end_date:
                        anyOf:
                          - type: string
                          - type: 'null'
                      email:
                        anyOf:
                          - type: string
                          - type: 'null'
                      departments:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            name:
                              type: string
                            manager_type:
                              type: string
                              enum:
                                - Member
                                - Manager
                            is_hidden:
                              type: boolean
                          required:
                            - id
                            - name
                            - manager_type
                            - is_hidden
                          additionalProperties: false
                      is_admin:
                        type: boolean
                      has_approvers:
                        type: array
                        items:
                          type: object
                          properties:
                            member:
                              type: object
                              properties:
                                id:
                                  type: string
                                name:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                email:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                              required:
                                - id
                                - name
                                - email
                              additionalProperties: false
                          required:
                            - member
                          additionalProperties: false
                      approver_config:
                        type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - custom
                              - department
                              - microsoft
                          department_id:
                            anyOf:
                              - type: string
                              - type: 'null'
                          microsoft_sync_level:
                            anyOf:
                              - type: number
                              - type: 'null'
                        required:
                          - type
                          - department_id
                          - microsoft_sync_level
                        additionalProperties: false
                      schedules:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            from:
                              anyOf:
                                - type: string
                                - type: 'null'
                            monday_am_start:
                              type: string
                            monday_am_end:
                              type: string
                            monday_pm_start:
                              type: string
                            monday_pm_end:
                              type: string
                            monday_am_enabled:
                              type: boolean
                            monday_pm_enabled:
                              type: boolean
                            monday_deduct_fullday:
                              type: boolean
                            tuesday_am_start:
                              type: string
                            tuesday_am_end:
                              type: string
                            tuesday_pm_start:
                              type: string
                            tuesday_pm_end:
                              type: string
                            tuesday_am_enabled:
                              type: boolean
                            tuesday_pm_enabled:
                              type: boolean
                            tuesday_deduct_fullday:
                              type: boolean
                            wednesday_am_start:
                              type: string
                            wednesday_am_end:
                              type: string
                            wednesday_pm_start:
                              type: string
                            wednesday_pm_end:
                              type: string
                            wednesday_am_enabled:
                              type: boolean
                            wednesday_pm_enabled:
                              type: boolean
                            wednesday_deduct_fullday:
                              type: boolean
                            thursday_am_start:
                              type: string
                            thursday_am_end:
                              type: string
                            thursday_pm_start:
                              type: string
                            thursday_pm_end:
                              type: string
                            thursday_am_enabled:
                              type: boolean
                            thursday_pm_enabled:
                              type: boolean
                            thursday_deduct_fullday:
                              type: boolean
                            friday_am_start:
                              type: string
                            friday_am_end:
                              type: string
                            friday_pm_start:
                              type: string
                            friday_pm_end:
                              type: string
                            friday_am_enabled:
                              type: boolean
                            friday_pm_enabled:
                              type: boolean
                            friday_deduct_fullday:
                              type: boolean
                            saturday_am_start:
                              type: string
                            saturday_am_end:
                              type: string
                            saturday_pm_start:
                              type: string
                            saturday_pm_end:
                              type: string
                            saturday_am_enabled:
                              type: boolean
                            saturday_pm_enabled:
                              type: boolean
                            saturday_deduct_fullday:
                              type: boolean
                            sunday_am_start:
                              type: string
                            sunday_am_end:
                              type: string
                            sunday_pm_start:
                              type: string
                            sunday_pm_end:
                              type: string
                            sunday_am_enabled:
                              type: boolean
                            sunday_pm_enabled:
                              type: boolean
                            sunday_deduct_fullday:
                              type: boolean
                            updatedAt:
                              type: string
                            createdAt:
                              type: string
                          required:
                            - id
                            - from
                            - monday_am_start
                            - monday_am_end
                            - monday_pm_start
                            - monday_pm_end
                            - monday_am_enabled
                            - monday_pm_enabled
                            - monday_deduct_fullday
                            - tuesday_am_start
                            - tuesday_am_end
                            - tuesday_pm_start
                            - tuesday_pm_end
                            - tuesday_am_enabled
                            - tuesday_pm_enabled
                            - tuesday_deduct_fullday
                            - wednesday_am_start
                            - wednesday_am_end
                            - wednesday_pm_start
                            - wednesday_pm_end
                            - wednesday_am_enabled
                            - wednesday_pm_enabled
                            - wednesday_deduct_fullday
                            - thursday_am_start
                            - thursday_am_end
                            - thursday_pm_start
                            - thursday_pm_end
                            - thursday_am_enabled
                            - thursday_pm_enabled
                            - thursday_deduct_fullday
                            - friday_am_start
                            - friday_am_end
                            - friday_pm_start
                            - friday_pm_end
                            - friday_am_enabled
                            - friday_pm_enabled
                            - friday_deduct_fullday
                            - saturday_am_start
                            - saturday_am_end
                            - saturday_pm_start
                            - saturday_pm_end
                            - saturday_am_enabled
                            - saturday_pm_enabled
                            - saturday_deduct_fullday
                            - sunday_am_start
                            - sunday_am_end
                            - sunday_pm_start
                            - sunday_pm_end
                            - sunday_am_enabled
                            - sunday_pm_enabled
                            - sunday_deduct_fullday
                            - updatedAt
                            - createdAt
                          additionalProperties: false
                    required:
                      - id
                      - custom_id
                      - name
                      - createdAt
                      - updatedAt
                      - allowances
                      - allowance_type_configurations
                      - allowance_type_configurtaions
                      - approval_process
                      - status
                      - birthday
                      - employment_start_date
                      - employment_end_date
                      - email
                      - departments
                      - is_admin
                      - has_approvers
                      - approver_config
                      - schedules
                    additionalProperties: false
                  - type: 'null'
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.NOT_FOUND'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
      security:
        - ApiKey: []
components:
  schemas:
    error.BAD_REQUEST:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Invalid input data
        code:
          type: string
          description: The error code
          example: BAD_REQUEST
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
      title: Invalid input data error (400)
      description: The error information
      example:
        code: BAD_REQUEST
        message: Invalid input data
        issues: []
    error.UNAUTHORIZED:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Authorization not provided
        code:
          type: string
          description: The error code
          example: UNAUTHORIZED
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
      title: Authorization not provided error (401)
      description: The error information
      example:
        code: UNAUTHORIZED
        message: Authorization not provided
        issues: []
    error.FORBIDDEN:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Insufficient access
        code:
          type: string
          description: The error code
          example: FORBIDDEN
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
      title: Insufficient access error (403)
      description: The error information
      example:
        code: FORBIDDEN
        message: Insufficient access
        issues: []
    error.NOT_FOUND:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Not found
        code:
          type: string
          description: The error code
          example: NOT_FOUND
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
      title: Not found error (404)
      description: The error information
      example:
        code: NOT_FOUND
        message: Not found
        issues: []
    error.INTERNAL_SERVER_ERROR:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Internal server error
        code:
          type: string
          description: The error code
          example: INTERNAL_SERVER_ERROR
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
            additionalProperties: false
      required:
        - message
        - code
      additionalProperties: false
      title: Internal server error error (500)
      description: The error information
      example:
        code: INTERNAL_SERVER_ERROR
        message: Internal server error
        issues: []
  securitySchemes:
    ApiKey:
      type: apiKey
      name: X-API-KEY
      in: header

````