---
title: "Check if user has password"
method: GET
path: "/api/users/{userId}/has-password"
tags: ["Users"]
---

# Check if user has password

`GET /api/users/{userId}/has-password`

Check if the user with the given ID has a password set.

## Path parameters

- `userId` string, required

## Response `200`

The result of the check.

- object
  - `hasPassword` boolean, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
