1.2 KiB
1.2 KiB
Plan: Policy Sets (Intune native bundling) (025)
Branch: feat/025-policy-sets
Date: 2026-01-04
Input: spec.md
Approach
- Confirm Graph API surface:
- resource:
deviceAppManagement/policySets - item model + subresource path (
/policySets/{id}/items) - assignments subresource (
/policySets/{id}/assignments)
- resource:
- Add
policySettoconfig/tenantpilot.php(category “Apps/MAM”, risk, restore mode). - Add contract entry in
config/graph_contracts.php:- resource + type family
- member hydration strategy for items (subresource)
- assignments CRUD paths (if supported)
- Extend snapshot capture to hydrate
items(and assignments). - Implement restore preview “linking report”:
- identify referenced object IDs inside items
- attempt mapping by (type, displayName, externalId) where possible
- surface missing dependencies and block execution by default
- Add targeted Pest tests for sync + snapshot hydration + preview report.
Decisions / Notes
- Restore mode: default
preview-onlyuntil a robust cross-tenant linking/mapping strategy exists. - Policy Sets are not “settings restore”; they are primarily a relationship/linking restore step.