Azure Graph Manage devices

Avital Malka 0 Reputation points
2023-01-23T09:39:36.32+00:00

I use the groups/{group_id}/transitiveMembers to get the group members.

Some of the members are Device type.

How can i know if the device is Managedevice or not without calling the Manageddevice API or call any other API.

The value of a managed device and not managed device is same in the transitiveMembers API response.

Microsoft Security | Intune | Other
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 54,201 Reputation points Microsoft External Staff
    2023-01-24T07:26:06.8166667+00:00

    @Avital Malka, Thanks for posting in Q&A.

    For "List group transitive members". there is no attribute with managed device. Here is a link with more details:

    https://learn.microsoft.com/en-us/graph/api/group-list-transitivemembers?view=graph-rest-1.0&tabs=http

    From your description, I know you don't want to use the manageddevice API. After researching, I find the device API in AAD can help. It has an attribute "managementType" which shows if the device is managed by MDM.

    User's image

    https://learn.microsoft.com/en-us/graph/api/device-list?view=graph-rest-beta&tabs=http

    Hope it can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.