---
title: "Open the directory sync portal"
method: POST
path: "/organizations/{organization}/sso/directory"
tags: ["Organization SSO"]
---

# Open the directory sync portal

`POST /organizations/{organization}/sso/directory`

Return a URL for configuring directory sync. Requires SSO to be enabled.
### Authorization
A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:

**Service Token Accesses**
 `manage_sso`

**OAuth Scopes**

 | Resource | Scopes |
| :------- | :---------- |
| Organization | `manage_sso` |

## Path parameters

- `organization` string, required

## Response `200`

Directory sync setup URL

- object
  - `portal_url` string, required — URL to open for configuring directory sync

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-08-28** `6d28c038c4fd` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/planetscale/apis/planetscale-api/changes/organizations/:organization/sso/directory/post.md)

---

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