> ## 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.

# Set User Password

> POST request to set the password for a user. You must include the token generated when a new user was added or when a password reset token was requested.<br/><br/>A password cannot be set for a user enabled for SSO, i.e. a value for externalIdentifier has been set.



## OpenAPI

````yaml /api-reference/fleet-management.json post /public/v1/customer/{customerId}/user/password
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.masternautconnect.com/connect-webservices/services
    description: Product Server
security:
  - basicAuth: []
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}/user/password:
    post:
      tags:
        - /user
      summary: Set User Password
      description: >-
        POST request to set the password for a user. You must include the token
        generated when a new user was added or when a password reset token was
        requested.<br/><br/>A password cannot be set for a user enabled for SSO,
        i.e. a value for externalIdentifier has been set.
      operationId: resetPassword
      parameters:
        - name: customerId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json;charset=UTF-8:
            schema:
              $ref: '#/components/schemas/UpdatePasswordRequestDto'
      responses:
        '200':
          description: Password successfully set
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/UpdatePasswordResultDto'
        '400':
          description: Bad request
        '401':
          description: Cannot set password for SSO user
        '403':
          description: Token was either not found or expired
        '404':
          description: User not found
components:
  schemas:
    UpdatePasswordRequestDto:
      type: object
      properties:
        token:
          type: string
          description: >-
            Password reset token generated when user was created or password
            reset was requested
        newPassword:
          type: string
          description: New password to be set for the user
        reseller:
          type: string
          description: Reseller identifier
      description: Request DTO for updating a user's password with a reset token
    UpdatePasswordResultDto:
      type: object
      properties:
        personId:
          type: string
          description: Unique identifier of the person whose password was updated
        personName:
          type: string
          description: Display name of the person whose password was updated
      description: Result DTO returned after successfully updating a user's password
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````