---
title: "Get M365 User"
method: GET
path: "/api/identity/{team_key}/m365/users/{user_key}"
tags: ["m365"]
---

# Get M365 User

`GET /api/identity/{team_key}/m365/users/{user_key}`

## Request

- Base URL: `https://api.superit.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.superit.ai/api/identity/{team_key}/m365/users/{user_key}`
- Auth: HTTP bearer

Get an M365 user by key, scoped to the caller's team.

## Path parameters

- `team_key` string, required
- `user_key` string, required

## Response `200`

Successful Response

- M365UserResponse: Public projection of a stored M365 user.
  - `key` string, required
  - `teamKey` string, required
  - `microsoftId` string, required
  - `userPrincipalName` string, required
  - `displayName` string, required
  - `mail` string, nullable, required
  - `givenName` string, nullable, required
  - `surname` string, nullable, required
  - `jobTitle` string, nullable, required
  - `department` string, nullable, required
  - `officeLocation` string, nullable, required
  - `accountEnabled` boolean, required
  - `lastSyncedAt` string, nullable, required

## Other responses

- `400`: Invalid input
- `401`: Not authenticated
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `409`: Conflict
- `422`: Validation Error

---

[API](https://skmtc.dev/superit/apis/super-it-api.md) - [All operations](https://skmtc.dev/superit/apis/super-it-api/llms.txt) - [OpenAPI document](https://skmtc.dev/superit/apis/super-it-api/revisions/4944d556c2bb?raw)
