How can I get a list of the used devices out of a user group in Intune?

Miguel Silva 20 Reputation points
2023-06-22T17:17:28.5433333+00:00

We have a dynamic user group and I would like to extract all the devices being used in that user group, is it possible?

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

Answer accepted by question author
  1. Crystal-MSFT 54,206 Reputation points Microsoft External Staff
    2023-06-23T05:32:39.4266667+00:00

    @Miguel Silva, Thanks for posting in Q&A. Based on my researching, I don't find the existing PowerShell script to do this. But I have some thoughts for this:

    1. We can get the members of the dynamic user group to get the users.

    https://learn.microsoft.com/en-us/powershell/module/azuread/get-azureadgroupmember?view=azureadps-2.0

    1. Then you can get the registered device for these users.

    https://morgantechspace.com/2019/06/get-azure-ad-users-with-registered-devices-powershell.html Note: Non-Microsoft link, just for the reference.

    Hope the above information 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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.