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

# Enable Driver as a User

> POST request to enable a driver as a Connect Web User.<br/><br/>You cannot include the password for the new user in the same request as enabling the driver as a user, instead you must use the Set User Password endpoint and include the token from the output response of this endpoint. The generated token will expire if it is not used within 30 days or if a password reset token is requested.<br/><br/>If a value for externalIdentifier is specified, then the user will be enabled for SSO and a Connect password cannot be set.



## OpenAPI

````yaml https://api.connectedfleet.michelin.com/fleet-management/api-docs post /public/v1/customer/{customerId}/driver/{driverId}/enableAsUser
openapi: 3.0.1
info:
  title: Fleet management
  description: >-
    A comprehensive administration pack enabling full control over fleet
    structures, users, drivers, vehicles and operational data.
  contact:
    name: Masternaut
    url: https://www.masternaut.com
    email: support@masternautconnect.com
  version: 124.0.2607160821
servers:
  - url: https://api.connectedfleet.michelin.com/fleet-management
    description: Product Server
security:
  - bearerAuth: []
tags:
  - name: /driver
    description: Driver Operations
  - name: /group
    description: Group operations
  - name: /location/category
    description: Location category management operations
  - name: /location
    description: Location management operations
  - name: /role
    description: Role operations
  - name: /tokenInformation
    description: Token operations
  - name: /user
    description: User operations
  - name: /maintenance
    description: Vehicle maintenance operations
  - name: /vehicle
    description: Vehicle management operations
paths:
  /public/v1/customer/{customerId}/driver/{driverId}/enableAsUser:
    post:
      tags:
        - /driver
      summary: Enable Driver as a User
      description: >-
        POST request to enable a driver as a Connect Web User.<br/><br/>You
        cannot include the password for the new user in the same request as
        enabling the driver as a user, instead you must use the Set User
        Password endpoint and include the token from the output response of this
        endpoint. The generated token will expire if it is not used within 30
        days or if a password reset token is requested.<br/><br/>If a value for
        externalIdentifier is specified, then the user will be enabled for SSO
        and a Connect password cannot be set.
      operationId: enableAsUser
      parameters:
        - name: customerId
          in: path
          required: true
          schema:
            type: string
        - name: driverId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserDto'
      responses:
        '200':
          description: Driver successfully enabled as a user
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/UserCreateResponseDto'
        '400':
          description: Bad request or validation error
        '404':
          description: Driver not found
components:
  schemas:
    UserDto:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the user
        customerId:
          type: string
          description: Identifier of the customer the user belongs to
        userName:
          type: string
          description: Username for authentication
        externalIdentifier:
          type: string
          description: External identifier for SSO integration
        fullName:
          type: string
          description: Full display name of the user
        emailAddress:
          type: string
          description: Email address of the user
        language:
          type: object
          properties:
            language:
              type: string
            script:
              type: string
            variant:
              type: string
            displayName:
              type: string
            country:
              type: string
            unicodeLocaleAttributes:
              uniqueItems: true
              type: array
              items:
                type: string
            unicodeLocaleKeys:
              uniqueItems: true
              type: array
              items:
                type: string
            displayLanguage:
              type: string
            displayScript:
              type: string
            displayCountry:
              type: string
            displayVariant:
              type: string
            extensionKeys:
              uniqueItems: true
              type: array
              items:
                type: string
            iso3Language:
              type: string
            iso3Country:
              type: string
          description: Preferred language locale
        timezone:
          type: string
          description: User's preferred timezone
        roleId:
          type: string
          description: Identifier of the user's role
        roleName:
          type: string
          description: Display name of the user's role
        groupId:
          type: string
          description: Identifier of the user's primary group
        groupName:
          type: string
          description: Display name of the user's primary group
        unitPreferences:
          type: object
          additionalProperties:
            type: string
            description: User's unit preference settings
          description: User's unit preference settings
        sendWelcomeEmail:
          type: boolean
          description: Flag indicating whether to send a welcome email
        secondaryGroups:
          type: array
          description: List of secondary groups the user belongs to
          items:
            $ref: '#/components/schemas/IdNameDto'
      description: >-
        Represents a user in the system with their profile information and
        access settings
    UserCreateResponseDto:
      type: object
      properties:
        token:
          type: string
          description: Password reset token for setting the new user's password
        expiryTime:
          type: string
          description: Expiration time for the password reset token
          format: date-time
        user:
          $ref: '#/components/schemas/UserDto'
      description: >-
        Response DTO returned after creating a new user, containing user details
        and password reset token
    IdNameDto:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the entity (alphanumeric)
        name:
          type: string
          description: Display name of the entity. Not returned if empty
      description: Simple identifier and name pair for groups, vehicles, or other entities.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````