You are developing a secure Web API named InventoryAPI and registering it in Microsoft Entra ID. You need to expose two distinct permission sets for client applications that will consume this API:
1. A permission set for automated backend daemon services that run without user interaction.
2. A permission set for user-facing client applications where permissions are delegated on behalf of the signed-in user.
You need to configure the application registration manifest for InventoryAPI to support these requirements.
Which configuration should you implement in the manifest?
- ADefine delegated permissions in the oauth2PermissionScopes array with allowedMemberTypes set to ["Application"] for the daemon services, and define app roles in the appRoles array for the user-interactive applications.
- BDefine a system-assigned managed identity for the daemon services in the identity block, and define app roles in the appRoles array with allowedMemberTypes set to ["User"] for the user-interactive applications.
- Define app roles in the appRoles array with allowedMemberTypes set to ["Application"] for the daemon services, and define delegated scopes in the oauth2PermissionScopes array for the user-interactive applications.Cevap
- DDefine app roles in the appRoles array with allowedMemberTypes set to ["DirectoryRole"] for the daemon services, and define app roles in the appRoles array with allowedMemberTypes set to ["Delegated"] for the user-interactive applications.
Cevap
Define app roles in the appRoles array with allowedMemberTypes set to ["Application"] for the daemon services, and define delegated scopes in the oauth2PermissionScopes array for the user-interactive applications.
The correct option correctly states that application permissions (which daemon applications require because they authenticate as their own identity) must be defined as app roles within the appRoles array with the allowedMemberTypes property containing "Application". Meanwhile, delegated permissions (which user-facing client applications require to act on behalf of a signed-in user) must be defined as scopes within the oauth2PermissionScopes array.
Adım Adım Çözüm
Anahtar Kavram
Exposing delegated permissions (scopes) vs application permissions (app roles) in a Microsoft Entra ID App Registration manifest