您可以通過一個GET請求與組ID對
https://graph.microsoft.com/v1.0/groups/<your group id>/drive/root/webUrl.
這會給你關於SharePoint網站上的文檔,包括URL信息,做到這一點。 你會得到這樣的事情:
cache-control: private
content-type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
request-id: <some id>
client-request-id: <some id>
Status Code: 200
{
"@odata.context": https://graph.microsoft.com/v1.0/$metadata#groups(<your group id>)/drive/root/webUrl",
"value": "https://<your tennant>.sharepoint.com/sites/<generated SharePoint name>/Shared%20Documents"
}
如果你這樣做與新創建集團的網站將不會存在,所以你會得到一個resource not found
響應。但是當你再次嘗試時,它會提出預期的答案。