Docs
Live demo
POST/api/v2/identities/{id}/principal-credentials/reset-link
security:manageConsole session only

Issue a one-time password reset link for a Principal-managed user. Previously issued links are revoked. The link is returned once and lets the user set a new password themselves. An administrator with an enrolled second factor must have confirmed it within the re-authentication window (POST /auth/mfa/reauth). An API token makes this change only when it was issued with allow_security_changes.

Parameters

Path1 required of 1
idstringpathrequired

Identity ID (UUID)

Responses

200

One-time reset link issued

PrincipalPasswordResetLinkResponse · 2 fields
reset_urlstringrequired

One-time password reset link. Shown once and never persisted in plaintext.

expires_atstring · date-timerequired
403

Forbidden: the caller's roles do not grant the permission of the operation, or the administrator's second factor was not confirmed recently (details.reason=mfa_reauth_required), or the request uses an API token issued without allow_security_changes (details.reason=api_token_security_changes_not_allowed).

503

Reset links are unavailable because the Dex Principal connector base URL is not configured

Common errors: 400 401 404 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close