get_device_compliance under intune Api permission

bond 126 Reputation points
2020-07-16T07:13:10.84+00:00

Hi All,

Can you plz tell me which REST API i should use if i do an AAD app registration and provide get_device_compliance under intune api permission?
I just want to get device compliance information (managed/enrolled/compliance).
I am aware this can be retrieve by using /devicemanagement & /device Graph API but this require respective permission under Graph API permission.

But then what is the use of get_device_compliance ? Does it provide more info than /devicemanagement & /device?

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,657 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,320 questions
{count} votes

Accepted answer
  1. bond 126 Reputation points
    2020-07-21T18:54:11.24+00:00

    At last found ,we need to use Data warehouse endpoint api's

    Ref: https://video2.skills-academy.com/en-us/mem/intune/developer/reports-api-url, https://video2.skills-academy.com/en-us/mem/intune/developer/reports-ref-devices & https://video2.skills-academy.com/en-us/mem/intune/developer/reports-proc-data-rest

    Endpoint >> https://fef.{location}.manage.microsoft.com/ReportingService/DataWarehouseFEService/{entity-collection}?api-version={api-version}

    entity-collection=devices

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. VipulSparsh-MSFT 16,251 Reputation points Microsoft Employee
    2020-07-17T04:52:36.447+00:00

    @bond-3854 Intune APIs are available via the Microsoft Graph API. With less documentation and more options for graph API, most of the implementation and help is available around graph API for intune. I would recommend to user graph API instead.

    The dedicated Intune Rest API document is not updated since 2016.
    As you are already aware /devicemanagement & /device will fetch the info, you should take this route.

    Let me know if you have any questions.


    If the suggested response helped you resolve your issue, do click on "Mark as Answer" and "Up-Vote" for the answer that helped you for benefit of the community.

    0 comments No comments