> 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 Sites

- Component: `appmixer.microsoft.sharepoint.ListSites`
- 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.ListSites>

List all available sites in an organization.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Search text (`query`) | text | - |
| Limit (`limit`) | number | Limit the number of returned files. If you leave this field empty, first 100 files will be returned. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Sites (`sites`) | array | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.microsoft.sharepoint.ListSites",
  "label": "List Sites",
  "author": "Harsha Surisetty <harsha@client.io>",
  "description": "List all available sites in an organization.",
  "private": false,
  "auth": {
    "service": "appmixer:microsoft",
    "scope": [
      "Sites.Read.All"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "limit": {
            "type": "number"
          }
        }
      },
      "inspector": {
        "inputs": {
          "query": {
            "type": "text",
            "label": "Search text",
            "index": 0
          },
          "limit": {
            "type": "number",
            "label": "Limit",
            "tooltip": "Limit the number of returned files. If you leave this field empty, first 100 files will be returned.",
            "defaultValue": 100,
            "index": 1
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Sites",
          "value": "sites",
          "schema": {
            "type": "array",
            "example": [
              {
                "id": "contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe",
                "name": "Marketing",
                "displayName": "Marketing",
                "description": "Marketing team site",
                "webUrl": "https://contoso.sharepoint.com/sites/Marketing",
                "createdDateTime": "2025-11-04T08:12:40Z",
                "lastModifiedDateTime": "2026-03-12T10:05:13Z"
              }
            ]
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
