microsoftgraph / microsoftgraph/msgraph-sdk-python

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

未关闭
#1,524 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

status:waiting-for-triage type:bug
主要语言
Python
星标
630
派生
96
平均合并
15 小时 20 分钟
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 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 摘要。