microsoftgraph / powershell-intune-samples

This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.
MIT License
1.37k stars 659 forks source link

Assign Multiple Groups to Add-DeviceCompliancePolicyAssignment #166

Open SGeeves opened 3 years ago

SGeeves commented 3 years ago

Hi There, Just want to first say, thanks for everything people do on here. Has been really helpful and super productive!

On the Add-DeviceCompliancePolicyAssignment function you can only add in a single group to the policy assignment at the moment, it would be great if this can have multiple groups assigned.

_Had the same issue with the Add-DeviceConfiguration, which had been resolved with this https://github.com/microsoftgraph/powershell-intune-samples/blob/master/DeviceConfiguration/DeviceConfiguration_Add_Assign.ps1_

I have tried (and failed) to try and replicate the changes myself.

Keep doing what you're doing :)