Owners not assigned correctly in bulk member add & inconsistent response behavior
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- java, spring-boot
Hướng nghiên cứu
Bắt đầu bằng cách lần theo các điểm vào của SDK cho createTeam và /teams/{id}/members/add, sử dụng các request tái hiện và header phản hồi làm cơ sở. So sánh cách xử lý vai trò owner và response tạo với hành vi của Microsoft Graph, sau đó xác định từng khác biệt thuộc về SDK hay service. Được xem là hoàn tất khi cả hai hành vi được báo cáo đều có phạm vi sửa lỗi đã được xác nhận và có thể kiểm thử.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
When creating a Team and adding members using the Microsoft Graph SDK for Java, there are two issues:
- Bulk add does not correctly assign owner roles
When using the bulk member add endpoint (/teams/{id}/members/add), users specified with the role "owner" are not assigned as owners.
Instead, they are added as regular members, even though the request payload explicitly defines the owner role.
This behavior occurs without any error or exception, making it difficult to detect programmatically. As a result, affected users do not receive the required owner permissions.
- createTeam does not return the created Team
The SDK method used to create a Team suggests that a Team object will be returned. However, the response does not contain the created Team resource.
Instead, the Team ID must be retrieved indirectly (e.g., via response headers or additional handling), which is not aligned with common framework expectations.
Expected behavior
-
Correct role assignment in bulk add
When adding members via the bulk endpoint, the roles provided in the request (e.g., "owner") should be correctly applied.
Users specified as owners must be assigned owner permissions within the Team. -
Ability to define members and roles during Team creation
It should be possible to fully define all desired members and their roles (including owners) directly during Team creation, without requiring a separate bulk add step. -
Consistent and intuitive SDK response behavior
The createTeam operation should either:
- return the created Team entity, or
- clearly reflect (through API design and SDK behavior) that no resource is returned.
Ideally, the SDK should align with common framework standards and not imply a return value that is not actually provided.
How to reproduce
Create Team
POST https://graph.microsoft.com/v1.0/teams
Content-Type: application/json
{
"[email protected]": "https://graph.microsoft.com/v1.0/teamsTemplates('standard')",
"displayName": "Test Team",
"members": [
{
"@odata.type": "#microsoft.graph.aadUserConversationMember",
"roles": ["owner"],
"[email protected]": "https://graph.microsoft.com/v1.0/users('[email protected]')"
}
]
}
Retrieve Team ID
The Team ID is extracted from the response (e.g., via response headers / response options).
Bulk add members
POST https://graph.microsoft.com/v1.0/teams/{team-id}/members/add
Content-Type: application/json
{
"values": [
{
"@odata.type": "microsoft.graph.aadUserConversationMember",
"roles": [],
"[email protected]": "https://graph.microsoft.com/v1.0/users('[email protected]')"
},
{
"@odata.type": "microsoft.graph.aadUserConversationMember",
"roles": [],
"[email protected]": "https://graph.microsoft.com/v1.0/users('[email protected]')"
},
{
"@odata.type": "microsoft.graph.aadUserConversationMember",
"roles": [],
"[email protected]": "https://graph.microsoft.com/v1.0/users('[email protected]')"
},
{
"@odata.type": "microsoft.graph.aadUserConversationMember",
"roles": ["owner"],
"[email protected]": "https://graph.microsoft.com/v1.0/users('[email protected]')"
},
{
"@odata.type": "microsoft.graph.aadUserConversationMember",
"roles": ["owner"],
"[email protected]": "https://graph.microsoft.com/v1.0/users('[email protected]')"
}
]
}
SDK Version
6.62.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
The log contains no errors, which is also a real problem.
Configuration
- OS: Windows Local and a Debian on the production VM but the behavior is on both systems the same
-Within a permission management workflow implemented in a Spring Boot 3.5.x application, Teams are programmatically created and populated in a Job with members using the Microsoft Graph SDK for Java.
Other information
No response
- Ngôn ngữ chính
- Java
- Star
- 447
- Fork
- 155
- Merge trung bình
- 23 giờ 41 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc 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.
Issue khác của microsoftgraph/msgraph-sdk-java
-
status:waiting-for-triage type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoftgraph/msgraph-sdk-java#2610 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status:waiting-for-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
microsoftgraph/msgraph-sdk-java#2678 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status:waiting-for-triage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
microsoftgraph/msgraph-sdk-java#2654 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status:waiting-for-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoftgraph/msgraph-sdk-java#2639 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Error in PATCH onlineMeetingĐang mởstatus:waiting-for-triage type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
microsoftgraph/msgraph-sdk-java#2589 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoftgraph/msgraph-sdk-java
Issue tương tự
-
A CSV row that removes a language with #CLEAR and fills another name of it keeps one of themĐang mởbug level:trivial
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
exoego/keycloak-fuhito#666 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ant-media/Ant-Media-Server#8185 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
desktop grp:about type:graphics-bug ui-public
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 2 ngày
-
EC2 SSH agent launch fails with NullPointerException when HTTP proxy has no password configuredĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jenkinsci/ec2-plugin#2051 ·