# Sharepoint

> SharePoint integration for AI agents via ClawLink — browser login, no API key setup. Connect sharepoint through ClawLink's hosted setup. Use this skill when the user wants to work with SharePoint (Microsoft Apps) — connect SharePoint, read or update SharePoint data, or take actions in SharePoint from chat instead of saying you cannot access it.

- Skill: `clawlink-hq/sharepoint` (Agent Skill)
- Install (CLI): `npx skillmds@latest add clawlink-hq/sharepoint`
- Raw SKILL.md: https://api.skillmd.com/api/skills/clawlink-hq/sharepoint/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: clawlink-hq (https://skillmd.com/u/clawlink-hq)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/clawlink-hq/sharepoint

---


# SharePoint

Use **SharePoint** from your AI agent through [ClawLink](https://claw-link.dev) — browser login, no API key to paste, no config to edit. Connect SharePoint once and the agent can read and act on it. Works in any agent that can run shell commands (Claude Code, Cursor, Codex, Cline, and more).

## Setup

Run these once — the agent can run them for you:

```bash
npx @useclawlink/cli login              # opens browser → approve (mints + stores a key)
npx @useclawlink/cli connect sharepoint   # opens browser → authorize SharePoint
```

No API key to create or paste — `login` stores the credential at `~/.clawlink/credentials.json`.

## Using SharePoint

```bash
npx @useclawlink/cli actions sharepoint "<what you want to do>"   # find an action
npx @useclawlink/cli describe sharepoint <action-id>             # see its inputs (before writes)
npx @useclawlink/cli run sharepoint <action-id> --input '<json>' # execute
```

Reads first; confirm with the user before any write.

## Available actions

| Action | Description |
|--------|-------------|
| `share_point_add_attachment_to_list_item` | Tool to add an attachment to a SharePoint list item. Use when you need to upload a binary file as an attachment to a specified list item. |
| `share_point_add_field_link_to_content_type` | Tool to add a field link to a list content type. Use when you want to associate an existing list field with a content type. |
| `share_point_add_role_assignment_to_item` | Tool to add a role assignment to a list item. Use when granting specific permissions to a user or group after breaking inheritance if needed. This action is externally visible and permanently alters item permissions; obtain explicit human approval for the target item and `role_definition_id` before executing. |
| `share_point_add_role_assignment_to_list` | Tool to add a role assignment to a SharePoint list. Requires the list to have broken role inheritance first via SHARE_POINT_BREAK_ROLE_INHERITANCE_ON_LIST; inheriting lists will reject unique role assignments. Use when granting permissions to a user or group on a specific list. |
| `share_point_break_role_inheritance_on_item` | Tool to break permission inheritance on a list item. Call this before adding new role assignments; adding assignments prior leaves the item still inheriting parent permissions, causing unexpected access behavior. Use when you need to uniquely set permissions on an item after copying or clearing parent assignments. |
| `share_point_break_role_inheritance_on_list` | Breaks permission inheritance on a SharePoint list, allowing you to set unique permissions. When you break inheritance, you can choose to: - Copy parent permissions as a starting point (copy_role_assignments=true) - Start fresh with no inherited permissions (copy_role_assignments=false) - Clear unique permissions on child items to re-inherit from this list (clear_subscopes=true) Use this when you need to manage list-level permissions independently from the site. Must be called before SHARE_POINT_ADD_ROLE_ASSIGNMENT_TO_LIST, which fails on lists still inheriting from the parent site. |
| `share_point_check_in_file` | Tool to check in a file. Use after uploading or editing a document and you're ready to finalize changes. |
| `share_point_create_content_type` | Tool to create a new content type in SharePoint. Use when you need to define a custom content type with specific metadata structure for lists or libraries. |
| `share_point_create_drive_item_sharing_link` | Tool to create a sharing link for a drive item in SharePoint or OneDrive. Use when you need to generate a shareable link with specific permissions (view/edit/embed) and scope (anonymous/organization/users). The link can optionally include password protection and expiration date. |
| `share_point_create_list_field` | Tool to create a new field (column) in a SharePoint list. Use when you need to programmatically add a column after confirming the list GUID. |
| `share_point_create_list_item_by_id` | Tool to create a new item in a SharePoint list using the list's GUID. Use when you have the list GUID rather than the list title. |
| `share_point_create_list_item_in_folder` | Tool to create a list item in a specific folder within a SharePoint list. IMPORTANT: This action works ONLY with SharePoint lists (not document libraries). The folder_url can be either a server-relative URL (e.g., '/Lists/MyList') or an absolute URL (e.g., 'https://site.sharepoint.com/sites/sitename/Lists/MyList'). To create files in document libraries, use a different action like upload_file. |

## Notes

- **No API key for SharePoint itself** — ClawLink holds the OAuth token; the agent only holds your ClawLink credential.
- Not connected yet, or access expired? Re-run `npx @useclawlink/cli connect sharepoint`.
- The action list above is a snapshot; `npx @useclawlink/cli actions sharepoint` is always current.

## Resources

- ClawLink: https://claw-link.dev
- Docs: https://docs.claw-link.dev
- CLI: https://www.npmjs.com/package/@useclawlink/cli

---

**Powered by [ClawLink](https://claw-link.dev)** — connect 90+ apps to any AI agent.

