Remove-MgBetaDeviceManagementDomainJoinConnector returns 403

Đang mở
#3,685 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
powershell
Lĩnh vực
api, authorization

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện Remove-MgBetaDeviceManagementDomainJoinConnector từ module Microsoft.Graph.Beta.DeviceManagement.Administration với scope và connector ID được báo cáo. Kiểm tra request được tạo và response 403, sau đó so sánh hành vi của cmdlet với các quyền Microsoft Graph bắt buộc. Hoàn thành khi xác định và khắc phục được vấn đề của SDK hoặc request để thao tác xóa connector thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Needs: Attention :wave: type:bug
Describe the bug

Attempting to remove an old connector as Global Admin and Scope "DeviceManagementConfiguration.ReadWrite.All". Invoking Remove-MgBetaDeviceManagementDomainJoinConnector returns the following:

Status: 403 (Forbidden)
ErrorCode: UnknownError
Date: 2026-07-31T19:24:09
Expected behavior

It should delete the connector without error.

How to reproduce
Install-Module -Name "Microsoft.Graph.Beta.DeviceManagement.Administration" -Scope CurrentUser -Repository PSGallery
Connect-MgGraph -Scopes DeviceManagementConfiguration.ReadWrite.All
Remove-MgBetaDeviceManagementDomainJoinConnector -DeviceManagementDomainJoinConnectorId "fc4a3994-9d48-4be9-91a5-02f7cf1c1a62"
SDK Version

2.38.1

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

No response

Configuration
PSVersion                      7.6.3
PSEdition                      Core
GitCommitId                    7.6.3
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
Other information

No response

Ngôn ngữ chính
C#
Star
898
Fork
230
Merge trung bình
2 ngày 5 giờ
Pull request đã merge (30 ngày)
31

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/msgraph-sdk-powershell

Tất cả issue của microsoftgraph/msgraph-sdk-powershell

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.