The distinction between "App Registrations" and "Enterprise Applications" in Azure AD (accessible via the Azure Admin Center) is crucial for understanding how applications integrate with and are managed within Azure Active Directory.
Here's a breakdown:
1. App Registrations (Application Objects)
- What it is: This is where you, as an application developer, define your application to Azure AD. Think of it as the blueprint or template for your application.
- Purpose:
- To establish a globally unique identity for your application (Application ID / Client ID).
- To define how your application authenticates (e.g., secrets, certificates).
- To specify what API permissions your application requests (e.g., "Read user profiles," "Send email as user").
- To define redirect URIs (where Azure AD sends tokens after authentication).
- To configure application roles, branding, etc.
- Who creates it: Typically, the developer of the application.
- Scope:
- An app registration is created in a "home" Azure AD tenant (usually the developer's tenant).
- It's a global representation of your application. If it's a multi-tenant app, this single app registration can be used by many different organizations (tenants).
- Key Azure AD Object:
Application object.
2. Enterprise Applications (Service Principals)
- What it is: This represents an instance of an application within a specific Azure AD tenant. Think of it as the local representation or manifestation of an application that allows it to sign in and access resources secured by that tenant. It's also often called a Service Principal.
- Purpose:
- To manage how an application (either your own or a third-party SaaS app like Salesforce, Slack, etc.) is used within your specific tenant.
- To grant actual permissions (consent) to the application within your tenant.
- To assign users and groups to the application (i.e., who can use it).
- To configure Single Sign-On (SSO) settings (e.g., SAML, OpenID Connect) for that application within your tenant.
- To apply Conditional Access policies.
- To enable provisioning of users from Azure AD to the application (e.g., provisioning users to Salesforce).
- Who creates/manages it: Typically, an IT administrator in the tenant where the application will be used.
- How it's created:
- Automatically: When you register an application (via "App Registrations") in your own tenant, an Enterprise Application (Service Principal) is automatically created for it in that same tenant.
- Consent: When a user or admin from a tenant consents to a multi-tenant application (that was registered in another tenant), a Service Principal for that application is created in their tenant.
- Manually: Admins can add applications from the Azure AD Application Gallery (e.g., Salesforce, Workday) or add non-gallery applications (custom SAML/OIDC apps). This action creates a Service Principal.
- Scope: It's local to a specific tenant. An application might have one app registration (global definition) but many enterprise applications (one service principal in each tenant that uses the app).
- Key Azure AD Object:
ServicePrincipal object.
Analogy:
- App Registration is like the blueprint of a car model (e.g., a Ford Focus blueprint). It defines the car's specifications, features, engine type, etc. There's only one blueprint for that model.
- Enterprise Application (Service Principal) is like an actual Ford Focus car that has been manufactured and registered in a specific state/country.
- It has a license plate (unique identity within that state/country).
- It's allowed to drive on the roads of that state/country (permissions).
- Specific people are authorized to drive it (user assignment).
Key Differences Summarized:
| Feature | App Registration | Enterprise Application (Service Principal) |
|---|
| Nature | Blueprint, global definition of an app | Local instance/representation of an app within a tenant |
| Who creates? | Application Developer | IT Admin (or via user/admin consent) |
| Scope | Global (defined once in a "home" tenant) | Tenant-specific (one per tenant using the app) |
| Purpose | Define app identity, requested permissions, auth | Manage app access, SSO, user assignment, grant consent |
| Object Type | Application object | ServicePrincipal object |
| Example | Your custom API that needs to authenticate users | Salesforce app configured for SSO in your organization |
| Lifecycle | One app registration can lead to many service principals | One service principal per tenant that uses the app |
When do you use which?
- Go to App Registrations if:
- You are developing an application (web app, mobile app, API) that needs to integrate with Azure AD for authentication and authorization.
- You need to define the permissions your application will request.
- You need to manage application secrets or certificates.
- Go to Enterprise Applications if:
- You are an administrator managing applications used by your organization.
- You need to configure Single Sign-On (SSO) for an application (e.g., a SaaS app from the gallery or a custom SAML app).
- You need to assign users or groups to an application to control who can access it.
- You need to grant or review consented permissions for an application within your tenant.
- You need to set up user provisioning to a SaaS application.
- You want to apply Conditional Access policies to an application.
The most common point of confusion is that when you create an "App Registration" in your own tenant, Azure AD automatically creates a corresponding "Enterprise Application" (Service Principal) in that same tenant. This Enterprise Application is what actually governs how that app operates within your home tenant.