You are configuring permissions and consent in Microsoft Entra ID for an enterprise scheduling solution consisting of two applications:
1. SyncDaemon: A background service (daemon) that runs continuously without user interaction to synchronize user profile information from Microsoft Graph.
2. PlannerSPA: A client-side Single Page Application (SPA) that allows authenticated users to access a custom backend Web API named `TaskAPI` to manage their tasks. The backend API is registered with the App ID URI `api://taskapi.contoso.com`.
Which two of the following configuration actions must you perform to implement the correct permissions and consent flows? (Select two.)
- For SyncDaemon, assign the Microsoft Graph Application permission User.Read.All and perform an admin consent flow.Answer
- BFor SyncDaemon, assign the Microsoft Graph Delegated permission User.Read.All and acquire the access token using the client credentials flow.
- For PlannerSPA, configure the application to request the scope api://taskapi.contoso.com/Tasks.Manage to obtain an access token for the backend API.Answer
- DFor PlannerSPA, configure the application to request the scope Tasks.Manage without a URI prefix, and rely on Entra ID to resolve the scope to TaskAPI within the tenant.
Answer
To configure the solution correctly, assign the Microsoft Graph Application permission User.Read.All with admin consent for SyncDaemon, and configure PlannerSPA to request the fully qualified scope api://taskapi.contoso.com/Tasks.Manage.
The correct actions are assigning the Application permission User.Read.All with admin consent for the background SyncDaemon service, and requesting the fully qualified custom scope api://taskapi.contoso.com/Tasks.Manage for the PlannerSPA. Background daemons run without user interaction and require Application permissions with tenant admin consent. Single-page applications calling a custom API require delegated access using the fully qualified App ID URI scope format.
Step-by-Step Solution
Key Concept
Distinction between Delegated and Application permissions, and proper custom API scope syntax in Microsoft Entra ID.