Entra ID app registration: Register an application
Give a script or service its own identity
Who this is for: Administrators with the Cloud Application Administrator role or a more privileged role.
Scope: This guide covers initial app registration and optional platform settings; it does not configure app permissions, admin consent, credentials, single sign-on, or app code.
Before you start
- Have access to a Microsoft Entra ID tenant. If you do not have a tenant, the Microsoft Learn prerequisite points you to creating a free Azure account to get a free subscription.
- Sign in with an account assigned the Cloud Application Administrator role, the least privileged role supported for registration, or a more privileged role. If your account does not have a supported role, ask your tenant administrator to assign one before you begin.
- Decide the app's display name, intended audience, and home tenant before registering it.
Register the application
- Sign in to the Microsoft Entra admin center with the supported administrator account.
- If you have access to more than one tenant, select the Settings icon in the top menu. In Directories + subscriptions, select the tenant where the app should be registered.
- Go to Identity > Applications > App registrations, then select New registration.
- In Name, enter a display name that describes what the app does.
- Under Supported account types, choose the option that matches the app's intended audience: Accounts in this organizational directory only for users or guests in this tenant; Accounts in any organizational directory for users in any Microsoft Entra tenant; Accounts in any organizational directory and personal Microsoft accounts for users in other Entra tenants and personal accounts; or Personal Microsoft accounts for personal accounts only. Check your selection before continuing.
- Leave Redirect URI (optional) blank for initial registration. You can add a platform and its redirect URI after registration.
- Select Register to complete the registration.
The Application (client) ID identifies the app across the Microsoft cloud ecosystem. The Object ID identifies the application object in this tenant.
Optionally configure a platform and redirect URI
Initial registration is complete without a redirect URI. Use these steps only when the app needs platform settings. Have the app's actual redirect URI or platform-specific identifiers ready; do not invent values.
For Android platform setup, have a valid Signature hash for the app before you begin. Generating the hash is outside this guide.
- In the registered app, under Manage, select Authentication.
- Under Platform configurations, select Add a platform.
- Under Configure platforms, select the tile that matches the app. Use Web for a standard web app that runs on a server; use Single-page application for a client-side web app built with JavaScript or a framework such as Angular, Vue.js, React.js, or Blazor WebAssembly.
- For a Web platform, enter the app's redirect URI in Redirect URI.
- For a Single-page application platform, enter the app's redirect URI in Redirect URI.
- For an iOS / macOS app, select the iOS / macOS tile and enter the app's Bundle ID. Find the Bundle ID in Build Settings or in Xcode's Info.plist; Entra generates the redirect URI from the Bundle ID.
- For an Android app, select the Android tile, enter the app's Package name from AndroidManifest.xml, and enter the valid Signature hash you prepared. Entra generates the redirect URI from these settings.
- For a mobile or desktop app, select the Mobile and desktop applications tile. Use it for desktop apps, or for mobile apps that are not using the latest Microsoft Authentication Library (MSAL) or are not using a broker.
- For a desktop app using an embedded browser, select the suggested redirect URI https://login.microsoftonline.com/common/oauth2/nativeclient. For a desktop app using a system browser, select the suggested redirect URI http://localhost. For other supported mobile or desktop setups, select a suggested redirect URI or enter one or more Custom redirect URIs that match the app.
- After entering the settings for the selected platform, select Configure to complete the platform configuration.
Verify the registration and platform settings
- Open the Overview pane and confirm that the Application (client) ID and Object ID appear. If either is missing, check that you registered the app in the intended tenant and complete registration there.
- If you added a platform, go to Manage > Authentication and check Platform configurations for the platform and settings you entered. If anything is missing or incorrect, return to Authentication, add the correct settings, and select Configure.
Credentials are a separate setup task
- Confidential clients that access a web API use credentials so the app can authenticate as itself without a user interacting at runtime. Examples include web apps, other web APIs, and service or daemon apps.
- Supported credential types include certificates, client secrets, and federated credentials. Choose a credential based on your app's security requirements.
- This guide does not add or verify credentials. If the app is a confidential client that needs to authenticate as itself, use the credential instructions in the Microsoft Learn registration article before relying on that authentication.
When the registration stops working
| Symptom | What to do |
|---|---|
| You cannot find the app or it was registered in the wrong tenant. | Use the Settings icon in the top menu, open Directories + subscriptions, and select the intended tenant. Go to Identity > Applications > App registrations and look for the app there. If it was registered in the wrong home tenant, register an app in the intended tenant instead. |
| The app needs to be used by a different audience than the one selected. | This guide does not cover changing the audience after registration. Register a separate app and select the intended Supported account types during registration. Do not rely on the existing app for the new audience. |
| Sign-in does not return to the app. | Go to Manage > Authentication and check that the correct platform is configured and that its redirect URI matches the value used by the app. If the platform or value is missing or incorrect, add the correct platform settings and select Configure before testing sign-in again. |
| A service or daemon cannot authenticate as the app. | Check whether the app is a confidential client that needs to authenticate as itself. If it does, configure a supported credential: certificate, client secret, or federated credential. Use the credential instructions in the Microsoft Learn registration article; credential setup is not covered in this guide. |
| You cannot complete registration because your account lacks the required role. | Ask your tenant administrator to assign the Cloud Application Administrator role or a more privileged role, then sign in again and retry. |
Related help articles
References
Source: https://learn.microsoft.com/en-us/graph/auth-register-app-v2
Source: https://learn.microsoft.com/en-us/entra/identity-platform/app-objects-and-service-principals
Last updated on