microsoftgraph / microsoftgraph/msgraph-sdk-python
No code path in sdk for getting directory role members directly from role template id
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 630
- フォーク
- 96
- 平均マージ
- 15時間 20分
- マージ済み PR(30日)
- 3
説明
Describe the bug
I want to look up members of a directory role by its template id:
GET /directoryRoles(roleTemplateId='{roleTemplateId}')/members
As documented here: https://learn.microsoft.com/en-us/graph/api/directoryrole-list-members?view=graph-rest-1.0&tabs=python#http-request
But the closest I could come was:
client.directory_roles_with_role_template_id("placeholder-id").members # But .members does not exist
Unless I have missed it, it looks like the /directoryRoles(roleTemplateId='{roleTemplateId}')/members query is not possible with the current SDK.
Expected behavior
It should be possible to make the query GET /directoryRoles(roleTemplateId='{roleTemplateId}')/members via the SDK.
How to reproduce
N/A (apart from trying to construct the query)
SDK Version
1.58.0
Latest version known to work for scenario above?
No response
Known Workarounds
It can be worked around by first getting the directory role, and then querying its members by role id (instead of role template id).
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
エントリポイント client.directory_roles_with_role_template_id("placeholder-id") から開始し、ディレクトリ ロール リソースがメンバーをどのように公開しているかを追跡します。SDK が GET /directoryRoles(roleTemplateId='{roleTemplateId}')/members を発行できることを確認し、結果を文書化された Microsoft Graph のリクエストと照合します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100