Join our Newsletter — 33% off our NHI Course
Home› Guides› App Registration vs Service Principal: Where Entra Credentials,…
Guide Cloud & Workload Identity

App Registration vs Service Principal: Where Entra Credentials, Permissions and Consent Live

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

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

ItemApp registration (application)Service principal (enterprise app)
Identifier shown as Object IDIts own id, unique to the application objectIts own id, different in every tenant
Application (client) IDappId, assigned at registrationSame appId, linking the instance to its definition
Home tenantWhere it livesappOwnerOrganizationId records the tenant where the app is registered
Who can sign in (audience)signInAudience: AzureADMyOrg (default), AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, PersonalMicrosoftAccountInstance exists only where the app is used
Permissions requestedrequiredResourceAccess (API permissions blade)Not stored here
Permissions grantedNot stored hereDelegated: oauth2PermissionGrant; application: appRoleAssignment
App roles and scopes it exposesappRoles, api.oauth2PermissionScopes defined hereCopies exposed for assignment in the tenant
Who may use the appNot controlled hereappRoleAssignmentRequired (default false) and user or group assignments
Enable or disable sign-inDeactivation stops new tokens while keeping both objectsaccountEnabled false blocks sign-in in that tenant
Secrets and certificatespasswordCredentials, keyCredentials (Certificates and secrets blade)passwordCredentials, keyCredentials via Graph addPassword and addKey; also SAML signing certificates
OwnersOwners can modify the registration; Microsoft recommends at least twoSeparate owner list for the enterprise app
Conditional Access and sign-in logsNot applied herePolicies target and logs record the service principal
Azure RBAC and directory rolesNot assignableAssigned 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.

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.

ScenarioRegistration showsService principal holdsRisk if you only look at one
Permission removed from API permissions blade after consentPermission no longer listedExisting grant still present until revokedApp keeps access the owner believes was removed
Admin consents in a customer tenant to a multitenant appNothing changes in the home tenantNew app role assignments in the customer tenant onlyHome tenant owner cannot see customer grants; customer admin must review
Dynamic delegated consent at runtimeScope may never have been listedDelegated grant created on consentRegistration review underestimates delegated access
Application permission such as a Graph app roleListed as a RoleApp role assignment after admin consentReviewing 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, accountEnabled and deletion. Use appOwnerOrganizationId to separate third-party apps from your own. See How to find multi-tenant Azure app registrations.
  • Tenant validation: Microsoft's Graph reference notes that signInAudience does not replace tenant validation in your code. A multitenant API must still check which tenants it accepts tokens from.

Deletion, recovery and orphaned principals

ActionEffect
Deactivate the appStops 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 principalNo users can sign in to the app in that tenant, even if assigned
Delete the app registrationAlso deletes the home-tenant service principal; both go to deleted items
Restore the app registrationBrings 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) onlyRemoves the instance and its grants from that tenant; the registration remains and a new instance can be created on next consent
Soft delete periodDeleted 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 principalPolicies applied to it are not restored and must be reconfigured
Managed identity principalVisible 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

  1. Build one inventory joined on appId: list every application object and every service principal, join them on appId, and flag service principals with no local registration (third-party or legacy) and registrations with no recent service principal sign-ins.
  2. 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 notes field (up to 1,024 characters) or tags for purpose and owner. See the NHI Ownership Guide.
  3. Review credentials on both objects: expiry, type (secret or certificate), age and whether federated or managed identity can replace them.
  4. Review grants, not requests: export app role assignments and delegated grants from service principals and compare with the documented need; revoke what is unused.
  5. 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.
  6. 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 Legacy and managed identity principals like ordinary apps: they have no registration to review, so they need their own inventory path.

Framework mapping

FrameworkReferenceHow it applies
NIST CSF 2.0ID.AM-02; PR.AA-05Inventory of software and services (joined app and service principal inventory); permissions managed and reviewed with least privilege
NIST SP 800-53 Rev. 5AC-2; AC-6; IA-4; IA-5; CM-8Account 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 A5.9; 5.15; 5.18Asset inventory, access control and access rights reviews for application identities
MITRE ATT&CKT1098.001; T1098.003; T1528; T1550.001Credentials and roles added to cloud applications; theft and use of application access tokens

Practitioner checklist

  • Join app registrations and service principals on appId into one inventory, including third-party and legacy principals.
  • Check passwordCredentials and keyCredentials on 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 appRoleAssignmentRequired for 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

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

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.