DeviceCompartment
The DeviceCompartment validator will redirect every request to the client's corresponding device compartment. If the client doesn't have the Device role, the validator will throw an error.
This validator is intended to validate requests by headless devices, such as lab equipment.
Note: Authentication of headless devices is supported for devices that use a device code flow in the configured authentication service. Authentication of cloud services is not yet supported.
Enable access to DiagnosticReport resources that belong to the authenticated client's device compartment.
{
"client_role": "Device",
"entity_name": "DiagnosticReport",
"operation": "read",
"validator": "DeviceCompartment",
}