Skip to content

compliance

Read a client's Microsoft 365 MFA status

GET/v1/clients/{clientId}/compliance/mfa

Counts the client's synced Microsoft 365 users with MFA, without MFA, and with an unknown MFA state, through the client's active tenant mappings. A user is unknown when Microsoft refused or failed the MFA read; unknown users are in neither the enabled nor the disabled count. With filter `mfa_enabled` or `mfa_disabled` it also lists up to `limit` of those users. The counts are always the client's totals.

Parameters

NameInRequiredTypeDescription
clientIdpathYesstring—
filterqueryNostring—
limitqueryNointeger—

Request body

No request body.

Responses and errors

  • 200

    Read a client's Microsoft 365 MFA status

    • clientId (required): string
    • mapped (required): boolean
    • totalUsers (required): integer
    • mfaEnabled (required): integer
    • mfaDisabled (required): integer
    • mfaUnknown (required): integer
    • percentage (required): integer
    • users (required): array
  • 400

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • ValidationFailedError:
    • allOf: ErrorEnvelope
  • 401

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • UnauthorizedError:
    • allOf: ErrorEnvelope
  • 403

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • ForbiddenError:
    • allOf: ErrorEnvelope
  • 404

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • NotFoundError:
    • allOf: ErrorEnvelope
  • 429

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • RateLimitedError:
    • allOf: ErrorEnvelope
  • 503

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • UnavailableError:
    • allOf: ErrorEnvelope

Example

curl --request GET \
  --url 'https://api.scopable.io/v1/clients/{clientId}/compliance/mfa' \
  --header 'Authorization: Bearer $SCOPABLE_API_KEY'

Replace $SCOPABLE_API_KEY with a key created in Settings, API.

View the OpenAPI 3.1 source

Need help with the API? …