microsoftgraph / microsoftgraph/msgraph-sdk-python
No code path in sdk for getting directory role members directly from role template id
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 630
- Fork
- 96
- Merge trung bình
- 15 giờ 20 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
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_
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu tại điểm vào client.directory_roles_with_role_template_id("placeholder-id") và theo dõi cách tài nguyên vai trò thư mục cung cấp các thành viên. Xác nhận rằng SDK có thể thực hiện GET /directoryRoles(roleTemplateId='{roleTemplateId}')/members và xác minh kết quả với yêu cầu Microsoft Graph đã được ghi lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- api
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100