> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# List Drives

- Component: `appmixer.microsoft.sharepoint.ListDrives`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.microsoft.sharepoint 3.1.0](https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.microsoft.sharepoint/3.1.0/component/appmixer.microsoft.sharepoint.ListDrives>

List the document libraries for a site.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Site ID (`siteId`) | text | Provide a site ID. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Drives (`drives`) | array | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.microsoft.sharepoint.ListDrives",
  "label": "List Drives",
  "author": "Harsha Surisetty <harsha@client.io>",
  "description": "List the document libraries for a site.",
  "private": false,
  "auth": {
    "service": "appmixer:microsoft",
    "scope": [
      "Files.Read.All",
      "Sites.Read.All"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string"
          }
        },
        "required": [
          "siteId"
        ]
      },
      "inspector": {
        "inputs": {
          "siteId": {
            "type": "text",
            "label": " Site ID",
            "index": 1,
            "tooltip": "Provide a site ID.",
            "source": {
              "url": "/component/appmixer/microsoft/sharepoint/ListSites?outPort=out",
              "data": {
                "transform": "./ListSites#sitesToSelectArray"
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Drives",
          "value": "drives",
          "schema": {
            "type": "array",
            "example": [
              {
                "id": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "name": "Documents",
                "description": "",
                "driveType": "documentLibrary",
                "webUrl": "https://contoso.sharepoint.com/sites/Marketing/Shared%20Documents",
                "createdDateTime": "2025-11-04T08:12:44Z",
                "lastModifiedDateTime": "2026-03-12T10:05:13Z",
                "createdBy": {
                  "user": {
                    "displayName": "System Account"
                  }
                }
              }
            ]
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
