A company is deploying an automated synchronization service named DeptSync that runs as a daily background task on an Azure virtual machine. The service must connect to Microsoft Graph to update the department and job title properties of all user accounts in Microsoft Entra ID. The service runs without any user interaction.
You need to configure the Microsoft Entra ID application registration for DeptSync to allow the service to authenticate and perform these updates securely using the principle of least privilege.
Which two actions should you perform? (Choose two.)
- Configure the application registration with the User.ReadWrite.All Application permission for the Microsoft Graph API.Answer
- Grant tenant-wide admin consent for the configured Microsoft Graph API permissions.Answer
- CConfigure the application registration with the User.ReadWrite.All Delegated permission for the Microsoft Graph API.
- DConfigure the application registration with the User.ReadWrite Delegated permission for the Microsoft Graph API.
Answer
To configure the daemon service, you must add the User.ReadWrite.All Application permission to the Microsoft Graph API and grant tenant-wide administrator consent.
The background synchronization service runs as a scheduled task without a signed-in user, meaning it must authenticate as its own identity using the client credentials flow. Therefore, it requires Application permissions rather than Delegated permissions. Updating user profile details (such as department and job title) across all accounts in the tenant requires the User.ReadWrite.All permission. Because Application permissions grant broad access to directory data, Microsoft Entra ID requires tenant-wide administrator consent to be granted before the application can successfully call the Microsoft Graph API.
Step-by-Step Solution
Key Concept
Microsoft Entra ID Application permissions and administrator consent requirements for daemon applications.