The Get-IntuneWin32AppAssignment cmdlet is currently returning the Excluded value for Property GroupMode for 'All Users' and 'All Devices' even if these groups are Included in the assignment scope.
I looked into the cmdlet and I think this behavior occurs because starting on line 187 the $GroupMode variable is declared, the last value Exclude is assigned, the odata.type #microsoft.graph.allDevicesAssignmentTarget is not handled in the switch and the value Exclude is retained and returned in the PSObject.
The Get-IntuneWin32AppAssignment cmdlet is currently returning the Excluded value for Property GroupMode for 'All Users' and 'All Devices' even if these groups are Included in the assignment scope.
I looked into the cmdlet and I think this behavior occurs because starting on line 187 the $GroupMode variable is declared, the last value Exclude is assigned, the odata.type #microsoft.graph.allDevicesAssignmentTarget is not handled in the switch and the value Exclude is retained and returned in the PSObject.