---
title: "Expire Password"
method: POST
path: "/api/v1/users/{userId}/lifecycle/expire_password?tempPassword=true"
tags: ["User"]
---

# Expire Password

`POST /api/v1/users/{userId}/lifecycle/expire_password?tempPassword=true`

## Request

- Base URL: `https://your-subdomain.okta.com`
- URL: `https://your-subdomain.okta.com/api/v1/users/{userId}/lifecycle/expire_password?tempPassword=true`
- Auth: API key in header `Authorization`

This operation transitions the user to the status of `PASSWORD_EXPIRED` and the user's password is reset to a temporary password that is returned.

## Path parameters

- `userId` string, required

## Response `200`

Success

- TempPassword
  - `tempPassword` string

---

[API](https://skmtc.dev/okta/apis/okta-api.md) - [All operations](https://skmtc.dev/okta/apis/okta-api/llms.txt) - [OpenAPI document](https://skmtc.dev/okta/apis/okta-api/revisions/7e5249c30571?raw)
