Skip to content

Remove-MgBetaDeviceManagementDomainJoinConnector returns 403 #3685

Description

@tylermontneyacc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions