m365
List synced Microsoft 365 users
/v1/m365/usersLists 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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| limit | query | No | integer | — |
| cursor | query | No | string | — |
| clientId | query | No | string | — |
| mfaFilter | query | No | string | — |
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.
Need help with the API? …