You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to remove an old connector as Global Admin and Scope "DeviceManagementConfiguration.ReadWrite.All". Invoking Remove-MgBetaDeviceManagementDomainJoinConnector returns the following:
Hi Tyler (@tylermontneyacc) , the 403 error code implies a permissions issue. Can you confirm that the account you are using has the required permissions to run this command? Further, I recommend trying this request in Graph Explorer to confirm if this is a permissions issue or a sdk issue.
Hi @tylermontneyacc , the 403 error code implies a permissions issue. Can you confirm that the account you are using has the required permissions to run this command? Further, I recommend trying this request in Graph Explorer to confirm if this is a permissions issue or a sdk issue.
Graph Explorer produces the same result as GA. I've consented DeviceManagementConfiguration.ReadWrite.All. Can read but not delete.
According to my MS support case, this is by design. I half expected it, as other connectors they have can't be deleted. But to have a Graph doc on it seems very misleading. Graph calls the ODJ service (same service the connector calls), so I don't believe this would work for anyone.
Unless y'all have some cool Microsoft contacts on that side, I think this cmdlet should either be removed or return a descriptive error.
Activity
tylermontneyacc commentedon Jul 31, 2026
I thought maybe it being in an "Active" state was the problem. It finally went back to "Error" state, and I still can't delete it.
ramsessanchez commentedon Aug 5, 2026
Hi Tyler (@tylermontneyacc) , the 403 error code implies a permissions issue. Can you confirm that the account you are using has the required permissions to run this command? Further, I recommend trying this request in Graph Explorer to confirm if this is a permissions issue or a sdk issue.
tylermontneyacc commentedon Aug 5, 2026
Graph Explorer produces the same result as GA. I've consented
DeviceManagementConfiguration.ReadWrite.All. Can read but not delete.tylermontneyacc commentedon Aug 5, 2026
According to my MS support case, this is by design. I half expected it, as other connectors they have can't be deleted. But to have a Graph doc on it seems very misleading. Graph calls the ODJ service (same service the connector calls), so I don't believe this would work for anyone.
Unless y'all have some cool Microsoft contacts on that side, I think this cmdlet should either be removed or return a descriptive error.