---
title: "Retrieve a collection of Microsoft 365 users"
method: GET
path: "/ms365/users"
tags: ["Microsoft 365"]
---

# Retrieve a collection of Microsoft 365 users

`GET /ms365/users`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/ms365/users`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/ms365/users/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve a collection of Microsoft 365 users.

## Response `200`

OK

- object
  - `count` integer: Total number of resource.
  - `items` object[]
    - `id` string: The `OID` of Microsoft 365 user.
    - `name` string: The name of Microsoft 365 user.
    - `email` string: The email address of Microsoft 365 user.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
