pnpjs-sp

n8n community node for SharePoint integration via PnPJS patterns - lists, items, files, folders, users, groups, search

Package Information

Released: 2 mo ago
Downloads: 0 weekly / 0 monthly
Latest Version: 0.1.5

Available Nodes

Documentation generating…

Documentation

n8n-nodes-pnpjs-sp

n8n community node for SharePoint REST API integration.

Features

  • Lists — get all, get by ID/title, create, update, delete, list fields, list views
  • List Items — get all, get by ID, create, update, delete, attachments, like/unlike, rate
  • Files — get all, get metadata, upload, delete, download content
  • Folders — get all, get by path, create, delete
  • Users — get all, get by ID, get by email, add, remove, get current
  • Groups — get all, get by ID, add user, remove user
  • Web — get, update, get subwebs
  • Site — get site info
  • Search — KQL search queries
  • Content Types — get all, get by ID
  • Navigation — quick launch and top navigation bar
  • Security — role assignments, role inheritance, permissions
  • Sharing — share files/folders, sharing links, permissions
  • Profiles — user profile properties, social features (follow, followers, trending tags)
  • Comments — get, add, delete, like, unlike, replies
  • Attachments — get, add, update, delete, recycle
  • Features, Recycle Bin, Hub Sites, Subscriptions, User Custom Actions, Fields, Forms, Related Items, Column Defaults, Regional Settings, Utility

Credentials

Uses the built-in Microsoft SharePoint OAuth2 API credential (microsoftSharePointOAuth2Api).

Setup

  1. In n8n, create a new Microsoft SharePoint OAuth2 API credential
  2. Configure OAuth2 via Microsoft Entra ID (Azure AD):
    • Register an app in Azure AD with SharePoint permissions (Sites.Read.All, Sites.ReadWrite.All)
    • Set the redirect URI to https://your-n8n-instance/rest/oauth2-credential/callback
    • Grant admin consent for the required permissions
  3. Enter your SharePoint subdomain (e.g., tenant123 from https://tenant123.sharepoint.com)
  4. Complete the OAuth2 authorization flow

Installation

npm install n8n-nodes-pnpjs-sp

For n8n self-hosted, place the package in your n8n custom nodes directory or install globally.

Usage

Add a PnPJS SharePoint node to your workflow and select the resource and operation. Most operations support Simplify Output to flatten SharePoint's verbose JSON envelope.

Resources

License

MIT

Discussion