npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-sharepoint-custom

v0.1.9

Published

n8n nodes for Microsoft services with OAuth2 authentication - forked from n8n-io/n8n

Readme

n8n-nodes-sharepoint-custom

This is an n8n community node that provides Microsoft OAuth2 authentication using Client Credentials grant type. This credential type is designed for server-to-server authentication scenarios and does not require a callback URL, making it ideal for Microsoft services like SharePoint, OneDrive, Outlook, and other Microsoft Graph API services.

Key Features

  • Client Credentials Flow: Uses the OAuth2 client credentials grant type (grant_type=client_credentials)
  • No Callback URL Required: Perfect for server-to-server authentication scenarios
  • Tenant-Specific Authentication: Supports organization-specific Azure AD tenants
  • Microsoft Services Compatible: Works with SharePoint, OneDrive, Outlook, Microsoft Graph, and other Microsoft services

Installation

To use this credential in your n8n instance:

  1. Install via npm:
npm install n8n-nodes-sharepoint-custom
  1. Or install directly in your n8n installation:
cd ~/.n8n/nodes
npm install n8n-nodes-sharepoint-custom
  1. Restart n8n

Configuration

Prerequisites

Before configuring this credential, you need to:

  1. Register an application in Azure AD (Azure Active Directory)
  2. Configure API permissions for the Microsoft services you want to use
  3. Create a client secret
  4. Note your tenant ID

Credential Setup

  1. In n8n, go to CredentialsNew

  2. Search for and select Microsoft OAuth2 API (Client Credentials)

  3. Fill in the required fields:

    • Access Token URL: https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token

      • Replace {tenant} with your Azure AD tenant ID or domain name
      • For single-tenant apps: Use your specific tenant ID (e.g., 12345678-1234-1234-1234-123456789abc)
      • For multi-tenant apps: Use organizations, common, or consumers
      • Example: https://login.microsoftonline.com/12345678-1234-1234-1234-123456789abc/oauth2/v2.0/token
    • Client ID: Your application (client) ID from Azure AD

    • Client Secret: Your application's client secret from Azure AD

    • Scope: The API scope you want to access

      • For Microsoft Graph: https://graph.microsoft.com/.default
      • For SharePoint: https://{tenant}.sharepoint.com/.default
      • For specific permissions: Specify the exact scope (e.g., https://graph.microsoft.com/Sites.Read.All)

Example Scopes

  • Microsoft Graph (all permissions): https://graph.microsoft.com/.default
  • SharePoint: https://{yourtenant}.sharepoint.com/.default
  • OneDrive: https://graph.microsoft.com/.default (with Files.Read.All permission)
  • Outlook/Exchange: https://outlook.office365.com/.default

Azure AD App Registration

To set up the Azure AD application:

  1. Go to Azure Portal
  2. Navigate to Azure Active DirectoryApp registrationsNew registration
  3. Configure the application:
    • Name: Choose a descriptive name (e.g., "n8n Integration")
    • Supported account types: Choose based on your needs
    • No redirect URI is required for client credentials flow
  4. After creation, note the Application (client) ID and Directory (tenant) ID
  5. Go to Certificates & secretsNew client secret
    • Create a secret and copy its value immediately (it won't be shown again)
  6. Go to API permissionsAdd a permission
    • Select the Microsoft service (e.g., Microsoft Graph)
    • Choose Application permissions (not Delegated)
    • Add the required permissions (e.g., Sites.Read.All, Files.Read.All)
  7. Click Grant admin consent for your organization

Differences from Standard Microsoft OAuth2

This credential differs from the standard microsoftOAuth2Api in n8n:

| Feature | Standard (Authorization Code) | This Package (Client Credentials) | |---------|------------------------------|-----------------------------------| | Grant Type | authorization_code | client_credentials | | Callback URL | Required | Not required | | User Context | Yes (acts on behalf of a user) | No (acts as the application) | | Interactive Login | Required | Not required | | Use Case | User-delegated operations | Server-to-server operations | | Permissions | Delegated permissions | Application permissions |

Use Cases

This credential is ideal for:

  • Automated Data Sync: Scheduled workflows that sync data from SharePoint, OneDrive, etc.
  • Background Processing: Server-side operations without user interaction
  • Bulk Operations: Processing large amounts of data across Microsoft services
  • Service Integration: Integration between n8n and Microsoft services in production environments
  • Webhook Handlers: Processing Microsoft webhook events without user authentication

Development

To build this package:

npm install
npm run build

To watch for changes during development:

npm run build:watch

Compatibility

  • n8n version: 0.100.0 or higher
  • Node.js: 18.x or higher

Resources

License

MIT

Support

For issues, questions, or contributions, please visit the GitHub repository.