Microsoft Graph Api - Physical Memory Info for Managed Devices is not being returned correctly.

Arslan Yaqoob 26 Reputation points
2022-05-18T05:49:17.517+00:00

Hi Hope you guys are doing great. I was using micro-soft graph api to retrieve information from Intune. But I am unable to get the physical memory information. It always returns 0 while using Api.

https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$top=100

I am using v1.0 api. I have tried this on beta and still same results for the batch action.

Here is th API response I am getting:

{"meid"=>"",
"serialNumber"=>"5CD0123KL4",
"wiFiMacAddress"=>"548D5A09D8F0",
"deviceName"=>"DESKTOP-538BL57",
"operatingSystem"=>"Windows",
"osVersion"=>"10.0.19044.1645",
"id"=>"f4094979-b944-4adb-b49f-96575cf2de46",
"physicalMemoryInBytes"=>0,
"model"=>"HP ProBook 450 G7",
"manufacturer"=>"HP",
"totalStorageSpaceInBytes"=>373835169792,
"freeStorageSpaceInBytes"=>190837686272,
"jailBroken"=>"Unknown",
"isEncrypted"=>true,
"isSupervised"=>false,
"complianceState"=>"compliant",
"activationLockBypassCode"=>nil,
"userPrincipalName"=>"apple@asintune1.onmicrosoft.com",
"lastSyncDateTime"=>"2022-04-27T07:33:57Z",
"enrolledDateTime"=>"2021-08-12T12:36:20Z",
"managedDeviceName"=>"apple_Windows_8/12/2021_12:36 PM",
"hardwareInformation"=>
{"serialNumber"=>"5CD0123KL4",
"totalStorageSpace"=>0,
"freeStorageSpace"=>0,
"imei"=>"",
"meid"=>nil,
"manufacturer"=>nil,
"model"=>nil,
"phoneNumber"=>nil,
"subscriberCarrier"=>nil,
"cellularTechnology"=>nil,
"wifiMac"=>nil,
"operatingSystemLanguage"=>nil,
"isSupervised"=>false,
"isEncrypted"=>false,
"batterySerialNumber"=>nil,
"batteryHealthPercentage"=>0,
"batteryChargeCycles"=>0,
"isSharedDevice"=>false,
"tpmSpecificationVersion"=>nil,
"operatingSystemEdition"=>nil,
"deviceFullQualifiedDomainName"=>nil,
"deviceGuardVirtualizationBasedSecurityHardwareRequirementState"=>"meetHardwareRequirements",
"deviceGuardVirtualizationBasedSecurityState"=>"running",
"deviceGuardLocalSystemAuthorityCredentialGuardState"=>"running",
"osBuildNumber"=>nil,
"operatingSystemProductType"=>0,
"ipAddressV4"=>nil,
"subnetAddress"=>nil,
"esimIdentifier"=>nil,
"systemManagementBIOSVersion"=>nil,
"tpmManufacturer"=>nil,
"tpmVersion"=>nil,
"sharedDeviceCachedUsers"=>[]}}

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,687 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,383 questions
0 comments No comments
{count} votes

Accepted answer
  1. Srinivasa Rao Darna 6,696 Reputation points Microsoft Vendor
    2022-05-18T06:21:44.967+00:00

    Hi @Arslan Yaqoob ,

    Some properties(esp. those within HardwareInformation) will only return the real value when they are selected together with hardwareInformation. We have an active incident with Microsoft Product Group on this.

    As a workaround, can you try using ?$select=hardwareInformation,physicalMemoryInBytes.

    GET /deviceManagement/manageddevices/{managedDeviceId}?$select=hardwareInformation,physicalMemoryInBytes  
    

    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".

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful