Microsoft Intune Spoke - Role and Permissions - Fixing "Invalid user name and password 401" error


Description

Method failed: (/v1.0/deviceManagement/managedDevices/{managedDeviceId}) with code: 401 - Invalid username/password combo
An error has occurred - Operation ID (for customer support)

Release or Environment

Cause

At this time, all Intune permission scopes require administrator access. This means you need corresponding credentials when running apps or scripts that access Intune API resources.

Resolution

Additional Information