Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api-reference/v1.0/api/site-get.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ To access the team site for a group:
GET /groups/{group-id}/sites/root
```

> [!IMPORTANT]
> This API has a known issue: when trying to access a group team site using `GET /groups/{group-id}/sites/root`, you may receive a **308 Permanent Redirect** response. If you follow the Location URL in the response header, it will lead to a **401 Unauthorized** error because the redirect targets the SharePoint REST API directly. **This happens when the group team's site has been renamed.**
Copy link
Contributor

@Danielabom Danielabom Sep 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> This API has a known issue: when trying to access a group team site using `GET /groups/{group-id}/sites/root`, you may receive a **308 Permanent Redirect** response. If you follow the Location URL in the response header, it will lead to a **401 Unauthorized** error because the redirect targets the SharePoint REST API directly. **This happens when the group team's site has been renamed.**
> This API has a known issue: when trying to access a group team site using `GET /groups/{group-id}/sites/root`, you may receive a **308 Permanent Redirect** response. If you follow the Location URL in the response header, it leads to a **401 Unauthorized** error because the redirect targets the SharePoint REST API directly. This happens when the group team's site has been renamed.

>
> As a workaround, you can extract the site domain and relative path from the redirect URL in the response header and then retrieve the SharePoint site by path using `GET /sites/{hostname}:/{relative-path}`. For more information, see: [Get SharePoint site by path](site-getbypath.md).

## Request headers

|Name|Description|
Expand Down
Loading