microsoftgraph / microsoftgraph/msgraph-sdk-java
Retrieve SharePoint Site ID from URL/Path Using Graph API Without Sites.Read.All Permission
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 444
- フォーク
- 154
- 平均マージ
- 18時間 28分
- マージ済み PR(30日)
- 4
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、サイトを一覧表示し、名前、URL、または相対パスから site ID を取得するための Microsoft Graph API Java SDK のエントリポイントと、ここで説明されている Sites.Selected のアクセス許可の動作を確認してください。これらの操作を Sites.Read.All なしでサポートできるかどうかを明らかにし、可能であれば、要求された API の動作を定義して適切な SDK カバレッジで検証できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api, authorization
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100