Skip to content

m365

List synced Microsoft 365 users

GET/v1/m365/users

Lists the Microsoft 365 users the M365 sync stored for this workspace, optionally for one client (through the client's active tenant mappings) and by MFA state. Ordered by user principal name and paged with an opaque cursor. A client with no active mapping has no users to list. This is the last sync's data, not a live Microsoft read.

Parameters

NameInRequiredTypeDescription
limitqueryNointeger—
cursorqueryNostring—
clientIdqueryNostring—
mfaFilterqueryNostring—

Request body

No request body.

Responses and errors

  • 200

    List synced Microsoft 365 users

    • data (required): array
    • nextCursor (required): object
  • 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
  • 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/m365/users' \
  --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? …