List followed sites
Namespace: microsoft.graph
List the sites that have been followed by the signed in user.
Note: This API has a known issue and might return incorrect results.
This API is supported in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ✅ | ✅ | ✅ |
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Sites.Read.All, Sites.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Not supported. |
HTTP request
GET /me/followedSites
Note: This method is accessible only through OneDrive for Business.
Optional query parameters
This method supports the OData query parameters to help customize the response.
Request headers
Name | Description |
---|---|
Authorization | Bearer {code}. Required. |
Request Body
Do not supply a request body for this method.
Response
This method returns a collection of site resources that the user is following. If no sites were found, an empty collection is returned.
Example
Request
GET /me/followedSites
Response
HTTP/1.1 200 OK
Content-type: application/json
{
"value": [
{
"id": "contoso.sharepoint.com,2C712604-1370-44E7-A1F5-426573FDA80A,2D2244C3-251A-49EA-93A8-39E1C3A060FE",
"displayName": "OneDrive Team Site",
"webUrl": "https://contoso.sharepoint.com/teams/1drvteam",
"sharepointIds": {
"listItemId": "1",
"siteId": "2C712604-1370-44E7-A1F5-426573FDA80A",
"siteUrl": "https://contoso.sharepoint.com/teams/1drvteam",
"webId": "2D2244C3-251A-49EA-93A8-39E1C3A060FE"
},
"siteCollection": {
"hostname": "contoso.sharepoint.com"
}
},
{
"id": "contoso.sharepoint.com,1C712604-1370-44E7-A1F5-426573FDA80A,1D2244C3-251A-49EA-93A8-39E1C3A060FE",
"displayName": "OneDrive Team Site1",
"webUrl": "https://contoso.sharepoint.com/teams/2drvteam",
"sharepointIds": {
"listItemId": "1",
"siteId": "1C712604-1370-44E7-A1F5-426573FDA80A",
"siteUrl": "https://contoso.sharepoint.com/teams/2drvteam",
"webId": "1D2244C3-251A-49EA-93A8-39E1C3A060FE"
},
"siteCollection": {
"hostname": "contoso.sharepoint.com"
}
}
]
}
Feedback
Submit and view feedback for