specs for additional intune types Co-authored-by: Ahmed Darrazi <ahmeddarrazi@adsmac.local> Reviewed-on: #28
1.2 KiB
1.2 KiB
Plan: Terms & Conditions (Enrollment Experience) (024)
Branch: feat/024-terms-and-conditions
Date: 2026-01-04
Input: spec.md
Approach
- Confirm Graph contract details for Terms & Conditions:
- resource path:
deviceManagement/termsAndConditions @odata.typevalues and patchable fields- assignments endpoints:
/deviceManagement/termsAndConditions/{id}/assignments(CRUD)
- resource path:
- Add
termsAndConditionstoconfig/tenantpilot.php(category “Enrollment Experience”, risk, restore mode). - Add contract entry to
config/graph_contracts.php:- resource, type family, create/update methods
- assignments list/create/update/delete paths (no
/assignaction here)
- Ensure policy sync, snapshot capture, and restore use the config/contract-driven paths (minimal special casing).
- Add a normalizer for readable UI output and ensure diff output is stable.
- Add targeted Pest coverage (sync + snapshot + preview + execution).
Decisions / Notes
- Restore mode: default
enabled(risk: medium-high) with strict preview/confirmation and audit logging. - Assignments: use assignment CRUD paths (POST to
/assignments) rather than/assign.