See llms.txt for all machine-readable content.

Microsoft SharePoint and Microsoft Teams integration

Save yourself the work of writing custom integrations for Microsoft SharePoint and Microsoft Teams and use n8n instead. Build adaptable and scalable workflows that work with your technology stack. All within a building experience you will love.

How to connect Microsoft SharePoint and Microsoft Teams

Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Microsoft SharePoint and Microsoft Teams integration: Create a new workflow and add the first step

Govern stale Entra ID guest accounts with SharePoint and Microsoft Teams

Quick overview This template runs two scheduled workflows to govern Microsoft Entra ID (Azure AD) guest accounts by detecting stale users via Microsoft Graph, staging deletions in SharePoint with a 72-hour window, notifying sponsors in Microsoft Teams, and deleting overdue guests while auditing outcomes. How it works The Scanner (Runs Weekly): Fetches all guest users using native Microsoft Graph API pagination. Filters Stale Accounts: Identifies guests with no sign-in activity for over 90 days. Stages Deletions: Writes new stale accounts to a SharePoint PendingGuestDeletions list with a 72-hour countdown. Alerts Sponsors: Mentions the assigned manager in a Microsoft Teams message, warning them of the impending deletion. The Executioner (Runs Daily): Queries SharePoint for records where the 72-hour countdown has expired. Checks Exceptions: Verifies if the sponsor added the guest to a SharePoint GuestRetentionExceptions list. Deletes & Audits: Safely deletes the Entra ID account (if not retained), updates the staging list status, and logs the final outcome to an Audit SharePoint list. Setup SharePoint: Create three lists: PendingGuestDeletions, GuestRetentionExceptions, and GuestAccountAuditLog (ensure columns match the workflow JSON). Azure AD: Create an App Registration with User.ReadWrite.All, AuditLog.Read.All, Sites.ReadWrite.All, and ChannelMessage.Send (Application permissions). n8n Credentials: Connect your OAuth2 (Client Credentials) setup to the "MS Graph - Guest Governance" credential. Configuration: Open the two Config nodes (Scanner and Executioner) and paste your SharePoint Site ID, List IDs, and Teams Team/Channel IDs. Error Handler: Go to Workflow Settings and bind your preferred Error Handler workflow to catch API routing failures. Requirements Microsoft Entra ID (Azure AD) tenant Microsoft SharePoint (for database state management) Microsoft Teams (for sponsor alerts) Azure App Registration with Application-level Graph API permissions Customization Modify the inactivityThresholdDays (default 90) and responseWindowHours (default 72) in the Config nodes. Adjust the Teams message HTML payload to match your internal IT branding. Change the Cron triggers to match your specific IT operational cadence. Additional info This template completely avoids the severe limitations of long-running 72-hour Wait nodes by decoupling the discovery and deletion phases into two distinct workflows bridged by a SharePoint database. Combined with native node pagination and built-in rate-limit retries, this engine is highly resilient and safe to run in massive enterprise tenants with tens of thousands of guest users.

Build your own Microsoft SharePoint and Microsoft Teams integration

Create custom Microsoft SharePoint and Microsoft Teams workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Microsoft SharePoint supported actions

Microsoft Teams supported actions

Microsoft SharePoint and Microsoft Teams integration details

Microsoft SharePoint

Microsoft SharePoint

The SharePoint app is a mobile and desktop application that provides access to Microsoft SharePoint, enabling users to collaborate, share documents, manage content, and access company resources and sites on-the-go.

Microsoft Teams

Microsoft Teams

Microsoft Teams helps businesses organize their meetings, interviews and online events, schedule their projects, and collaborate together. It offers many useful features such as file storage, video conferencing, screen sharing, messaging, application integration, etc.

Other integrations with Microsoft SharePoint and Microsoft Teams

FAQ about Microsoft SharePoint integrations

Looking to integrate Slack and VirusTotal in your company?

Three colleagues talking around laptops at a shared desk

Trusted by teams building smarter workflows.

Why

Why use n8n to integrate Microsoft SharePoint with Microsoft Teams

Handle branching, merging and iteration easily. Pause your workflow to wait for external events.

Re-run single steps to test changes in no time. And pin your data to avoid generating trigger events every time you execute.

Your data is displayed alongside your settings, making edge cases easy to track down.

Use 1000+ workflow templates available from our core team and our community.

Copy and paste, easily import and export workflows.

Simple enough to 
understand + sophisticated 
enough to ship

Man in a brown jacket working at his desk by a window