v4.1.0 - Assignment Filters
What's new
You can now see Intune assignment filters wherever assignments are shown. Closes #122.
Filters in Intune scope an assignment to a subset of devices based on properties (OS version, model, ownership, manufacturer, etc.). Until now, the only way to know whether a filter was attached to an assignment was to open the Intune portal and click into each one. v4.1.0 surfaces this directly in every output.
Where filters appear
Every assignment now shows the filter name and include/exclude type when one is attached. Format: <target> (Filter: <name> [Include|Exclude]).
- Console output for
Get-IntuneUserAssignment,Get-IntuneGroupAssignment,Get-IntuneDeviceAssignment,Get-IntuneAllUsersAssignment,Get-IntuneAllDevicesAssignment,Get-IntuneAllPolicies - Simulation results from
Test-IntuneGroupMembershipandTest-IntuneGroupRemoval - Comparison output from
Compare-IntuneGroupAssignment - Reverse search from
Search-IntunePolicy - CSV exports get dedicated
FilterNameandFilterTypecolumns - HTML reports from
New-IntuneHTMLReportget a new Filter column on every assignment table
Coverage includes: Configuration Profiles, Settings Catalog, Compliance Policies, App Protection, App Configuration, Mobile Apps, Platform and Remediation Scripts, Autopilot Deployment Profiles, Enrollment Status Page, Endpoint Security (Antivirus, Disk Encryption, Firewall, EDR, ASR, Account Protection), and Windows 365 Cloud PC Provisioning Policies and User Settings.
Under the hood
Get-AssignmentFilterLookupfetches all filters once at connect time and caches them. No extra Graph calls per assignment.Format-AssignmentFilteris a single helper used everywhere a filter is rendered, so the format stays consistent.- Equality checks against
Excluded/Included/All Users/All Deviceswere updated to startswith comparisons so the new filter suffix does not break detection logic in simulations and comparisons.
Tests
- 44 Pester 5 unit tests covering every helper and the CSV regex extractor, running on Ubuntu, Windows, and macOS via GitHub Actions on every PR
Tests/Smoke/Run-Smoke.ps1for manual pre-release verification against a live tenant
Install
Install-Module IntuneAssignmentChecker -Scope CurrentUser
IntuneAssignmentCheckerTo upgrade from v4.0.0:
Update-Module IntuneAssignmentCheckerMigration
No breaking changes. Existing scripts and runbooks continue to work unchanged. Filter info is additive: assignments without a filter render exactly as before.
Full Changelog: v4.0.0...v4.1.0