## Microsoft Sharepoint

SecureBarndoor Managed**File & Document Management**

**Summary:** Microsoft SharePoint is a powerful content management and collaboration platform that helps teams organize files, manage lists, automate workflows, and securely share information across departments.

**How Teams Use It:** With the Barndoor-Managed SharePoint MCP Server, teams can safely connect AI agents to search sites, manage lists, organize files, and automate document workflows — all while honoring SharePoint permissions and maintaining strict control over organizational content.

### Policies

#### Policy Title

**Policy Description**

**Policy Definition**

Block Sharepoint SiteIds

Disallow an AI client access to specified Sharepoint Site Id’s

```json
{
  "name": "sharepoint-demo-site-only-by-siteid",
  "authorized": false,
  "actions": [
    "tools/call:get_site_drives",
    "tools/call:get_site_info",
    "tools/call:list_lists",
    "tools/call:create_list",
    "tools/call:delete_list",
    "tools/call:list_items",
    "tools/call:download_file",
    "tools/call:upload_file"
  ],
  "roles_groups": [
    "*"
  ],
  "condition": {
    "match": {
      "all": {
        "of": [
          {
            "expr": "request.resource.attr.siteId != \"[barndooraidemo.sharepoint.com](http://barndooraidemo.sharepoint.com/),2276050e-be60-49f6-a019-c81b999b96ce,4c36a7e7-9a3b-47fc-b0e8-7c8962a0265d\""
          }
        ]
      }
    }
  }
}
```
