You are developing a web application named DocPortal. The application must perform the following security actions:
1. Allow users to sign in and view files stored in their personal OneDrive folders.
2. Allow a scheduled background service within the application to read group memberships across the tenant without a signed-in user.
You need to configure the Microsoft Graph permissions for the application registration. The solution must adhere to the principle of least privilege.
Which two permissions should you configure? (Select two.)
- Files.Read configured as a Delegated permission.Cevap
- GroupMember.Read.All configured as an Application permission.Cevap
- CFiles.Read configured as an Application permission.
- DA Shared Access Signature (SAS) token with service-level read scopes registered as an API permission in the application registration.
Cevap
Configure Files.Read as a Delegated permission and GroupMember.Read.All as an Application permission.
Delegated permissions are required when the application needs to act on behalf of a signed-in user (such as reading the user's personal OneDrive files via Files.Read). Application permissions are required when the application runs as a background service without a user present (such as a scheduled job reading group memberships via GroupMember.Read.All). This configuration ensures proper identity context separation and complies with the principle of least privilege.
Adım Adım Çözüm
Anahtar Kavram
Selecting and configuring the correct permission type (Delegated vs. Application) and scope for Microsoft Graph API integrations.