Soru

Zorluk: ZorApp Registrations and Service Principals

A software-as-a-service (SaaS) provider registers a multi-tenant web application in their home Microsoft Entra ID tenant (Tenant A). An enterprise customer (Tenant B) successfully consents to the application, allowing their users to log in. The SaaS provider now needs to grant this application read access to an Azure SQL Database located in Tenant B. Which identity object in Tenant B must be assigned the database permissions?

  1. A
    The application object created in Tenant B during the consent process
  2. B
    The global application object registered in Tenant A
  3. The service principal object created in Tenant B that references the application object in Tenant ACevap
  4. D
    A user-assigned managed identity in Tenant B mapped to the application registration

Cevap

The service principal object created in Tenant B that references the application object in Tenant A
The correct answer is the service principal object created in Tenant B. In Microsoft Entra ID, the application object is the global definition of the application, which is created only in the home tenant (Tenant A). When a user or administrator in Tenant B consents to the application, a service principal (also called an enterprise application) is created in Tenant B. To grant the application access to resources in Tenant B, you must assign permissions to this local service principal.

Adım Adım Çözüm

1
Distinguish between the application object and the service principal in a multi-tenant scenario.
The application object is the global template residing in Tenant A, whereas the service principal is the local instance in Tenant B.
Understanding the relationship between these two objects is required to determine which one receives resource permissions.
2
Evaluate the lifecycle of the identity objects during the consent process.
Consenting to the multi-tenant application in Tenant B automatically provisions a service principal object in Tenant B.
This establishes a security principal in the target tenant that can be authenticated and authorized.
3
Assign the database permission to the appropriate identity principal.
Grant the database permissions directly to the newly created service principal in Tenant B.
Resource authorization in Azure SQL Database requires referencing a security principal local to the tenant hosting the resource.

Anahtar Kavram

Multi-tenant application architecture requires a local service principal in the consumer tenant to assign permissions to resources in that tenant.
Bu soruyu puanla