---
title: "Find people in the Microsoft 365 directory by name"
method: GET
path: "/v1/capabilities/microsoft-365/people"
tags: ["Capability Sources"]
---

# Find people in the Microsoft 365 directory by name

`GET /v1/capabilities/microsoft-365/people`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/capabilities/microsoft-365/people`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Searches the organization's directory by display name and returns basic profiles with names, email and sign-in addresses. Pass nextPageToken as pageToken for the next page; hasMore with a null token means the list is partial.

## Query parameters

- `name` string, required
- `pageToken` string
- `maxResults` integer

## Response `200`

Microsoft 365 data returned.

- object
  - `ok` true, required
  - `people` object[], required
    - `id` string, nullable, required
    - `displayName` string, nullable, required
    - `givenName` string, nullable, required
    - `surname` string, nullable, required
    - `mail` string, nullable, required
    - `userPrincipalName` string, nullable, required
  - `nextPageToken` string, nullable, required
  - `hasMore` boolean, required

## Other responses

- `400`: A request parameter is invalid.
- `401`: The caller must be signed in.
- `403`: The connection is blocked by organization policy.
- `409`: The calling member has not connected Microsoft 365 or is missing permission.
- `502`: Microsoft Graph rejected the request.

## Changes

- **2026-12-02** `79f1f5ef5c76`: 1 info
  - removed the non-success response with the status `404`
- **2026-11-27** `6f4fbc68a398`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/capabilities/microsoft-365/people/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
