microsoftgraph / microsoftgraph/msgraph-metadata
Entra Id Group (not role assignable) fails to remove Owners if last Owner is a SPN
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- XSLT
- Star
- 166
- Fork
- 55
- Merge trung bình
- 16 giờ 12 phút
- Pull request đã merge (30 ngày)
- 14
Mô tả
Hi,
as suggested in https://github.com/hashicorp/terraform-provider-azuread/issues/1435 I am raising this issue here as well since this error is not related to Terraform and also happening in the Azure Portal UI.
Scenario 1
A group has two Owner objects of which one is a SPN. I am trying to remove the 2nd Owner object which is not a SPN (SPN = last Owner).
Case 1
Role Assignable Group (Single Object Remove):
I am able to remove a 2nd Owner (Terraform & UI).
Case 2
Not Role Assignable Group (Single Object Remove):
I am not able to remove a 2nd Owner (Terraform & UI).
Note: This is only true if the last remaining Owner is a SPN. It is possible if the last object is a user object.
Scenario 2
A group has three or more Owners of which one is a SPN. I am trying to remove all Owner objects which are not a SPN (SPN = last Owner).
Case 3
Not Role Assignable Group (Multiple Object Remove / batch as highlighted here):
UI -> I am able to remove all Owner objects by selecting all objects but the SPN.
Terraform -> I am not able to remove all Owner objects because the Terraform Provider does this one by one.
Error Details
UI -> Failed to remove group owner. The group must have at least one owner.
Terraform -> Error: GroupsClient.BaseClient.Delete(): unexpected status 400 with OData error: Request_BadRequest: The group must have at least one owner, hence this owner cannot be removed.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 bằng việc xem xét issue #1435 được liên kết của terraform-provider-azuread và so sánh ba kịch bản xóa chủ sở hữu được mô tả ở đây trong Azure Portal và Terraform. Báo cáo không xác định tệp nào trong repository hoặc test nào; để hoàn tất, cần xác nhận hành vi và thiết lập một giải pháp hoặc hướng xử lý đượ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ệ
- azure
- Lĩnh vực
- api, authorization
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100