Microsoft Entra ID represents every application with two linked objects, and administrators who treat them as one end up rotating the wrong secret, reviewing the wrong permissions and deleting half an application. The app registration (application object) is the global definition of an app in its home tenant. The service principal (enterprise application) is the local instance that actually signs in, holds consented permissions and receives role assignments in each tenant. This guide explains the split precisely: which properties live on which object, where credentials can be attached, where consent is stored, what happens in multitenant apps and on deletion, and how to govern both as non-human identities. It is for Entra administrators, cloud identity engineers and NHI governance owners.
This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.
Key takeaways
- Global definition vs local instance: one application object exists in the home tenant; one service principal exists in every tenant where the app is used, including the home tenant.
- Credentials can sit on both objects: secrets and certificates are commonly added to the app registration, but Microsoft Graph also supports adding them directly to a service principal, so inventories must check both.
- Requested is not granted: the app registration lists the permissions an app asks for; the grants that actually work are stored per tenant on the service principal as delegated grants and app role assignments.
- Deletion is asymmetric: deleting the app registration also deletes its home-tenant service principal, restoring the registration does not bring that principal back, and service principals in other tenants follow their own lifecycle.
- Govern the pair as one NHI: owner, purpose, credentials, permissions and last sign-in must be reviewed across both objects, or orphaned principals and forgotten secrets accumulate.
The two objects in one paragraph each
Application object (app registration). Microsoft describes it as the global representation of the app, defined once in the tenant where it was registered (the home tenant), and acting as a template or blueprint for service principals. It describes how the app can be issued tokens, the resources it may need and the actions it can take. It is managed under App registrations in the Entra admin centre and defined by the Microsoft Graph application resource.
Service principal (enterprise application). The local representation of the app in one tenant. It defines what the app can do in that tenant, who can access it and what resources it can reach, and it is the security principal that authenticates at sign-in. It is managed under Enterprise applications and defined by the Graph servicePrincipal resource. The relationship is one-to-many: a single-tenant app has one service principal; a multitenant app gets a service principal in each tenant where consent is granted.
Service principals come in several types, shown by the servicePrincipalType property: Application (backed by an app registration), ManagedIdentity (no app registration, cannot be modified directly), Legacy (created before app registrations existed, usable only in the tenant where it was created), and ServiceIdentity, which Microsoft's Graph reference lists for agent identities. For when to use a managed identity instead of an app registration, see Service Principals vs Managed Identities.
Which property lives where
| Item | App registration (application) | Service principal (enterprise app) |
|---|---|---|
| Identifier shown as Object ID | Its own id, unique to the application object | Its own id, different in every tenant |
| Application (client) ID | appId, assigned at registration | Same appId, linking the instance to its definition |
| Home tenant | Where it lives | appOwnerOrganizationId records the tenant where the app is registered |
| Who can sign in (audience) | signInAudience: AzureADMyOrg (default), AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, PersonalMicrosoftAccount | Instance exists only where the app is used |
| Permissions requested | requiredResourceAccess (API permissions blade) | Not stored here |
| Permissions granted | Not stored here | Delegated: oauth2PermissionGrant; application: appRoleAssignment |
| App roles and scopes it exposes | appRoles, api.oauth2PermissionScopes defined here | Copies exposed for assignment in the tenant |
| Who may use the app | Not controlled here | appRoleAssignmentRequired (default false) and user or group assignments |
| Enable or disable sign-in | Deactivation stops new tokens while keeping both objects | accountEnabled false blocks sign-in in that tenant |
| Secrets and certificates | passwordCredentials, keyCredentials (Certificates and secrets blade) | passwordCredentials, keyCredentials via Graph addPassword and addKey; also SAML signing certificates |
| Owners | Owners can modify the registration; Microsoft recommends at least two | Separate owner list for the enterprise app |
| Conditional Access and sign-in logs | Not applied here | Policies target and logs record the service principal |
| Azure RBAC and directory roles | Not assignable | Assigned to the service principal |
The practical consequence: questions about what an app is and what it asks for are answered on the registration, while questions about what it can actually do in a tenant, who uses it and when it signed in are answered on the service principal. Azure resource access follows the same pattern; see the Azure RBAC and Service Principals Guide.
Where secrets and certificates live
This is the question behind most confusion. Credentials added in the portal under App registrations > Certificates & secrets sit on the application object and are used by the home-tenant service principal and, for a multitenant app, by its instances elsewhere. The Graph servicePrincipal resource also exposes passwordCredentials and keyCredentials with addPassword and addKey methods, so a credential can be attached directly to one tenant's service principal and never appear on the registration blade.
- Inventory both: a credential review that only reads app registrations will miss credentials on service principals, including those on enterprise applications whose registration lives in another tenant. See the Azure Entra Client Secrets Security Guide.
- Use app instance property lock: Microsoft's best practice guidance notes that tenant administrators can otherwise modify a service principal, for example by adding credentials, and recommends locking every sensitive property: credentials used for verification, credentials used for signing tokens and
tokenEncryptionKeyId. Microsoft's documentation, as checked in November 2026, states the lock is enabled by default for new applications; review existing apps. - Prefer credential-less options: Microsoft's order of preference is a managed identity where possible, then certificate credentials, not password secrets; certificates stored in a secure store such as Azure Key Vault. For workloads outside Azure, federated identity credentials on the app registration remove the stored secret entirely. See the Workload Identity Federation Guide.
- Restrict secrets by policy: application management policies can limit secret lifetimes or block password secrets for new credentials.
Consent and permissions across the two objects
Microsoft's consent model makes the split explicit. Permissions an app needs are declared in requiredResourceAccess on the registration, where "type": "Scope" marks a delegated permission and "type": "Role" an application permission. Declaring them grants nothing. When a user or administrator consents, the grant is recorded in that tenant against the service principal: delegated consent as an oauth2PermissionGrant, application permission consent as an appRoleAssignment.
| Scenario | Registration shows | Service principal holds | Risk if you only look at one |
|---|---|---|---|
| Permission removed from API permissions blade after consent | Permission no longer listed | Existing grant still present until revoked | App keeps access the owner believes was removed |
| Admin consents in a customer tenant to a multitenant app | Nothing changes in the home tenant | New app role assignments in the customer tenant only | Home tenant owner cannot see customer grants; customer admin must review |
| Dynamic delegated consent at runtime | Scope may never have been listed | Delegated grant created on consent | Registration review underestimates delegated access |
| Application permission such as a Graph app role | Listed as a Role | App role assignment after admin consent | Reviewing requests instead of grants misses what is live |
Application permissions only support static consent and always require admin consent; Microsoft recommends least privilege and delegated access over app-only access where possible. For consent settings, admin consent workflow and consent phishing response, see the Entra ID Applications and Consent Guide.
Multitenant apps
When signInAudience is AzureADMultipleOrgs or includes personal accounts, a service principal is created in each tenant where consent is granted. Microsoft's example is an HR app registered in one company's tenant, with separate service principals in two customer tenants, each holding only the permissions that tenant's administrator granted.
- As the publisher: you own the registration and its credentials. Changes to the application object are reflected in the service principal in the home tenant only, so check how changes such as new permissions reach customer tenants (usually a fresh consent). Lock sensitive service principal properties with app instance property lock.
- As the consuming tenant: you own only the service principal. You control consent, user assignment (
appRoleAssignmentRequired), Conditional Access,accountEnabledand deletion. UseappOwnerOrganizationIdto separate third-party apps from your own. See How to find multi-tenant Azure app registrations. - Tenant validation: Microsoft's Graph reference notes that
signInAudiencedoes not replace tenant validation in your code. A multitenant API must still check which tenants it accepts tokens from.
Deletion, recovery and orphaned principals
| Action | Effect |
|---|---|
| Deactivate the app | Stops new tokens being issued while keeping the application object and service principal; the safe first step when retiring an app |
Set accountEnabled false on the service principal | No users can sign in to the app in that tenant, even if assigned |
| Delete the app registration | Also deletes the home-tenant service principal; both go to deleted items |
| Restore the app registration | Brings back the application object; Microsoft's object model page notes the home-tenant service principal is not restored this way, so restore it separately |
| Delete an enterprise application (service principal) only | Removes the instance and its grants from that tenant; the registration remains and a new instance can be created on next consent |
| Soft delete period | Deleted applications and service principals can be restored for up to 30 days, after which they are permanently deleted; the period cannot be changed |
| Restore a service principal | Policies applied to it are not restored and must be reconfigured |
| Managed identity principal | Visible in the recycle bin for 30 days but cannot be restored or permanently deleted by the administrator |
Orphaned principals appear when the pieces drift apart: a service principal for a third-party app whose vendor relationship ended, an app registration whose owners left the organisation, a Legacy principal with no registration, or a principal that holds role assignments but has not signed in for months. Because soft-deleted objects still count towards directory quotas and deleted service principals are only listed through PowerShell or Microsoft Graph, cleanup needs scripted reporting rather than portal browsing. See How to find and remove stale service principals in Entra ID.
Governing the pair as a non-human identity
- Build one inventory joined on
appId: list every application object and every service principal, join them onappId, and flag service principals with no local registration (third-party or legacy) and registrations with no recent service principal sign-ins. - Assign an accountable owner to each pair: at least two owners on the registration as Microsoft recommends, and a business owner recorded for every enterprise application, including third-party ones. Use the
notesfield (up to 1,024 characters) or tags for purpose and owner. See the NHI Ownership Guide. - Review credentials on both objects: expiry, type (secret or certificate), age and whether federated or managed identity can replace them.
- Review grants, not requests: export app role assignments and delegated grants from service principals and compare with the documented need; revoke what is unused.
- Review privileged principals: service principals with directory roles or broad Graph application permissions deserve the same scrutiny as privileged users. See the Privileged Service Principal Check.
- Retire in stages: deactivate or disable sign-in, watch sign-in logs and failing jobs for two to four weeks, then delete; keep the 30-day restore window as the rollback, remembering to restore the service principal and its policies, not just the registration.
Small tenants: a quarterly export and manual review of a few dozen apps is enough, provided both objects are covered. Large tenants: automate the joined inventory, feed it into access reviews and alert on drift, because hundreds of third-party service principals arrive through user consent alone.
Detection and measurement
Entra audit logs (ApplicationManagement category) record the events that matter: Add service principal credentials, Update application - Certificates and secrets management, Consent to application, Add app role assignment to service principal, Add delegated permission grant, Add service principal, Add owner to application, Add owner to service principal, Delete application, Hard Delete application and Hard delete service principal. Service principal sign-in logs show which instances are active. Map detections to MITRE ATT&CK T1098.001 Additional Cloud Credentials, T1098.003 Additional Cloud Roles, T1528 Steal Application Access Token and T1550.001 Application Access Token. See How to detect new credentials added to an app registration.
- Percentage of app registrations with two or more current owners, and of enterprise applications with a recorded business owner.
- Number of password secrets across both objects, trending down as certificates, federation and managed identities replace them.
- Count of credentials added directly to service principals, each with a documented reason.
- Percentage of service principals with no sign-in in 90 days that are disabled or removed.
- Percentage of high-privilege application permission grants reviewed in the last quarter.
Common failure patterns
- Reviewing only App registrations: third-party enterprise applications and credentials attached directly to service principals never appear in the review.
- Removing a permission from the registration and assuming access is gone: the grant on the service principal remains until revoked.
- Deleting the registration to "turn off" an app, then restoring it: the home-tenant service principal, its assignments and its policies do not come back automatically.
- No owner after the developer leaves: the registration's secret keeps working and nobody receives expiry or misuse alerts.
- Property lock never reviewed on older multitenant apps: sensitive service principal properties in customer tenants remain editable.
- Treating
Legacyand managed identity principals like ordinary apps: they have no registration to review, so they need their own inventory path.
Framework mapping
| Framework | Reference | How it applies |
|---|---|---|
| NIST CSF 2.0 | ID.AM-02; PR.AA-05 | Inventory of software and services (joined app and service principal inventory); permissions managed and reviewed with least privilege |
| NIST SP 800-53 Rev. 5 | AC-2; AC-6; IA-4; IA-5; CM-8 | Account management and least privilege for service principals; identifier management for app and object IDs; authenticator management for secrets and certificates; component inventory |
| ISO/IEC 27001:2022 Annex A | 5.9; 5.15; 5.18 | Asset inventory, access control and access rights reviews for application identities |
| MITRE ATT&CK | T1098.001; T1098.003; T1528; T1550.001 | Credentials and roles added to cloud applications; theft and use of application access tokens |
Practitioner checklist
- Join app registrations and service principals on
appIdinto one inventory, including third-party and legacy principals. - Check
passwordCredentialsandkeyCredentialson both objects in every credential review. - Review consent grants and app role assignments on service principals, not just API permissions on registrations.
- Ensure at least two current owners per registration and a business owner per enterprise application.
- Turn on app instance property lock for all sensitive properties on existing apps, especially multitenant ones.
- Replace secrets with managed identities, federated credentials or certificates, and limit secrets with application management policies.
- Set
appRoleAssignmentRequiredfor apps that should not be open to every user. - Retire apps by deactivating first, then deleting, and restore service principals and policies explicitly if rollback is needed.
- Alert on credential, owner, consent and role assignment events for both objects.
Standards and references
- Microsoft Learn: Application and service principal objects in Microsoft Entra ID
- Microsoft Learn: Microsoft Graph application resource type
- Microsoft Learn: Microsoft Graph servicePrincipal resource type
- Microsoft Learn: Overview of permissions and consent in the Microsoft identity platform
- Microsoft Learn: Security best practices for application properties
- Microsoft Learn: Configure app instance property lock
- Microsoft Learn: Deleting and recovering applications FAQ
- Microsoft Learn: Microsoft Entra audit log activity reference
Related NHI Mgmt Group resources: Service Principals vs Managed Identities · Entra ID Applications and Consent Guide · Azure RBAC and Service Principals Guide · NHI Ownership Guide