Usage
Provide a m365 aad group list command to output Azure AD Groups. The Azure CLI does not provide details on the group type. az ad group list does not indicate if something is a dynamic group or not.
Suggestion is to provide all groups using the Microsoft Graph /v1.0/groups endpoint.
Description
Lists all Azure AD groups in the tenant.
Options
N/a
Additional Information
By providing the full json object we can write a sample script that returns all group names and their membershipRules. These membership rules are important if you are working with dynamic groups. By providing this command we can write a sample script that could check all dynamic membership groups for specific queries (like would updating a user profile property impact any of the existing dynamic groups).
Given that we already have a aad o365group list command we might have the opportunity to reuse some of that logic.
Usage
Provide a
m365 aad group listcommand to output Azure AD Groups. The Azure CLI does not provide details on the group type.az ad group listdoes not indicate if something is a dynamic group or not.Suggestion is to provide all groups using the Microsoft Graph
/v1.0/groupsendpoint.Description
Lists all Azure AD groups in the tenant.
Options
N/a
Additional Information
By providing the full json object we can write a sample script that returns all group names and their membershipRules. These membership rules are important if you are working with dynamic groups. By providing this command we can write a sample script that could check all dynamic membership groups for specific queries (like would updating a user profile property impact any of the existing dynamic groups).
Given that we already have a
aad o365group listcommand we might have the opportunity to reuse some of that logic.