Supported scenarios
Scenarios
Bulk manage Microsoft Intune policy assignments using CSV files (add, remove, replace) across tenants.
Overview
We have tested various common scenarios for managing Microsoft Intune policy assignments using the Assignments Manager. This guide provides detailed examples and explanations for each scenario, helping you understand how to effectively use the tool for your specific needs.
Assignments Manager allows you to manage Microsoft Intune policy assignments in bulk using CSV files and reach a desired assignment state for your policies.
You can add, remove, replace, or clear assignments for policies across different tenants.
Supported Operations
The tool supports four primary actions:
Add - Add new assignments to existing policies
Remove - Remove specific assignments from policies
Replace - Replace all existing assignments with new ones
Update - Updates the current assignment row
NoAssignment - Remove all assignments using the NoAssignment action
Supported Resources
Currently, the resources below are supported and tested by the team. The team tested these policies with the supported operations described above.
All platforms
Settings Catalog
Compliance Policiy
Android
App Protection Policy
Android Enterprise - Device Restrictions Device Owner
Android Enterprise - Device Restrictions Work Profile
App Configuration Policy
iOS & iPad OS
App Configuration Policy
App Protection Policy
Device Features Policy
Device Restrictions
macOS
Custom Configuration Policy
Shell Scripts
Windows
Autopilot Deployment Profiles
Custom Configuration Profiles
Device Restriction Profiles
Driver Updates
Feature Updates
Kiosk Profiles
Platform Scripts
Proactive Remediation Scripts
Quality Updates
Windows Health Monitoring Profiles
Assignment Types
Assignment Actions
Add Action
Adds new assignments without removing existing ones.
Scenario: Add Group Assignment
CSV:
Before:
Policy has "All Users" assignment
After:
Policy has "All Users" assignment
Policy has "IT Admins" group assignment
Scenario: Add Assignment with Exclusion Group
CSV:
Result:
Policy assigned to all users
Test Users group included separately (can be excluded via filters)
Remove Action
Removes specific assignments without affecting others.
Scenario: Remove Included Group Assignment
CSV:
Before:
Policy assigned to: "Finance Team", "Sales Team", "All Devices"
After:
Policy assigned to: "Sales Team", "All Devices"
"Finance Team" assignment removed
Scenario: Remove Excluded Group Assignment
CSV:
Before:
Policy assigned to: "Finance Team", "Sales Team", "All Devices" and excluded "Excluded IT Team"
After:
Policy assigned to: "Finance Team", "Sales Team", "All Devices"
"Excluded IT Team" exclusion removed
Scenario: Remove All Users Assignment
CSV:
Before:
Policy assigned to "All Users"
After:
Policy has no assignments
Replace Action
Removes all existing assignments and adds the new one(s).
Scenario: Replace Group with Another Group
CSV:
Before:
Policy assigned to: "Old Group A", "Old Group B", "All Users"
After:
Policy assigned to: "New Security Group" only
Scenario: Replace Multiple Assignments with All Devices
CSV:
Before:
Policy assigned to: "Group 1", "Group 2", "Group 3"
After:
Policy assigned to: "All Devices" only
Update Action
Updates the current assignment row.
Scenario: Replace filter for another
The current assignment at policy name Security Policy with group Security Group, no filter. To update that work to include a filter use Update.
CSV:
Before:
Policy assigned to: "SecurityGroup (no filter)"
After:
Policy assigned to: "Security Group" with filter include FilterForWindows
Scenario: Remove filter
The current assignment at policy name Security Policy with group Security Group, with included filter FilterForWindows. To update that work to include a filter use Update.
CSV:
Before:
Policy assigned to: "Security Group" with filter include FilterForWindows
After:
Policy assigned to: "SecurityGroup (no filter)"
Clear (NoAssignment) Action
Removes all existing assignments from the policy.
Scenario: Clear All Assignments
CSV:
Before:
Policy assigned to: "Group A", "Group B", "All Users"
After:
Policy has no assignments
Assignment Filters
Assignment filters allow you to include or exclude devices based on device properties.
Filter Types
Include - Apply policy only to devices matching the filter
Exclude - Apply policy to all devices except those matching the filter
Filter Platform Matching
Important
Assignment Filter platform must match the policy platform.
Windows10AndLater, Windows8AndLater, Windows
Windows
iOS
iOS
Android
Android
macOS
macOS
Scenario: Add Assignment with Include Filter
CSV:
Result:
Policy assigned to all devices
Only applied to devices matching "Windows 11 Only" filter
Scenario: Add Assignment with Exclude Filter
CSV:
Result:
Policy assigned to all users
Not applied to devices matching "Test Devices" filter
Scenario: Remove Assignment with Specific Filter
CSV:
Before:
Policy assigned to "Sales Team" with "VIP Devices" (Exclude)
Policy assigned to "Sales Team" without filter
After:
Only the assignment with the matching filter is removed
Assignment without filter remains
Common Scenarios
Scenario 1: Migrate Policy from One Group to Another
Goal: Move policy from "Pilot Users" to "All Users"
CSV:
Result: All previous assignments removed, policy now assigned to "All Users"
Scenario 2: Add Exclusion to Existing Assignment
Goal: Keep current assignments but exclude test devices
CSV:
Result: Policy applies to all devices except those matching "Test Devices" filter
Scenario 3: Change Filter Direction
Goal: Change from excluding test devices to including only production devices
CSV:
Result: All previous assignments removed, policy now applies only to production devices
Scenario 4: Batch Migration Multiple Policies
CSV:
Result: Multiple policies migrated to new assignments in one operation
Scenario 5: Replace and Add Exclusion
Goal: Replace assignment and immediately add exclusion group
CSV:
Processing Order:
Replace removes all assignments and adds "All Users"
Add includes "Excluded Users" group
Note
This creates two assignments — you may want to use filters instead for exclusions.
Scenario 6: Clear All Assignments from Multiple Policies
CSV:
Result: All assignments removed from specified policies
Scenario 7: Implement new policies (Update ring 1) for Pilot Group only
CSV:
This will keep the existing production policy for all users but exclude the pilot group. The new production policy will be assigned only to the pilot group.
Validation Rules
Rule 1: Cannot Mix All Users/All Devices with Groups
Invalid
Cannot mix All Users / All Devices with group assignments in the same policy batch.
❌ Invalid:
Error: "Cannot mix 'All Users' with group assignments"
✅ Solution (use Replace):
Rule 2: Filter Platform Must Match Policy Platform
❌ Invalid:
Error: "Filter platform 'iOS' does not match policy platform 'Windows'"
✅ Valid:
Rule 3: Cannot Have Conflicting Actions in Same Batch
❌ Invalid:
Error: "Conflicting assignment actions detected for the same assignment"
Reason: Adding and removing the same assignment in one batch creates a conflict.
Rule 4: Cannot Add Same Assignment with Different Filters
❌ Invalid:
Error: "Conflicting filter types for the same assignment"
Reason: Same group cannot have both Include and Exclude filters simultaneously.
Best Practices
1. Test Before Production
Always test your CSV with a small subset of policies first:
2. Use Replace for Clean Migrations
When migrating policies, use Replace to avoid orphaned assignments:
3. Verify Group Names
Ensure group names match exactly (case-sensitive):
❌ finance team ≠ Finance Team ✅ Finance Team = Finance Team
4. Check Filter Names
Filter names must exist in your tenant before migration:
Verify "Corporate Devices" filter exists first.
5. Batch Similar Operations
Group similar operations together:
6. Order of Operations
When using multiple actions, they execute in CSV row order:
Result:
Replace removes all assignments and adds "All Users"
Add includes "Excluded Group"
MSP Scenario Examples
New Customer Onboarding (MSPs)
You have used other tools like Inforcer, Coreview or just added all those policies manually in a customer tenant. Now you can use the Assignments Manager to user your standardized assignment template from your pilot tenant and use it for future customers.
Pilot to Production Migration
You have new policies added to a tenant and want to test it in a pilot group first.
Error Messages
"Policy not found"
Policy name doesn't exist
Verify policy name spelling
"Group not found"
Group name doesn't exist
Check Entra ID group name
"Filter not found"
Filter name doesn't exist
Verify assignment filter exists
"Platform mismatch"
Filter platform ≠ policy platform
Use matching platform filter
"Cannot mix assignment types"
Mixing All Users/Devices with groups
Use Replace action
"Conflicting actions"
Same assignment has Add + Remove
Remove duplicate
Examples by Policy Type
Configuration Policies
Compliance Policies
App Protection Policies
Security Baselines
FAQ
Support
Verify CSV format matches examples above
Check validation rules section
Review error messages table
Contact your system administrator
Last updated