---
title: "Exchange a SharePoint (SPFx) access token for an Onplana session"
method: POST
path: "/auth/sharepoint-sso"
tags: ["auth"]
---

# Exchange a SharePoint (SPFx) access token for an Onplana session

`POST /auth/sharepoint-sso`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/auth/sharepoint-sso`
- Auth: none required

Public. The token is an Entra access token for the Onplana app, scope access_as_user, obtained by an Onplana web part. Never creates an account: no account answers 409 SHAREPOINT_NO_ACCOUNT { email, canCreate, guest }. 503 SHAREPOINT_SSO_OFF while the operator switch is off. A guest is linked only on an email Microsoft proved.

## Request body

- object
  - `token` string, required

## Response `200`

{ token, user, organizations }

---

[API](https://skmtc.dev/onplana/apis/onplana-api.md) · [All operations](https://skmtc.dev/onplana/apis/onplana-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onplana/apis/onplana-api/revisions/c3d6c89e9dc8?raw)
