Hi @Leon Prentice ,
Currently with Intune Graph API's we can only get Enrolled user with list-manageddevice GET /beta/deviceManagement/managedDevices
.
We can get the primary users associated with the managed device for a specified managedDeviceId
and this API/endpoint is only available in /beta
now get-manageddevice.
GET /beta/deviceManagement/managedDevices/{managedDeviceId}/users
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.
Reference docs: intune-devices-manageddevice
Additionally refer to this Intune Graph API with PowerShell that can help you get all devices and primary users PrimaryUser_Get.
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".