Share via

Device_management output difference

Tarun Batra 0 Reputation points
2024-03-23T12:03:22.5266667+00:00

Hi, I am looking for the following fields:

  • subscription_state
  • device_protection_overview

From the documentation i found that the above fields can be get by calling the following api, if i am using msgraph sdk: graph_client.device_management.get()

BUT, i am using request module in python as i need json response, i ended up calling https://graph.microsoft.com/v1.0/deviceManagement But the output of the above api being called via requests module is: {'@odata.context': 'https://graph.microsoft.com/v1.0/$metadata#deviceManagement', 'id': 'deviceManagement', 'settings': None, 'intuneAccountId': '792f071f-388c-42bd-8622-c26033a44c41'} //dummy account id

Can you please help me getting the url by which i get the same output as using msgraph-sdk

Microsoft Security | Microsoft Graph
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.