---
updatedAt: 2026-04-04T14:00:20.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/administration/llms.txt
---

# Set User Password as Expired

Set a user password as expired.

**Security:** Requires admin privileges.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "JFrog Platform - Users API",
    "description": "User management APIs for the JFrog Platform.\n**Authentication:** Access Tokens as bearer token in authorization header (Authorization: Bearer <token>)\n**Security:** Unless otherwise specified, all APIs require admin privileges.\n**Availability:** Artifactory 7.49.3+\n",
    "version": "1.0.0",
    "contact": {
      "name": "JFrog Support"
    }
  },
  "servers": [
    {
      "url": "https://{jfrog_url}"
    }
  ],
  "tags": [
    {
      "name": "Users",
      "description": "APIs for creating, updating, deleting, and managing JFrog Platform users, groups, and passwords."
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/access/api/v2/users/{username}/password/expire": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Set User Password as Expired",
        "description": "Set a user password as expired.\n\n**Security:** Requires admin privileges.\n",
        "operationId": "expireUserPassword",
        "parameters": [
          {
            "name": "username",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The username to expire password for"
          }
        ],
        "responses": {
          "204": {
            "description": "Successful - Password expired"
          },
          "401": {
            "description": "Bad Credentials - Invalid credentials"
          },
          "403": {
            "description": "Permission Denied - Insufficient permissions"
          },
          "404": {
            "description": "Not Found - Username not found"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Access Token as bearer token"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```