Powershell query to list what resources an AAD group is assigned to in Intune

zk 21 Reputation points
2023-06-20T14:28:37.32+00:00

What Powershell query will list what resources an AAD group is assigned to in Intune. Apps are listed but not Configuration Profiles.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,836 questions
Microsoft Intune Grouping
Microsoft Intune Grouping
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Grouping: The arrangement or formation of people or things in a group or groups.
41 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,479 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,848 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marilee Turscak-MSFT 34,786 Reputation points Microsoft Employee
    2023-06-22T22:15:20.84+00:00

    Hi @zk ,

    The best way to query the Configuration Profiles is by using Microsoft Graph. To do so, the Global Admin must give consent to using Graph.

    The script by TomWechsler on Tech Community retrieves all assigned Intune policies and applications per Azure AD group and shows which Azure Active Directory groups have been assigned to the configuration profiles.

    There is a modified version of this script that exports the information to a CSV and outputs the device configurations for the groups.

    User's image

    Let me know if this is what you are looking for.

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar information.


0 additional answers

Sort by: Most helpful