> For the complete documentation index, see [llms.txt](https://apidocs.zerionsoftware.com/doc/iformbuilder-v80/llms.txt)

# List SharePoint Sites

> GET /media_storage/connections/7/sites
> 
> Lists the SharePoint sites the profile's SharePoint connection can use, for `site_id` in `PUT /media_storage/active`. The tenant's root site is listed with the id `root`.
> 
> ### Authorization
> 
> Internal clients only, and a SERVER or COMPANY user.



## Servers
- https://api.iformbuilder.com/exzact/api/v80/[servername]: https://api.iformbuilder.com/exzact/api/v80/[servername]


## Authentication methods
- Oauth2


## Parameters
### Headers

- **Authorization** (string)
  e.g. Bearer {access_token}





## Responses
### 200
OK

#### Body: application/json (array[object])
- **id** (string)
  `root`, or a Graph site id (host,siteCollectionId,webId); pass as `site_id`

- **label** (string)
  the site's display name


### 401
Unauthorized - missing or invalid bearer token.

### 403
Forbidden - the client is not an internal client, or the token belongs to a BASIC user.

### 409
Conflict - the profile has no SharePoint connection, or it must be reconnected.

### 422
Unprocessable Entity - the SharePoint connection is a personal Microsoft account; SharePoint needs a work or school account.

### 502
Bad Gateway - Microsoft Graph failed.


[Powered by Bump.sh](https://bump.sh)
