microsoftgraph / microsoftgraph/msgraph-sdk-python

No code path in sdk for getting directory role members directly from role template id

オープン
#1,524 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

status:waiting-for-triage type:bug
主要言語
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_

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。