| author | learafa |
|---|---|
| description | List the sites that have been followed by the signed in user. |
| title | List followed sites |
| ms.localizationpriority | medium |
| ms.subservice | sharepoint |
| doc_type | apiPageType |
| ms.date | 04/04/2024 |
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.
[!INCLUDE national-cloud-support]
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
GET /me/followedSitesNote: This method is accessible only through OneDrive for Business.
This method supports the OData query parameters to help customize the response.
| Name | Description |
|---|---|
| Authorization | Bearer {code}. Required. |
Don't supply a request body for this method.
This method returns a collection of site resources that the user is following. If no sites were found, an empty collection is returned.
GET https://graph.microsoft.com/v1.0/me/followedSites
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
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"
}
}
]
}