Problem Statement
For BYOD compliance policies, IdLE should be able to initiate Intune’s BYOD “Retire / Wipe company data” action in a controlled, safe, testable way.
Because this is a destructive action, IdLE must:
- never guess the target device
- fail fast if the device is not uniquely identified
- support human-in-the-loop flows (operator identifies device, then provides confirmation / device id)
Proposed Solution
1) Add Intune provider action capability (v1)
Extend IdLE.Provider.Intune with a new capability:
Safety rules:
- MUST require an explicit device id as input.
- MUST fail fast if device id is missing.
- MUST NOT implement “best-effort matching” or silent heuristics.
- Must emit a structured event/log entry describing the action target (safe fields only).
2) Integration expectations (BYOD policy)
This capability is intended to be used with:
- populated device context under
Request.Context.Devices.Intune.ManagedDevices[] (for operator identification)
- runtime preconditions (
Blocked) to prevent disablement until retire is confirmed
The exact workflow orchestration (manual vs automated) is host/workflow-defined.
3) Step wrapper (optional follow-up)
Provider-agnostic step wrappers (e.g., IdLE.Step.Device.Retire) can be introduced in a follow-up issue, once the capability contract is proven stable.
Alternatives Considered
- Implement retire/wipe only via host scripts
- Reduces portability and consistent testing.
- Allow selection strategies / fuzzy matching
- Unsafe; may target the wrong device. Not acceptable for destructive actions.
Impact
- Introduces a destructive action capability, requiring careful review, tests, and documentation.
- Enables automated or semi-automated BYOD flows when device id is known.
Dependencies
- Requires Intune Issue 1 (provider module exists; device schema established).
- Recommended: runtime preconditions (
Blocked) to enforce policy ordering.
- Recommended: request schema
Request.Intent / Request.Context.
Definition of Done (Step-0-Ready / Agent-Safe)
Design / Contracts
Implementation
Tests (Pester)
Docs / Examples
Non-Goals (explicit)
- No automatic device selection heuristics.
- No interactive UI in IdLE.
- No provider-agnostic step wrapper in this issue (follow-up if needed).
Problem Statement
For BYOD compliance policies, IdLE should be able to initiate Intune’s BYOD “Retire / Wipe company data” action in a controlled, safe, testable way.
Because this is a destructive action, IdLE must:
Proposed Solution
1) Add Intune provider action capability (v1)
Extend
IdLE.Provider.Intunewith a new capability:IdLE.Device.RetireSafety rules:
2) Integration expectations (BYOD policy)
This capability is intended to be used with:
Request.Context.Devices.Intune.ManagedDevices[](for operator identification)Blocked) to prevent disablement until retire is confirmedThe exact workflow orchestration (manual vs automated) is host/workflow-defined.
3) Step wrapper (optional follow-up)
Provider-agnostic step wrappers (e.g.,
IdLE.Step.Device.Retire) can be introduced in a follow-up issue, once the capability contract is proven stable.Alternatives Considered
Impact
Dependencies
Blocked) to enforce policy ordering.Request.Intent/Request.Context.Definition of Done (Step-0-Ready / Agent-Safe)
Design / Contracts
IdLE.Device.Retirecontract:Implementation
IdLE.Device.RetireinIdLE.Provider.Intune.Tests (Pester)
Docs / Examples
Non-Goals (explicit)