---
title: "Trigger Msteams Directory Import"
method: POST
path: "/v1/sources/{source_id}/directory-import"
tags: ["sources"]
---

# Trigger Msteams Directory Import

`POST /v1/sources/{source_id}/directory-import`

Enqueue the explicit "import directory users as people" job.

The Slack-style consent step: the sync only MATCHES until this runs; the
first successful import flips import_enabled, after which recurring
syncs pick up new directory users automatically. 409 while a sync or an
import is executing; 404 before the first sync result exists (there is
nothing to approve yet).

## Path parameters

- `source_id` string, uuid, required

## Response `202`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ontora/apis/ontora-api.md) · [All operations](https://skmtc.dev/ontora/apis/ontora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ontora/ontora-api/revisions/7f57037fd94b/schema)
