Share point CLI for AI Agents

Use Composio Universal CLI with Share point. Create a new project folder in sharepoint, add a task item to the marketing list, and more using natural language, with authentication handled for you.

Share point logoShare point
Oauth2S2s Oauth2

SharePoint is a Microsoft platform for secure document management and team collaboration. It helps organizations store, organize, and share content efficiently.

119 Tools

Introduction

CLIs are eating MCPs. The industry is converging on the very same idea. MCPs for all their merit can be token hungry, slow, and unreliable for complex tool chaining. However, coding agents have become incredibly good at working with CLIs, and in fact they are far more comfortable working with CLI tools than MCP.

With Composio's Universal CLI, your coding agents can talk to over 1500+ SaaS applications. With Share point, agents can create a new project folder in sharepoint, add a task item to the marketing list, find if john doe exists as a sharepoint user, and more — all without worrying about authentication.

This guide walks you through Composio Universal CLI and explains how you can connect it with coding agents like Claude Code, Codex, OpenCode, etc, for end-to-end Share point automation.

Also integrate Share point with

What is Universal CLI and why use it?

The idea behind building the universal CLI is to give agents a single command interface to interact with all your external applications. Here's what you'll get with it:

  • Agent-friendly: Coding agents like Claude Code, Codex, and OpenCode can use CLI tools natively — no MCP setup required.
  • Authentication handled: Connect once via OAuth or API Key, and all CLI commands work with your credentials automatically.
  • Tool discovery: Search, inspect, and execute 20,000+ tools across 1500+ apps from one interface.
  • Trigger support: Use triggers to listen for events across your apps, powered by real-time webhooks or polling under the hood.
  • Type generation: Generate typed schemas for autocomplete and type safety in your projects.

Prerequisites

Install the Composio CLI, authenticate, and initialize your project:

bash
# Install the Composio CLI
curl -fsSL https://composio.dev/install | bash

# Authenticate with Composio
composio login

During login you'll be redirected to sign in page, finish the complete flow and you're all set.

Composio CLI authentication flow

Connecting Share point to Coding Agents via Universal CLI

Once it is installed, it's essentially done. Claude Code, Codex, OpenCode, OpenClaw, or any other agent will be able to access the CLI. A few steps to give agents access to your apps.

  1. Launch your Coding Agent — Claude Code, Codex, OpenCode, anything you prefer.
  2. Prompt it to "Authenticate with Share point"
  3. Complete the authentication and authorization flow and your Share point integration is all set.
  4. Start asking anything you want.

Universal CLI Commands for Share point

You can also manually execute CLI commands to interact with your Share point.

Connect your Share point account

Link your Share point account and verify the connection:

bash
# Connect your Share point account (opens OAuth flow)
composio connected-accounts link share_point

# Verify the connection
composio connected-accounts list --toolkits share_point

Discover Share point tools

Search and inspect available Share point tools:

bash
# List all available Share point tools
composio tools list --toolkit share_point

# Search for Share point tools by action
composio tools search "share point"

# Inspect a tool's input schema
composio tools info SHARE_POINT_SEARCH_FILES

Common Share point Actions

Search Files Across All Sites — Search for files across all SharePoint sites and OneDrive using Keyword Query Language

bash
composio tools execute SHARE_POINT_SEARCH_FILES \
  --query "project report"

Search SharePoint Site — Search SharePoint content using Keyword Query Language (KQL)

bash
composio tools execute SHARE_POINT_SEARCH_QUERY \
  --querytext "SharePoint"

Search Suggest — Tool to get search query suggestions

bash
composio tools execute SHARE_POINT_SEARCH_SUGGEST \
  --querytext "sharepoint"

Add Attachment to List Item — Tool to add an attachment to a SharePoint list item

bash
composio tools execute SHARE_POINT_ADD_ATTACHMENT_TO_LIST_ITEM \
  --item_id "1" \
  --file_name "example.pdf" \
  --list_title "Announcements"

Add Role Assignment to List Item — Tool to add a role assignment to a list item

bash
composio tools execute SHARE_POINT_ADD_ROLE_ASSIGNMENT_TO_ITEM \
  --item_id "1" \
  --list_title "My Documents" \
  --principal_id "15" \
  --role_definition_id "1073741827"

Add Role Assignment to SharePoint List — Tool to add a role assignment to a SharePoint list

bash
composio tools execute SHARE_POINT_ADD_ROLE_ASSIGNMENT_TO_LIST \
  --list_title "<string>" \
  --principal_id "<integer>" \
  --role_definition_id "<integer>"

Break Role Inheritance on List Item — Tool to break permission inheritance on a list item

bash
composio tools execute SHARE_POINT_BREAK_ROLE_INHERITANCE_ON_ITEM \
  --item_id "<integer>" \
  --list_title "<string>"

Break Role Inheritance on List — Breaks permission inheritance on a SharePoint list, allowing you to set unique permissions

bash
composio tools execute SHARE_POINT_BREAK_ROLE_INHERITANCE_ON_LIST \
  --list_title "<string>" \
  --clear_subscopes "<boolean>" \
  --copy_role_assignments "<boolean>"

Generate Type Definitions

Generate typed schemas for Share point tools to get autocomplete and type safety in your project:

bash
# Auto-detect language
composio generate --toolkits share_point

# TypeScript
composio ts generate --toolkits share_point

# Python
composio py generate --toolkits share_point

Tips & Tricks

  • Always inspect a tool's input schema before executing: composio tools info <TOOL_NAME>
  • Pipe output with jq for better readability: composio tools execute TOOL_NAME -d '{}' | jq
  • Set COMPOSIO_API_KEY as an environment variable for CI/CD pipelines
  • Use composio dev logs tools to inspect execution logs and debug issues

Next Steps

  • Try asking your coding agent to perform various Share point operations
  • Explore cross-app workflows by connecting more toolkits
  • Set up triggers for real-time automation
  • Use composio generate for typed schemas in your projects
TOOLS

Supported Tools

Every Share point action and event your agent gets out of the box.

Add Attachment to List Item

Tool to add an attachment to a SharePoint list item.

Add Default View Field

Add one existing field to a SharePoint list's default view.

Add Field Link to Content Type

Tool to add a field link to a list content type.

Add Role Assignment to List Item

Tool to add a role assignment to a list item.

Add Role Assignment to SharePoint List

Tool to add a role assignment to a SharePoint list.

Break Role Inheritance on List Item

Tool to break permission inheritance on a list item.

Break Role Inheritance on List

Breaks permission inheritance on a SharePoint list, allowing you to set unique permissions.

Check In SharePoint File

Tool to check in a file.

Clear Default View Fields

Remove every field from a SharePoint list's default view without deleting the fields themselves.

Copy Drive Item

Start an asynchronous copy of a drive item and return Microsoft's monitor URL.

Create Content Type

Tool to create a new content type in SharePoint.

Create Drive Item Sharing Link

Tool to create a sharing link for a drive item in SharePoint or OneDrive.

Create SharePoint List Field

Tool to create a new field (column) in a SharePoint list.

Create SharePoint List Item by GUID

Tool to create a new item in a SharePoint list using the list's GUID.

Create List Item in Folder

Tool to create a list item in a specific folder within a SharePoint list.

Create SharePoint List View

Create a view in a SharePoint list selected by GUID or exact title.

Create SharePoint Site Field

Create a reusable web-level SharePoint field (site column) in the selected site.

Create Drive Upload Session

Create a resumable upload session for a new file and return its preauthenticated upload URL.

Create SharePoint Subsite

Tool to create a new SharePoint subsite under the current site.

Delete Drive Item Version Content

Tool to delete content for a specific version of a drive item in SharePoint.

Delete SharePoint File

Deletes a file from a SharePoint document library permanently.

Delete SharePoint Folder

Deletes a folder from a SharePoint document library.

Delete SharePoint List

Tool to delete a SharePoint list.

Delete SharePoint List By Title

Tool to delete a SharePoint list by its title.

Delete SharePoint List Item

Tool to delete a SharePoint list item.

Delete Multiple SharePoint List Items

Tool to delete multiple SharePoint list items in bulk.

Delete Recycle Bin Item Permanently

Tool to permanently delete a SharePoint Recycle Bin item.

Download File by Server-relative URL

Tool to download a file by server-relative URL.

Ensure SharePoint User

Ensures a user exists in a SharePoint site by their login name.

Follow SharePoint Actor

Follow a SharePoint user, document, site, or tag.

Get All SharePoint Folders

Tool to retrieve all folders in the SharePoint web.

Get SharePoint List Changes

Tool to retrieve changes from SharePoint list change log.

Get Content Type

Tool to retrieve a single SharePoint content type by its ID.

Get Site Content Types

Retrieves all content types from the current SharePoint site.

Get Content Types for List

Tool to retrieve all content types for a specific SharePoint list by GUID.

Get SharePoint Context Info

Tool to retrieve SharePoint context information including the form digest value.

Get Current SharePoint User

Tool to retrieve the current user for the site.

Get Drive by ID

Get one SharePoint or OneDrive drive by its drive ID from the selected site endpoint.

Get Drive Item Analytics

Tool to get analytics for a SharePoint drive item.

Get Drive Item by ID

Get metadata for one file or folder by drive ID and item ID from a SharePoint site or provider-derived OneDrive for Business personal-site URL.

Get Drive Item Changes

Return one page of drive-item changes and the opaque next or delta link.

Get Group Users

Retrieves all users who are members of a specified SharePoint group.

Get Group Users By ID

Tool to retrieve all users in a specific SharePoint site group by group ID.

Download List Item Attachment

Tool to download an attachment from a SharePoint list item.

Get SharePoint List by GUID

Tool to retrieve a SharePoint list by its GUID.

Get SharePoint List By Title

Tool to retrieve a SharePoint list by its title.

Get Content Type by ID

Tool to retrieve a specific content type from a SharePoint list by its ID.

Get SharePoint List Field

Get one field definition from a SharePoint list by field GUID or exact internal name/title.

Get List Item by ID

Tool to retrieve a SharePoint list item by ID.

Get SharePoint List Items

Tool to retrieve items from a SharePoint list.

Get SharePoint List Items by GUID

Tool to retrieve items from a SharePoint list using its GUID.

Get List Item Version

Tool to retrieve a specific version of a SharePoint list item.

Get Followed Entities

Tool to get entities the current user is following.

Get My Followers

Retrieves the list of users who are following the authenticated user in SharePoint.

Get Role Definitions

Tool to list role definitions at the web level.

Get Shared Item

Access a shared SharePoint file or folder by share ID or encoded sharing URL without granting lasting access.

Get SharePoint Site by Hostname

Retrieve SharePoint site information by hostname or URL.

Get SharePoint Site by ID

Tool to retrieve information about a SharePoint site (web) by its unique identifier.

Get SharePoint Site Collection Info

Tool to fetch site collection metadata (URL, ID, root web URI) only—not list item or document-level details.

Get Site Drive Item by Path

Tool to retrieve a file or folder by its server-relative path in a SharePoint site.

Get SharePoint Site Page Content

Tool to retrieve modern SharePoint Site Pages content by reading list item fields.

Get SharePoint Root Site

Retrieves metadata about the root web of a SharePoint site collection.

Get User Effective Permissions on Web

Get a user's effective permissions on the current SharePoint site (Web).

Get SharePoint Webhook Subscription

Tool to retrieve a specific webhook subscription by ID from a SharePoint list.

Get SharePoint Webhook Subscriptions

Tool to retrieve all webhook subscriptions on a SharePoint list.

Get SharePoint Web Info

Tool to retrieve information about the current SharePoint web (site) using REST API.

Check Follow Status

Tool to check if the current user is following a specified actor.

List SharePoint Lists

Retrieves all lists in the current SharePoint web/site.

List Default View Fields

List the field internal names currently displayed in a SharePoint list's default view.

List Drive Children

Tool to list children (files and folders) in a SharePoint drive using REST API v2.

List Drive Item Permissions

List effective sharing permissions for one drive item.

List Drive Item Versions

List retained versions of a SharePoint drive item, newest first.

List Recently Modified Drive Items

Tool to list recently modified items in a SharePoint drive using Microsoft Graph API.

List Drives via SharePoint REST API

Tool to retrieve drives using SharePoint REST API v2.

List Files in Folder

Tool to list files within a SharePoint folder (non-recursive; does not enumerate subfolders).

List Item Attachments

Tool to list all attachments for a SharePoint list item.

List SharePoint List Columns

List column definitions for a SharePoint list.

List SharePoint List Views

List saved views for a SharePoint list selected by GUID or exact title, with optional OData projection, filtering, sorting, and offset pagination.

List Recycle Bin Items

Tool to list items in the SharePoint Recycle Bin.

List Site Drives

Tool to retrieve all document libraries (drives) in a SharePoint site.

List SharePoint Site Fields

List reusable web-level SharePoint fields (site columns).

List Site Groups

Tool to list SharePoint site groups for a site collection.

List SharePoint Sites

Tool to retrieve all SharePoint sites accessible to the user.

List Site Users

Tool to list users in the site collection.

List Subfolders in Folder

Tool to list immediate child folders within a SharePoint folder.

List Web Role Assignments

List principals assigned SharePoint permission levels on a web/site, including each principal and its bound role definitions.

Log SharePoint Event

Log custom usage analytics events in SharePoint for tracking user activities.

Publish SharePoint Site Page

Publish the latest version of a modern SharePoint site page by its positive item ID.

Recycle SharePoint File

Tool to move a file to the Recycle Bin.

Recycle SharePoint List Item

Tool to move a list item to the Recycle Bin.

Redeem Shared Item Access

Redeem a SharePoint sharing link and grant the connected account durable access to the shared file or folder.

Rename SharePoint Folder

Renames a SharePoint folder by updating its list item metadata.

Render List Data As Stream

Retrieve list items from SharePoint with rich metadata and formatting.

Resolve SharePoint Sharing Link

Resolve a SharePoint sharing URL or provider share token to its underlying drive item.

Restore Drive Item Version

Tool to restore a previous version of a SharePoint drive item.

Restore Recycle Bin Item

Tool to restore a SharePoint Recycle Bin item.

Search Files Across All Sites

Search for files across all SharePoint sites and OneDrive using Keyword Query Language.

Search SharePoint Site

Search SharePoint content using Keyword Query Language (KQL).

Search Suggest

Tool to get search query suggestions.

Check Out SharePoint File

Tool to check out a file in a document library.

Create SharePoint Folder

Creates a new folder in SharePoint using the REST API.

Create SharePoint List

Creates a new list in SharePoint using the REST API.

Create SharePoint List Item

Creates a new item in a SharePoint list.

Find SharePoint User

Searches for a user in the SharePoint site by email address and returns their profile information if found.

Remove SharePoint User

Removes a user from SharePoint.

Undo SharePoint File Checkout

Tool to undo a file checkout, discarding any changes made while checked out.

Update SharePoint Content Type

Tool to update a SharePoint content type's properties such as name, description, group, or hidden status.

Update Drive Item

Tool to update the properties of a drive item (file or folder) in SharePoint using SharePoint REST API.

Update File Item Metadata

Tool to update metadata fields on a SharePoint file item via its ListItemAllFields.

Update SharePoint List

Tool to update properties of an existing SharePoint list.

Update SharePoint List Field

Update one or more mutable properties of an existing SharePoint list field identified by list and field GUID.

Update SharePoint List Item

Tool to update fields on an existing SharePoint list item.

Manage SharePoint List View Fields

Add, move, or remove all fields in one SharePoint list view selected by GUID or title.

Update SharePoint Site

Tool to update properties of the current SharePoint site (web).

Update SharePoint Site Field

Update mutable properties of an existing SharePoint site field by GUID.

Upload File to Folder

Tool to upload a file to a SharePoint document library or folder.

Upload File from URL to SharePoint

Tool to fetch a file from a URL and upload it to SharePoint.

Upload Large File

Create a direct-v2 upload session and upload one file in sequential chunks.

Validate SharePoint Credentials

Validate SharePoint credentials by attempting to retrieve the current user information.

FAQ

Frequently asked questions

The Composio Universal CLI is a single command-line interface that lets coding agents and developers interact with 1500+ SaaS applications. It handles authentication, tool discovery, action execution, and trigger setup — all from the terminal, without needing to configure MCP servers.

Any coding agent that can run shell commands works with the Composio CLI — including Claude Code, Codex, OpenCode, OpenClaw, and others. Once the CLI is installed, agents automatically discover and use the composio commands to interact with Share point and other connected apps.

MCP servers require configuration and can be token-heavy for complex workflows. The CLI gives agents a direct, lightweight interface — no server setup needed. Agents simply call composio commands like any other shell tool. It's faster to set up, more reliable for multi-step tool chaining, and works natively with how coding agents already operate.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Share point data and credentials are handled as safely as possible. You can also bring your own OAuth credentials for full control.

Start with Share point.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Share point tool your agent needs.Free to start.

Start building