You are developing a native mobile application named FleetApp that allows delivery drivers to view their own calendar events from Microsoft Graph and upload telemetry data to a custom backend web API named RouteAPI. You register RouteAPI in Microsoft Entra ID and expose a custom scope named Telemetry.Write.
You register FleetApp in Microsoft Entra ID. The application must perform all actions on behalf of the signed-in driver, allow drivers to consent to permissions themselves, and adhere to the principle of least privilege.
Which permissions should you configure for the FleetApp registration?
- AApplication permission Calendars.Read for Microsoft Graph, and Application permission Telemetry.Write for RouteAPI
- Delegated permission Calendars.Read for Microsoft Graph, and Delegated permission Telemetry.Write for RouteAPIAnswer
- CDelegated permission Calendars.Read.All for Microsoft Graph, and Delegated permission Telemetry.Write for RouteAPI
- DDelegated permission Calendars.Read for Microsoft Graph, and Application permission Telemetry.Write for RouteAPI
Answer
Delegated permission Calendars.Read for Microsoft Graph, and Delegated permission Telemetry.Write for RouteAPI
The correct configuration uses Delegated permissions for both APIs because the mobile application acts on behalf of a signed-in user (the driver). By selecting Calendars.Read instead of Calendars.Read.All, the application adheres to the principle of least privilege and allows the drivers to consent to the permissions themselves, as directory-level read permissions are not required.
Step-by-Step Solution
Key Concept
Delegated vs. Application permissions and least-privilege scoping in Microsoft Entra ID app registrations.
Estimated Time:1m 30s