Registering devices with Intune for management and policy enforcement
Your Graph permissions look correct — you already have:
DeviceManagementManagedDevices.PrivilegedOperations.All
However, since you're using Delegated permissions, the signed-in user must also have sufficient Intune RBAC rights to perform the wipe.
From your screenshot, the role assigned only includes:
- Managed devices → Read / Delete / Query
It does not show permission for Remote tasks → Wipe.
In Intune, wipe is a privileged remote action controlled by RBAC. Even with the correct Graph scope, the API call will return 403 if the user does not have wipe permission in Intune.
To test:
- You could temporarily assign yourself the Intune Administrator role(If you have ability)
Or update the custom role to include Managed devices → Remote tasks → Wipe
Also ensure scope tags allow access to the target device.
Since you're getting "User is not authorized", this points to Intune RBAC rather than missing Graph permissions.