---
title: "CHGResultOfSystemUserCreationResult"
url: "https://developer.tesma.com/apis/logistics-api-26/versions/484d1e1b-3201-4f8b-800b-867280d5b6a4/schemas/CHGResultOfSystemUserCreationResult"
---

> Full API specification: https://developer.tesma.com/apis/logistics-api-26/versions/484d1e1b-3201-4f8b-800b-867280d5b6a4.md

# CHGResultOfSystemUserCreationResult

## OpenAPI definition

```yaml
openapi: 3.1.1
info:
  title: " API v1"
  version: 26.13.0.0
components:
  schemas:
    CHGMessage:
      anyOf:
        - $ref: "#/components/schemas/CHGMessageTextMessage"
        - $ref: "#/components/schemas/CHGMessageExternalMessage"
        - $ref: "#/components/schemas/CHGMessageCHGExceptionMessage"
        - $ref: "#/components/schemas/CHGMessageBase"
      type: object
    SystemUserCreationResult:
      properties:
        newUser:
          $ref: "#/components/schemas/CorporateUser"
        userIdIfAlreadyAvailable:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
      type: object
    CHGMessageTextMessage:
      properties:
        $type:
          enum:
            - CHG.iCLASSFW.Base.Foundation.TextMessage,
              CHG.iCLASSFW.Base.Foundation
          type: string
        _additionalInfos:
          type:
            - "null"
            - string
        _message:
          type:
            - "null"
            - string
        _messageLogId:
          type:
            - "null"
            - string
        _messageType:
          $ref: "#/components/schemas/MessageType"
        _traceId:
          type:
            - "null"
            - string
        errorCategory:
          type:
            - "null"
            - string
        errorCode:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        formatArguments:
          type:
            - "null"
            - array
        messageKey:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        messageLogId:
          type:
            - "null"
            - string
        source:
          type:
            - "null"
            - string
        sourceObjectIdentifier:
          $ref: "#/components/schemas/ObjectInstanceIdentifier"
        traceId:
          type:
            - "null"
            - string
      required:
        - $type
        - _messageType
    CHGMessageExternalMessage:
      properties:
        $type:
          enum:
            - CHG.iCLASSFW.Base.Foundation.ExternalMessage,
              CHG.iCLASSFW.Base.Foundation
          type: string
        _additionalInfos:
          type:
            - "null"
            - string
        _message:
          type:
            - "null"
            - string
        _messageLogId:
          type:
            - "null"
            - string
        _messageType:
          $ref: "#/components/schemas/MessageType"
        _traceId:
          type:
            - "null"
            - string
        errorCategory:
          type:
            - "null"
            - string
        errorCode:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        formatArguments:
          type:
            - "null"
            - array
        messageKey:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        messageLogId:
          type:
            - "null"
            - string
        source:
          type:
            - "null"
            - string
        sourceObjectIdentifier:
          $ref: "#/components/schemas/ObjectInstanceIdentifier"
        traceId:
          type:
            - "null"
            - string
      required:
        - $type
        - _messageType
    CHGMessageCHGExceptionMessage:
      properties:
        $type:
          enum:
            - CHG.iCLASSFW.Base.Foundation.CHGExceptionMessage,
              CHG.iCLASSFW.Base.Foundation
          type: string
        _additionalInfos:
          type:
            - "null"
            - string
        _messageLogId:
          type:
            - "null"
            - string
        _messageType:
          $ref: "#/components/schemas/MessageType"
        _traceId:
          type:
            - "null"
            - string
        additionalInfos:
          type:
            - "null"
            - string
        errorCategory:
          type:
            - "null"
            - string
        errorCode:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        formatArguments:
          type:
            - "null"
            - array
        message:
          type:
            - "null"
            - string
        messageKey:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        messageLogId:
          type:
            - "null"
            - string
        source:
          type:
            - "null"
            - string
        sourceObjectIdentifier:
          $ref: "#/components/schemas/ObjectInstanceIdentifier"
        traceId:
          type:
            - "null"
            - string
      required:
        - $type
        - _messageType
    CHGMessageBase:
      properties:
        _additionalInfos:
          type:
            - "null"
            - string
        _messageLogId:
          type:
            - "null"
            - string
        _messageType:
          $ref: "#/components/schemas/MessageType"
        _traceId:
          type:
            - "null"
            - string
        errorCategory:
          type:
            - "null"
            - string
        errorCode:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        formatArguments:
          type:
            - "null"
            - array
        messageKey:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        messageLogId:
          type:
            - "null"
            - string
        source:
          type:
            - "null"
            - string
        sourceObjectIdentifier:
          $ref: "#/components/schemas/ObjectInstanceIdentifier"
        traceId:
          type:
            - "null"
            - string
      required:
        - _messageType
    CorporateUser:
      properties:
        _changedProperties:
          type:
            - "null"
            - object
        _changedPropertyNames:
          items:
            type: string
          type:
            - "null"
            - array
        _internalReferenceID:
          type:
            - "null"
            - string
        additionalProperties:
          type:
            - "null"
            - object
        corporateJobprofiles:
          items:
            $ref: "#/components/schemas/CorporateJobprofile2User"
          type:
            - "null"
            - array
        createDate:
          format: date-time
          type: string
        createUser:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        dataState:
          $ref: "#/components/schemas/BusinessObjectState"
        emailAddress:
          type:
            - "null"
            - string
        firstName:
          type:
            - "null"
            - string
        hasExtendedReadLog:
          type: boolean
        id:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        idPUserId:
          type:
            - "null"
            - string
        isActive:
          type: boolean
        isMaintenanceUser:
          type: boolean
        isSystemUser:
          type: boolean
        lastName:
          type:
            - "null"
            - string
        office:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        receiveDeputyNotificationCopy:
          type: boolean
        salesPersonNo:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        updateDate:
          format: date-time
          type: string
        updateUser:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        user2SalesPerson:
          $ref: "#/components/schemas/User2SalesPerson"
        userName:
          type:
            - "null"
            - string
      type: object
    MessageType:
      type: integer
    ObjectInstanceIdentifier:
      properties:
        keyValues:
          type:
            - "null"
            - object
        referenceID:
          type:
            - "null"
            - string
        typeName:
          type:
            - "null"
            - string
      type: object
    CorporateJobprofile2User:
      properties:
        _changedProperties:
          type:
            - "null"
            - object
        _changedPropertyNames:
          items:
            type: string
          type:
            - "null"
            - array
        _internalReferenceID:
          type:
            - "null"
            - string
        additionalProperties:
          type:
            - "null"
            - object
        companyID:
          format: int16
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        corpCreateDate:
          format: date-time
          type: string
        corpCreateUser:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        corpUpdateDate:
          format: date-time
          type: string
        corpUpdateUser:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        createDate:
          format: date-time
          type: string
        createUser:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        dataState:
          $ref: "#/components/schemas/BusinessObjectState"
        isDefault:
          type: boolean
        jobprofileID:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        lineManagerUserId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        recordPermission:
          $ref: "#/components/schemas/RecordPermissions"
        updateDate:
          format: date-time
          type: string
        updateUser:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        userID:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
      type: object
    BusinessObjectState:
      type: integer
    User2SalesPerson:
      properties:
        _changedProperties:
          type:
            - "null"
            - object
        _changedPropertyNames:
          items:
            type: string
          type:
            - "null"
            - array
        _internalReferenceID:
          type:
            - "null"
            - string
        additionalProperties:
          type:
            - "null"
            - object
        createDate:
          format: date-time
          type: string
        createUser:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        dataState:
          $ref: "#/components/schemas/BusinessObjectState"
        salesPersonNo:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        userID:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
      type: object
    RecordPermissions:
      type: integer
    CHGResultOfSystemUserCreationResult:
      properties:
        messages:
          items:
            $ref: "#/components/schemas/CHGMessage"
          type:
            - "null"
            - array
        response:
          $ref: "#/components/schemas/SystemUserCreationResult"
      type: object
```
