CmdID / az / az ad / az ad user
az ad user get-member-groups
Get groups of which the user is a member Azure CLI reference
1 example 1 option Its page in the Azure CLI reference
Examples
Get groups of which the user is a member
az ad user get-member-groups --id myuser@contoso.comIdentify--idThe object ID or principal name of the user for which to get informationOptions
--security-enabled-onlytrue to specify that only security groups that the entity is a member of should be returned; false to specify that all groups and directory roles that the entity is a member of should be returned.