Microsoft Graph · AZ-204: Developing Solutions for Microsoft Azure Implement Azure Security

A background .NET worker uses Microsoft Graph to list all users in a tenant. It runs without a signed-in user and uses the client credentials flow. T…

Practice question from Microsoft Graph (AZ-204: Developing Solutions for Microsoft Azure Implement Azure Security), with the correct answer and a step-by-step solution.

medium · MCQ · Q-B71F13

A background .NET worker uses Microsoft Graph to list all users in a tenant. It runs without a signed-in user and uses the client credentials flow. The application should follow least privilege. Which configuration is required?

  1. A.Delegated User.Read permission and an interactive user sign-in
  2. B.Application User.Read.All permission with tenant administrator consentCorrect answer
  3. C.Delegated Directory.Read.All permission without administrator consent
  4. D.Application Mail.Read permission with tenant administrator consent

Solution

A worker without a user context must use application permissions. User.Read.All allows the application to read user profiles and requires administrator consent. Delegated permissions cannot provide the required app-only authorization.

More from Microsoft Graph

All of Microsoft Graph

Practise more Implement Azure Security

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed