---
title: CIAM Plus With Protect - Change Password - Subflow
description: The CIAM Plus With Protect - Change Password - Subflow lets users change their passwords.
component: pingone-solutions
page_id: pingone-solutions:pingone-customers-plus:flow_reference/ciam_plus_ciam_change_password
canonical_url: https://docs.pingidentity.com/pingone-solutions/pingone-customers-plus/flow_reference/ciam_plus_ciam_change_password.html
revdate: June 28, 2024
section_ids:
  purpose: Purpose
  structure: Structure
  input-schema: Input schema
  output-schema: Output schema
  variables: Variables
---

# CIAM Plus With Protect - Change Password - Subflow

The CIAM Plus With Protect - Change Password - Subflow lets users change their passwords.

## Purpose

The **CIAM Plus With Protect - Change Password - Subflow** displays a password reset form, letting users enter their current password and enter and verify a new password. If the new passwords match, the user's password is updated in PingOne.

## Structure

This flow is divided into sections using teleport nodes:

* **User Enter Password**

  Presents the user with an HTML password reset form. The flow then progresses to the **Update Password** section.

* **Update Password**

  Compares the new password and confirmed password. If they match, a PingOne node updates the user's password. The flow then either displays a success message for the user or progresses to the **Return Success** section, depending on the value of the `showSuccessMessage` input.

* **Return Success**

  Sends a JSON success message.

* **Return Error**

  Sends a JSON error message.

## Input schema

This flow has the following inputs:

| Input Name           | Required? | Description                                                                                                        |
| -------------------- | --------- | ------------------------------------------------------------------------------------------------------------------ |
| `p1UserID`           | Yes       | The user ID of the current user.                                                                                   |
| `showSuccessMessage` | No        | A boolean that indicates whether a success message should be displayed after the user's password has been changed. |
| `companyLogo`        | No        | The company logo.Used only when the main flow was launched using a redirect.                                       |

## Output schema

This flow has the following outputs:

| Output Name     | Description                                          |
| --------------- | ---------------------------------------------------- |
| `subflowResult` | The result status of the flow.                       |
| `errorMessage`  | The error message to display in the parent flow.     |
| `errorDetails`  | The details of the error that occurred in this flow. |

## Variables

This flow uses the following variables:

| Variable Name  | Description                                          |
| -------------- | ---------------------------------------------------- |
| `errorDetails` | The details of the error that occurred in this flow. |
