Retrieve SharePoint Site ID from URL/Path Using Graph API Without Sites.Read.All Permission
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 30/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- java
- 領域
- api, authorization
研究方向
首先,檢視 Microsoft Graph API Java SDK 中用於列出網站,以及依名稱、URL 或相對路徑取得 site ID 的進入點,同時檢視此處所述的 Sites.Selected 權限行為。完成的標準是確認這些操作是否能在不使用 Sites.Read.All 的情況下獲得支援;如果可以,則定義所要求的 API 行為,並以適當的 SDK 覆蓋範圍進行驗證。
由索引模型根據 Issue 內容生成。
描述
Is your feature request related to a problem? Please describe the problem.
Hi,
My Java application integrates with SharePoint using the Microsoft Graph API Java SDK to upload and download files from document libraries.
The end-user workflow is as follows:
- Select a SharePoint site from a list, or provide the relative site path (URL).
- Select a document library from the chosen site (we list all available libraries).
- Use a file browser to navigate through the contents and upload/download files or folders.
We’ve noticed that in step #1, listing available sites requires the Sites.Read.All or Sites.ReadWrite.All permissions. Even when trying to retrieve a Site ID from a known path, it requires one of these broad permissions.
However, many of our customers are unwilling to grant Sites.Read.All to our application due to its wide scope.
We would like to know if there is a way (via the API) to:
- list only the sites our app has access to through Sites.Selected?
- retrieve a Site ID using its name, URL, or relative path without needing Sites.Read.All?
Ideally, our app should be able to query only the sites explicitly granted through Sites.Selected, and retrieve the Site ID using a known path.
If this is currently not supported, could you please consider this feature? This capability would be very helpful, especially since many users find it challenging to manually extract the Site ID using browser requests like /api/site/id.
Thanks,
Avner
Describe the solution you'd like.
- Retrieve the site ID from the relative Path
and/or - Allow the existing list sites API to treat the Sites.Selected (rather than Sites.Read.All) permissions.
Additional context?
No response
- 主要語言
- Java
- 星號
- 445
- 分支
- 154
- 平均合併
- 17 小時 22 分鐘
- 30 天內合併 PR
- 3
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoftgraph/msgraph-sdk-java 的其他 Issue
-
status:waiting-for-triage type:bug
難度 2/5 1-3 小時 新手友好度 68/100
microsoftgraph/msgraph-sdk-java#2610 ·
維護者通常 1 天內回覆
-
status:waiting-for-triage type:bug
難度 3/5 1-2 天 新手友好度 55/100
microsoftgraph/msgraph-sdk-java#2656 ·
維護者通常 1 天內回覆
-
status:waiting-for-triage type:bug
難度 4/5 3-5 天 新手友好度 38/100
microsoftgraph/msgraph-sdk-java#2654 ·
維護者通常 1 天內回覆
-
status:waiting-for-triage
難度 4/5 3-5 天 新手友好度 35/100
microsoftgraph/msgraph-sdk-java#2639 ·
維護者通常 1 天內回覆
-
status:waiting-for-triage type:bug
難度 3/5 1-2 天 新手友好度 35/100
microsoftgraph/msgraph-sdk-java#2589 · 1 則留言 ·
維護者通常 1 天內回覆
查看 microsoftgraph/msgraph-sdk-java 的全部 Issue
相似的 Issue
-
難度 1/5 1-3 小時 新手友好度 88/100
-
[Bug] The shared instance selector's placeholder and no-match text ignore the display language可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 90/100
apache/rocketmq-dashboard#5561 ·
維護者通常 3 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
bug good first issue help wanted priority medium size S
難度 2/5 1-3 小時 新手友好度 84/100
martin-francois/symphony-trello#776 · 1 則留言 ·
維護者通常 1 天內回覆
-
Console.printHex未關閉good first issue kernel
難度 2/5 1-3 小時 新手友好度 88/100
JackFurton/who-would-build-a-kernel-in-java#33 · 2 則留言 ·
維護者通常 1 天內回覆