Idira EPM – Entra ID Policy Targeting Not Applied Due to Permission Configuration
Symptom
This issue commonly occurs when the EPM Azure application is configured with Delegated permissions instead of Application permissions, or when the required permissions have not been granted tenant‑wide admin consent.
Environment
25.12 EPM Windows Agent
Customers may observe the following symptoms:
- EPM targeting rules based on Entra ID device attributes are not applied
- Device information fails to load in EPM logs
- Azure-related API calls return 403 Forbidden
Example Log
CvfWinHttpRequest::SendRequestData: AZR: ERROR: Connection not established, status: 403
CvfMsGraphClient::_CallMsGraphAPI: AZR: ERROR: SendRequestData result:0 statusCode:403
Cause
The Idira EPM Agent failed to obtain device information from Microsoft Entra ID due to insufficient permissions on the Azure AD App Registration.
Although Device.Read.All was present, it was configured under Delegated permissions.
For backend service–to–service communication (EPM → Graph API), Application permissions are required.
Resolution
Step 1 – Confirm the Permission Model
- Navigate to Azure Portal → App Registrations
- Select the Idira EPM application (or the App Registration used for Entra ID integration)
- Go to API Permissions
- Verify Device.Read.All exists under:
→ Application permissions (NOT Delegated permissions)
If it appears only under Delegated permissions, remove it and re‑add it under Application permissions.
Step 2 – Grant Admin Consent
- Remain in API Permissions
- Click Grant admin consent for <tenant>
- Ensure the Status column shows:
✔️ Granted for <tenant>
If consent is not granted, Entra ID will continue blocking the API call, resulting in 403 errors.
Step 3 – Retry EPM Device Info Retrieval
After permissions are corrected:
- Wait 5–10 minutes for Azure replication, or
- Restart the Idira EPM Agent
- Retry Support Info collection or refresh targeting rules
Device‑based targeting should now apply correctly.
Additional Reference
Microsoft Documentation:
Permissions and consent in the Microsoft identity platform
https://learn.microsoft.com/en-us/entra/identity-platform/permissions-consent-overview