Reset a user's two-factor
Deletes the TOTP secret and the recovery codes, and ends the sessions of the user. For a lost device. An admin cannot reset the own two-factor here. An OIDC user has no two-factor here: 409.
DELETE
/api/v1/users/{id}/two-factorAuthorization
tse_sessionAPI key · cookierequiredPath parameters
idstringrequiredResponses
200
OK
created_atstring<date-time>requireddisabledbooleanrequireddisplay_namestringrequiredidstringrequiredlast_login_atstring<date-time>must_change_passwordbooleanrequiredrolestringrequiredThe default role. none: the user sees only the database services of the grants
Allowed:
nonevieweroperatoradminservice_grantsAuthMeServiceGrant[]requiredThe roles of the user on single database services
Show propertiesHide properties
Array of
AuthMeServiceGrantrolestringrequiredAllowed:
vieweroperatorservice_idstringrequiredsourcestringrequiredlocal: a username and a password. oidc: a user of the identity provider. The first SSO login adds the user, and each login sets the role from the claims
Allowed:
localoidctwo_factorbooleanrequiredThe user has confirmed TOTP two-factor authentication
updated_atstring<date-time>requiredusernamestringrequireddefault
Error
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message