> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft OneNote

> Review the minimum OAuth scopes for every Microsoft OneNote action.

Review the minimum standard delegated scope mapping for every Microsoft OneNote action. The mapping covers notebooks, sections, pages, and page content.

## Teams and SharePoint permissions

OneNote uses different permissions for personal notebooks and notebooks stored in Teams or SharePoint. Personal notebooks use the scopes without `.All` in the first table column. Teams and SharePoint notebooks use the scopes in the second table column because Microsoft Graph treats them as shared resources.

### Action versions

Teams and SharePoint support ships as new versions of the OneNote actions. The new versions request the scopes in the second table column. The previous versions stay available with the personal notebook scopes, and existing workspaces keep using them until an admin switches an action to its new version in the integration's action settings. Each version's changelog names the scopes it needs.

Create notebook always creates personal notebooks, so its new version keeps a personal scope.

Without a notebook ID or link, discovery covers personal notebooks plus a bounded set of teams and followed SharePoint sites. To reach a notebook outside that set, search for its team or site by name, or paste its link.

> [accordion] Teams notebooks
>
> Teams notebooks are shared notebooks created within Microsoft Teams channels or group workspaces. Because Microsoft Graph treats them as organizational resources rather than personal files, accessing them requires broader permissions.
>
> To view content in Teams notebooks, you need `Notes.Read.All`. To create or modify pages, sections, or notebooks, you need `Notes.ReadWrite.All`.
>
> Langdock requires `Team.ReadBasic.All` to list the teams you belong to and discover the notebooks located inside those teams. Without this scope, Langdock cannot find your Teams notebooks automatically and can only interact with a notebook when you provide its direct link or identifier.

> [accordion] SharePoint notebooks
>
> SharePoint notebooks are shared notebooks stored directly within SharePoint document libraries and team sites. Like Teams notebooks, Microsoft Graph treats them as shared organizational resources rather than personal notebooks.
>
> To read notebook content stored in SharePoint, you need `Notes.Read.All`. To create or edit sections, pages, or notebooks, you need `Notes.ReadWrite.All`.
>
> Langdock requires `Sites.Read.All` to search SharePoint sites and discover the notebooks located within them. Without this scope, Langdock cannot find your SharePoint notebooks automatically and can only interact with a notebook when you provide its direct link or identifier.

> [!WARNING]
>
> Langdock strongly recommends keeping `Sites.Read.All`, `Team.ReadBasic.All`, and the related `.All` scopes. Removing these scopes strongly limits the notebooks that the integration can discover and work with.

## Minimal scopes per action

> [!NOTE]
>
> Each Microsoft OneNote connection also requests `openid`, `offline_access`, and `User.Read`. These connection scopes apply in addition to the action scopes in the table.
>
> Choose the column that matches your desired notebook discovery.

<table>
  <colgroup>
    <col />

    <col />

    <col />

    <col />
  </colgroup>

  <thead>
    <tr>
      <th>Action</th>
      <th>Description</th>
      <th>Minimum scopes\
      without Teams/SharePoint support</th>
      <th>Minimum scopes\
      with Teams/SharePoint support</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>**Append to page**</td>
      <td>Appends content to a page.</td>
      <td>`Notes.ReadWrite`</td>
      <td>`Notes.ReadWrite.All`</td>
    </tr>

    <tr>
      <td>**Copy page**</td>
      <td>Copies a page to another section.</td>
      <td>`Notes.Create`</td>
      <td>`Notes.ReadWrite.All`</td>
    </tr>

    <tr>
      <td>**Create notebook**</td>
      <td>Creates a notebook.</td>
      <td>`Notes.Create`</td>
      <td>`Notes.Create`</td>
    </tr>

    <tr>
      <td>**Create page**</td>
      <td>Creates a page in a section.</td>
      <td>`Notes.Create`</td>
      <td>`Notes.ReadWrite.All`</td>
    </tr>

    <tr>
      <td>**Create section**</td>
      <td>Creates a section in a notebook.</td>
      <td>`Notes.Create`</td>
      <td>`Notes.ReadWrite.All`</td>
    </tr>

    <tr>
      <td>**Delete page**</td>
      <td>Deletes a page.</td>
      <td>`Notes.ReadWrite`</td>
      <td>`Notes.ReadWrite.All`</td>
    </tr>

    <tr>
      <td>**Get page**</td>
      <td>Retrieves a page with its text content.</td>
      <td>`Notes.Read`</td>
      <td>`Notes.Read.All`\
      `Sites.Read.All`</td>
    </tr>

    <tr>
      <td>**Find notebooks**</td>
      <td>Finds personal, Teams, and SharePoint notebooks.</td>
      <td>`Notes.Read`</td>
      <td>`Notes.Read.All`\
      `Sites.Read.All`\
      `Team.ReadBasic.All`</td>
    </tr>

    <tr>
      <td>**List recent pages**</td>
      <td>Lists recently modified pages.</td>
      <td>`Notes.Read`</td>
      <td>`Notes.Read.All`\
      `Sites.Read.All`\
      `Team.ReadBasic.All`</td>
    </tr>

    <tr>
      <td>**List sections**</td>
      <td>Lists sections across notebooks.</td>
      <td>`Notes.Read`</td>
      <td>`Notes.Read.All`</td>
    </tr>

    <tr>
      <td>**Replace page content**</td>
      <td>Replaces the content of a page.</td>
      <td>`Notes.ReadWrite`</td>
      <td>`Notes.ReadWrite.All`</td>
    </tr>

    <tr>
      <td>**Resolve notebook**</td>
      <td>Resolves a notebook by ID or name.</td>
      <td>`Notes.Read`</td>
      <td>`Notes.Read.All`\
      `Sites.Read.All`\
      `Team.ReadBasic.All`</td>
    </tr>

    <tr>
      <td>**Resolve page**</td>
      <td>Resolves a page by ID or title.</td>
      <td>`Notes.Read`</td>
      <td>`Notes.Read.All`\
      `Sites.Read.All`\
      `Team.ReadBasic.All`</td>
    </tr>

    <tr>
      <td>**Resolve section**</td>
      <td>Resolves a section by ID or name.</td>
      <td>`Notes.Read`</td>
      <td>`Notes.Read.All`\
      `Sites.Read.All`\
      `Team.ReadBasic.All`</td>
    </tr>

    <tr>
      <td>**Search pages by title**</td>
      <td>Searches pages by title and filters.</td>
      <td>`Notes.Read`</td>
      <td>`Notes.Read.All`\
      `Sites.Read.All`\
      `Team.ReadBasic.All`</td>
    </tr>

    <tr>
      <td>**Update page title**</td>
      <td>Updates the title of a page.</td>
      <td>`Notes.ReadWrite`</td>
      <td>`Notes.ReadWrite.All`</td>
    </tr>
  </tbody>
</table>

## `Sites.Selected` and OneNote

Microsoft Graph does not provide a `Notes.Read.Selected` permission or any similar granular scope for OneNote. OneNote permissions operate across the tenant through `Notes.Read.All` and `Notes.ReadWrite.All`, with no native mechanism to restrict note access to specific sites or resources.

Because Langdock uses the `Sites.Read.All` scope to search SharePoint for notebook locations, applying `Sites.Selected` can restrict the notebooks that the integration can discover to specific sites. When you grant permissions only to selected sites, Langdock only discovers notebooks residing within those designated SharePoint sites during search or browsing operations.

> [!WARNING]
>
> `Sites.Selected` affects only notebook discovery, not access permissions.
>
> Because OneNote scopes cannot be scoped to selected sites, applying `Sites.Selected` does not restrict Langdock from reading notebooks outside the selected sites. If you provide a direct link to a notebook located on an unselected site, Langdock can still execute the read request using that direct link.
>
> `Sites.Selected` simply means that Langdock cannot dynamically discover that notebook. Do not rely on `Sites.Selected` as an access control boundary to prevent reading OneNote content.

## Related pages

* [Microsoft Integration Scopes](https://docs.langdock.com/en/admin/manage-integrations/microsoft-integration-scopes.md)
* [Microsoft integrations: permissions and admin approval](https://docs.langdock.com/en/admin/manage-integrations/integration-setup-guides/microsoft.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.