Some changes in this call need a fresh second factor. A token cannot give a second factor, so such a change gets 403 auth.api_token_not_allowed. Make it in the console.
Mark or unmark a person of the caller organization as required to use a second factor. The mark counts while the organization requires a second factor from selected people and administrators (mfa_required_for_selected). A marked person without a second factor sets one up at the next sign-in. Open sessions stay. A change needs a recently confirmed second factor of an administrator who has one (POST /auth/mfa/reauth). Saving the current value changes nothing and needs none. An API token makes this change only when it was issued with allow_security_changes.
Parameters
Identity ID.
Request body application/json · IdentityMFARequirementRequest
True marks the person, false removes the mark.
Responses
OK
IdentityMFARequirementResponse · 5 fields
False when the installation does not offer a second factor. Then nobody is asked for one.
The person has an active second factor.
An administrator marked the person.
What the organization of the person requires: off, selected (marked people and administrators) or everyone.
offselectedeveryoneWhy a second factor is required: organization (from everyone), administrator (the person holds the admin role while the organization requires selected people and administrators), selected (the person is marked). Null when it is not required.
organizationadministratorselectedBad Request: the identity is a group, or the body is invalid.
Forbidden: the caller's roles do not grant the permission of the operation, the person holds permissions the caller does not, the administrator has a second factor that 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).
Common errors: 401 404 409 413 429 500 503 504. They mean the same for every operation, see Errors.