App Registrations
Planning · registering · redirect URIs and credentials · API permissions · app roles
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Plan and register an app
- Register at Entra ID > App registrations > New registration. The account must be at least an Application Developer.
- Registering creates a trust relationship that is unidirectional: your app trusts the Microsoft identity platform, not the other way around. Once created, you can't move the application object between different tenants.
- The Application (client) ID uniquely identifies the app. You can have multiple app registrations with the same name.
- A new registration is hidden from users by default. To show it on My Apps, set Visible to users? to Yes on the enterprise app's Properties page.
- A new registration gets the Microsoft Graph
User.Readpermission.
| Supported account types | signInAudience (manifest) | Use |
|---|---|---|
| Single tenant only | AzureADMyOrg | Users and guests of your tenant. Recommended for most apps. |
| Multiple Entra ID tenants | AzureADMultipleOrgs | Multitenant apps, for example SaaS. |
| Any Entra ID tenant + personal Microsoft accounts | AzureADandPersonalMicrosoftAccount | Multitenant plus Xbox, Live, Hotmail accounts. |
| Personal accounts only | PersonalMicrosoftAccount | Personal Microsoft accounts only. |
Choose a managed identity instead of an app registration when the service runs in Azure, doesn't sign in users, isn't a web API (doesn't act as the resource in a token flow) and doesn't operate in multiple tenants.
Application object vs service principal
| Application object | Service principal | |
|---|---|---|
| Scope | Global representation, lives in the home tenant | Local representation in one tenant |
| Where you manage it | App registrations | Enterprise applications |
| Relationship | One-to-one with the software, one-to-many with service principals | Created in each tenant where the app is used |
- Registering in the portal creates both objects in the home tenant. With Microsoft Graph APIs, creating the service principal is a separate step.
- A multitenant app gets a service principal in each tenant where a user from that tenant has consented to it.
- Deleting the application object also deletes its home-tenant service principal. Restoring the application object in the UI doesn't restore the service principal.
- To stop token issuance but keep both objects, deactivate the application.
- Three service principal types: Application, Managed identity (no app object, can't be modified directly) and Legacy (no app registration, only usable in the tenant where it was created).
Restrict an app to chosen users: set Assignment required? to Yes on the enterprise app. User consent is then not allowed, so grant tenant-wide admin consent. The requirement doesn't apply to a Global Administrator.
App authentication: redirect URIs and credentials
- Entra only redirects users and sends tokens to redirect URIs added to the registration. A mismatch gives
AADSTS50011. - Redirect URIs must start with
https(some localhost exceptions), are case-sensitive and don't support! $ ' ( ) , ;. - Add redirect URIs to the application object only, never to a service principal.
- Don't use wildcard reply URLs or insecure schemes such as http or URN. Use separate registrations for development and production.
- For localhost URIs the port is ignored when matching. Use the path to tell several localhost URIs apart.
- No redirect URI is needed for device code flow, On-Behalf-Of flow, resource owner password credential flow or Windows Integrated Auth.
| App type | Platform to add the redirect URI to |
|---|---|
| Traditional server-side web app | Web |
| Single-page app (React, Angular, Vue) | Single-page application (SPA) |
| Native mobile or desktop app | Mobile and desktop applications |
| Android / iOS or macOS | Android / IOS/macOS |
| Credential | Portal path | Guidance |
|---|---|---|
| Certificate | Certificates & secrets > Certificates > Upload certificate (.cer, .pem, .crt) | Recommended over a secret before production. Record the thumbprint. |
| Client secret | Certificates & secrets > Client secrets > New client secret | Lifetime 24 months or less. Microsoft recommends under 12 months. The value is never shown again. Less secure than certificates or federated credentials; should not be used in production. |
| Federated credential | Certificates & secrets > Federated credentials > Add credential | Lets GitHub Actions, Kubernetes or other external workloads get tokens without managing secrets. |
A public or installed client (mobile or desktop app) must have no credentials on the application object.
API permissions
| Delegated permissions | Application permissions | |
|---|---|---|
| Context | On behalf of a signed-in user | No user, the app acts as itself (daemon, background service) |
| Also called | Scopes | App roles, app-only permissions |
| Who can consent | Users for their own data, admins for all users | Only an admin |
| Reach | Never more than the signed-in user could access | All data the permission covers, for example every file in the tenant |
- Path: app registration > API permissions > Add a permission. For your own API choose the My APIs tab.
- Your own API needs its own registration with exposed scopes. The client has a separate registration.
- Application permissions on your own API are only offered if you defined app roles for it.
- Some permissions, such as Graph
Files.Read.All, need admin consent. Use Grant admin consent for <tenant>. The button is disabled if you aren't an admin or no permissions are configured. - To remove consent, use Revoke admin consent next to the permission.
- An app that uses application permissions needs its own credentials configured first.
- Follow least privilege and prefer delegated access over app-only access.
A blue verified badge on the consent prompt shows a verified publisher. Verification needs a verified Microsoft AI Cloud Partner Program account, an app registered by using a Microsoft Entra work or school account, and an Application Administrator or Cloud Application Administrator. No license is needed.
App roles
- Define roles on the app registration of the service or API: App roles > Create app role. Entra emits a
rolesclaim for each role granted. - Allowed member types chooses users/groups, applications, or both. Roles available to applications show up as application permissions.
- Value is the roles claim string. It must match the app code and can't contain spaces.
- Assign users and groups in Enterprise apps > Users and groups. Assign a role to an application under API permissions > My APIs, then grant admin consent.
- To assign roles to applications you must first be an owner of the application.
- Disabling a role stops new assignments, but existing assignments remain and the role still appears in tokens. To delete a role, disable it and apply first.
- Limit: 700 permission definitions per application or service principal, shared with exposed delegated scopes. Disabled definitions still count.
- A role assigned to a group that contains a service principal doesn't produce a
rolesclaim.
| App roles | Groups | |
|---|---|---|
| Defined in | The app registration, move with the app | The tenant, not app-specific |
| Claim | roles | groups |
| If the app is removed | Roles are removed | Groups remain |
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| List service principals for an app | az ad sp list --filter "appId eq '{AppId}'" | Get-MgServicePrincipal -Filter "appId eq '{AppId}'" |
Exam Tips
Tick each tip once you can answer it without looking.
“Who can create an app registration in the admin center (minimum role in the quickstart)” → Application Developer.. Trap: Listing a higher role as the minimum isn't what the quickstart states.
“Global template for the app vs per-tenant instance” → Application object (App registrations) is global; service principal (Enterprise applications) is local to a tenant.. Trap: Don't confuse the two blades.
“Registered an app with Microsoft Graph APIs and it doesn't appear in Enterprise apps” → Create the service principal as a separate step.. Trap: The portal creates it for you, Graph doesn't.
“Delete the application object, then restore it” → The home-tenant service principal is deleted too and is not restored.. Trap: Restoring the app doesn't bring the service principal back.
“Suspend an app temporarily and keep its objects” → Deactivate the application.. Trap: Deleting removes the application object and the service principal.
“Azure service, no user sign-in, not a web API, single tenant” → A managed identity can be used instead of an app registration.. Trap: Any one of those conditions failing (for example multitenant) rules out the managed identity advice.
“Error AADSTS50011” → Redirect URI in the request doesn't match a redirect URI on the app registration.. Trap: It's not a consent or credential error.
“Where to add a redirect URI” → The application object, never the service principal.. Trap: Values on a service principal can be removed when it syncs with the application object.
“React single-page app redirect URI platform” → Single-page application (SPA).. Trap: Web is for traditional server-side apps; Mobile and desktop is for native apps.
“Smart TV or printer app without a keyboard” → Device code flow, no redirect URI needed.. Trap: Authorization code flow needs a redirect URI.
“Credential for a confidential app moving to production” → Certificate (or federated credential or managed identity), not a client secret.. Trap: Client secrets are less secure than certificates or federated credentials and should not be used in production.
“Maximum client secret lifetime” → 24 months, with under 12 months recommended.. Trap: You can't pick a custom lifetime longer than 24 months. The secret value is shown only once.
“GitHub Actions deploys to Azure with no stored secret” → Add a federated credential to the app registration.. Trap: A client secret would need rotation and storage.
“Daemon service calls an API without a user” → Application permission (app role) plus admin consent.. Trap: Delegated permissions need a signed-in user.
“Grant admin consent button is disabled” → You aren't an admin, or no permissions are configured.. Trap: Look at your role and the configured permissions list, not at the app's credentials.
“Role disabled in the app registration, user still has the claim” → Existing assignments remain and still flow into tokens. Remove the assignment.. Trap: Disabling doesn't revoke existing assignments.
“Limit shared between app roles and delegated scopes” → 700 permission definitions per application or service principal.. Trap: Disabled roles still count.
Sources
- Register an app in Microsoft Entra ID
- Apps and service principals
- Add and manage app credentials
- Redirect URI best practices and limitations
- Validation differences by supported account types
- Security best practices for application properties
- Permissions and consent overview
- Web API app registration and API permissions
- Add app roles and get them from a token
- Restrict an app to a set of users
- Publisher verification overview
Checked against Microsoft Learn on November 13, 2026.