devices expand=registeredUsers does only return the id
まだ誰も着手していません。
評価
調査の方向性
まず、expand=['registeredUsers'] を指定して GraphServiceClient と DevicesRequestBuilder 経由でリクエストを再現し、その後 SDK のレスポンスと Graph Explorer のレスポンスを比較します。返されたデバイスオブジェクトで registeredUsers がどのように表現され、設定されているかを追跡します。完了条件は、展開されたユーザーが id 以外のプロパティを公開し、サービスのレスポンスと一致することです。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Using the devices endpoint in graph and the parameter expand=registeredUsers is supposed to return (all) values for all registered users.
Each registered user is supposed to be of type #microsoft.graph.user
Using graph-explorer, this works, i.e. https://graph.microsoft.com/beta//devices?$expand=registeredUsers
will contain a list of microsoft.graph.user objects in the registeredUsers property, where each user has attributes like mail, imAddresses etc filled.
Using the SDK only the id property for the microsoft.graph.user object is filled, i.e. all other properties are None or empty collections.
Is this a bug or something on my end I don't understand?
my calling code (broken down):
request_config = DevicesRequestBuilder.DevicesRequestBuilderGetQueryParameters(
top=20,
expand=['registeredUsers']
)
self._event_loop.run_until_complete(self._graph_service.devices.get(request_config))
where _event_loop == asyncio.get_event_loop()
and _graph_service == GraphServiceClient
Expected behavior
A list of devices is returned, where registered Users of type #microsoft.graph.user in the device's registeredUsers property have more properties filled than just the ID
How to reproduce
See description
SDK Version
1.56.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
No response
Configuration
- OS: MacOS 26.3.1
- Arch: Apple Silicon
- Python: 3.13.7 (venv)
Other information
No response
- 主要言語
- Python
- スター
- 44
- フォーク
- 16
- 平均マージ
- 20時間 39分
- マージ済み PR(30日)
- 3
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoftgraph/msgraph-beta-sdk-python のほかの issue
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
status:waiting-for-triage type:bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
type:bug type:investigation
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
microsoftgraph/msgraph-beta-sdk-python#1033 · リアクション 1 件 ·
-
status:waiting-for-triage type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
microsoftgraph/msgraph-beta-sdk-python#987 · コメント 2 件 ·
-
status:waiting-for-triage type:bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
microsoftgraph/msgraph-beta-sdk-python の issue をすべて見る
似ている issue
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·