Join our Newsletter — 33% off our NHI Course
Home› FAQ› Authentication, Authorisation & Trust› How do you register a Microsoft Entra app…
Authentication, Authorisation & Trust

How do you register a Microsoft Entra app and create a service principal?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 20, 2026 Domain: Authentication, Authorisation & Trust

Register a Microsoft Entra app by creating the application object first, then allowing the tenant to create the service principal that represents it for access in that directory. After registration, assign only the permissions and roles the workload needs, add credentials if required, and record the app owner, purpose, and expected sign-in behaviour.

What happens when an app registration becomes a service principal?

A Microsoft Entra app registration creates the application object, which is the directory-wide definition of the app. The service principal is the tenant-local instance that makes that app usable in a specific directory for sign-in, access control, and permission assignment. That split matters because registration and usable access are related but not the same thing.

In practice, the application object holds the identity blueprint, while the service principal is what administrators see and manage inside the tenant. One app registration can exist globally, while each tenant that uses it gets its own service principal representation. That is why consent, role assignment, and tenant-specific permissions are evaluated on the service principal side.

For practitioners, the clean mental model is: create the application object first, then let the tenant materialise the service principal so the workload can be granted access in that directory. Entra ID Applications and Consent Guide is the best companion when you need the broader consent and enterprise application context around that flow.

What should you lock down immediately after registration?

The first post-registration decisions should be about authority, not convenience. Assign only the API permissions, app roles, and directory roles the workload actually needs, then decide whether the app needs credentials at all, and if so, which credential type fits the operating model. That is where most mistakes start: overbroad permissions, inherited admin rights, or credentials added before ownership and purpose are documented.

Service principal hygiene is part of the registration workflow, not a later cleanup task. Review who owns the app, what it is for, which tenants it should exist in, and whether its expected sign-in pattern matches the permission model. Azure RBAC and Service Principals Guide is useful when the next decision is scope and role assignment rather than simple creation.

Where the workload will run with standing access, treat the registration as a privilege boundary. If the app can authenticate and then act with production permissions, the service principal becomes an access path that should be reviewed with the same care as any other privileged principal. For that reason, many teams pair registration with ownership, review cadence, and credential lifecycle controls from day one.

How do you keep the app registration from becoming a long-lived access risk?

The main exposure is not the registration itself, but the combination of broad permissions, weak credential governance, and poor lifecycle tracking. An app that is never reviewed can quietly accumulate access, while a service principal with a lingering secret or certificate can keep working long after the original owner has moved on. Service Account Security Guide helps frame that lifecycle risk in a broader identity context.

Failure mechanism: permissions are granted during setup, but ownership, rotation, and offboarding are not enforced with equal discipline. That leaves an app registration with durable authority that is easy to forget and hard to govern, especially when multiple teams touch the same tenant or when the app is used by automation. In cloud environments, that pattern is one of the fastest ways to create unnoticed standing access.

Impact: an overprivileged or unowned service principal can be abused for data access, directory changes, or lateral expansion inside the tenant. If credentials are exposed, the attacker does not need to compromise a human account to keep moving. The safer pattern is to pair the registration with periodic review, credential rotation, and explicit decommissioning rules for both the application object and its service principal.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 addresses the attack surface, NIST SP 800-53 Rev 5 sets the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementApp registrations often rely on secrets or certificates that need lifecycle control.
AC-6 — Least PrivilegeThe answer centres on granting only the permissions the workload needs.
IA-9 — Service Identification and AuthenticationService principals authenticate as workload identities inside the tenant.
Recommendation — Manage app credentials with defined rotation, storage, and revocation rules. Limit the service principal to the minimum permissions required for its function. Authenticate workloads with controls that distinguish service principals from user accounts.
ISO/IEC 27001:2022A.5.15 — Access controlApp registration and service principal creation establish directory access paths that need governance.
Recommendation — Define and enforce access rules for app registrations and service principals.
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIThe answer warns against granting excessive permissions to the service principal.
Recommendation — Reduce the service principal to only the permissions it genuinely needs.

Practitioner Guidance

What to verify: Confirm whether you need a single-tenant or multi-tenant app, because that determines how service principals are created and where access is granted. Also verify whether the workload needs delegated permissions, application permissions, or no permissions at all before you add credentials.

Decision rule: If the app will access sensitive data or administrative APIs, keep the permission set minimal and review the service principal as a privileged access object. If the app is only for internal automation, prefer the simplest supported authentication pattern and avoid adding long-lived credentials unless there is a clear operational need.

Common mistake: Teams often treat app registration as a one-time setup task and skip ownership, sign-in expectations, and credential review. That turns a routine registration into a durable access object that is difficult to audit later.

Practitioner takeaway: The registration is the beginning of governance, not the end of setup, and the service principal should be managed as an access-bearing identity with explicit ownership, least privilege, and lifecycle controls.

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.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org