powershell-intune-samples icon indicating copy to clipboard operation
powershell-intune-samples copied to clipboard

Assign-ManagedAppPolicy not assigning multiple groups

Open stevenmonk opened this issue 4 years ago • 0 comments

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

stevenmonk avatar Jun 23 '21 12:06 stevenmonk