/api/organizations/{organization_id}/mfa-requirementAuthenticatedGet an organization's MFA requirement
Whether the organization requires its members to use multi-factor authentication, and with which grace period. Organization owners and platform administrators also get the members who have no MFA, with their grace period. Members of the organization and platform administrators may call it.
get_api_organizations_organization_id_mfa_requirementOrganizationsAuthentication & permissionsAuthenticated
Any authenticated user
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Any authenticated user
- Notes
- The caller must be a member of the organization or a platform administrator;
members_without_mfais only listed for owners and platform administrators.
Path parameters
| Name | Type | Description |
|---|---|---|
| organization_id* | string | Organization id (URL-safe slug) |
Responses
| Property | Type | Description |
|---|---|---|
| success* | true | |
| message* | string | |
| data* | object | |
| requirement* | OrganizationMfaRequirement | |
| organization_id* | string | minLength: 4maxLength: 32pattern: ^[a-z][a-z0-9_-]+$ |
| required* | boolean | Whether the organization requires its members to use MFA |
| grace_period_days* | integer | null | null | Grace period of members without MFA, in days; null when MFA is not required minimum: 1maximum: 90 |
| required_since* | number | null | null | Unix epoch milliseconds MFA became required; null when it is not |
| updated_at* | number | null | null | Unix epoch milliseconds the requirement was last changed; null when MFA is not required |
| caller_has_mfa* | boolean | Whether the caller has a verified MFA factor |
| members_without_mfa* | OrganizationMemberWithoutMfa[] | null | null | Members without MFA, soonest grace period end first; empty when MFA is not required. Only listed for organization owners and platform administrators (null for other members). |
| uid* | string (uuid) | The member's user id |
| email* | string (email) | |
| role* | string | Membership role in the organization: |
| membership_created_at* | number | Unix epoch milliseconds the membership was created |
| status* | "pending" | "grace_period" | "expired" |
|
| grace_period_reason* | "requirement_enabled" | "mfa_removed" | null | null | Why the grace period started: |
| grace_period_ends_at* | number | null | null | Unix epoch milliseconds the grace period ends; null while none was started |
| notified_at* | number | null | null | When the member was emailed about the requirement; null until they were |
Example request
curl -X GET 'https://auth.schemavaults.com/api/organizations/<organization_id>/mfa-requirement' \
-b 'refresh_token_<auth_server_app_id>=<value>'