Reset a member's multi-factor authentication
/api/v1/organizations/{id}/members/{identityId}/mfa/resetThe organization's own administrator, or the developer, clears a member's multi-factor enrolment: every factor and the recovery codes, held once per identity, and the devices trusted in this Environment, so the person enrols afresh at their next sign-in. For a member who lost their authenticator. Sessions already open are left alone. Audited as identity.mfa.admin.forced_reset. Returns 404 when the identity is not a member. Responds 204 No Content; requires hierarchy.manage or canopy:organization.manage at the organization.
Authentication
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
Path Parameters
idstring Required identityIdstring Required Responses
Factors and recovery codes cleared, and the devices trusted in this Environment; the member enrols again at their next sign-in
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
curl -X POST "https://auth.canopy-io.com/api/v1/organizations/value/members/value/mfa/reset" \ -H "X-API-Key: $CANOPY_API_KEY"
HTTP/1.1 204 Factors and recovery codes cleared, and the devices trusted in this Environment; the member enrols again at their next sign-in (empty body)
Tell us how we can improve this guide.