powershell-intune-samples
powershell-intune-samples copied to clipboard
Assign-ManagedAppPolicy not assigning multiple groups
Hi,
When i call Assign-ManagedAppPolicy function within a foreach group to assign 10 AAD groups to an app protection policy, only the last group in the list gets added. no errors are thrown and i can confirm that each Invoke command triggered by the loop has the correct group object_id
I use Get-AzureADGroup to build the array of groups that need to be assigned