How to Automatically Provision a Microsoft Entra Enterprise Application
Question details
The user needs to understand how to automatically provision a service principal for a multitenant application in a customer's tenant upon consent.

- Product
- Microsoft Entra ID
- Device & OS
- not provided
- Scenario
- Registering and configuring a multitenant enterprise application to allow cross-tenant consent and service principal creation.
- Observed behavior
- A service principal needs to be successfully created in the customer's tenant after an administrator or user grants consent to a multitenant application registered in a developer tenant.
Ensure you have an active Microsoft Entra ID developer tenant with sufficient administrative privileges to register applications and configure API permissions.
Register and Configure a Multitenant Application
Set up the application registration in the developer tenant to allow cross-tenant provisioning through the Microsoft identity platform.
When a multitenant application is registered, Microsoft Entra ID leverages the consent framework to create a service principal in the customer's tenant automatically once consent is granted. The application registration must exist before authorization, as the authorize endpoint cannot dynamically create new applications.
Log in to the Microsoft Entra admin center and navigate to 'App registrations'.
Create a new registration and select 'Accounts in any organizational directory' to define it as a multitenant application.
Navigate to the 'API permissions' menu and configure all required delegated or application permissions needed for your integration.
Configure your application to use the Microsoft identity platform OAuth 2.0 authorization-code flow, directing requests to the '/common' or '/organizations' endpoint.

Manage the Provisioned Service Principal via Microsoft Graph
Use Microsoft Graph APIs to view and manage the newly created service principal in the customer tenant post-consent.
Manage Your IT Documentation Efficiently with WPS Office
While managing Microsoft Entra applications and Azure configurations, you need a reliable office suite to draft IT documentation, policies, and architecture plans. WPS Office provides a lightweight, highly compatible, and free alternative to Microsoft Office, ensuring your administration workflows remain uninterrupted.
- 1. Download the Installer: Visit the official WPS Office website to download the free installation package for your operating system.
- 2. Install the Suite: Run the installer and follow the on-screen prompts to set up WPS Office on your workstation.
- 3. Draft Documentation: Open WPS Writer to seamlessly draft, edit, and export your multitenant application deployment guides.

Frequently Asked Questions
Is it necessary to create a multitenant application in our own Azure AD for integrations like Zapier?
Yes. To utilize the common tenant endpoint for multitenant integrations, the initial application must be registered as a multitenant app within your own developer tenant.
Does the Microsoft authorize endpoint dynamically create a new app registration?
No, the authorize endpoint relies on an already existing application registration. It only uses the consent framework to provision a service principal (Enterprise Application) in the consenting customer's tenant.
Why does the automatic SaaS application provisioning documentation link return a 404 error?
Microsoft frequently updates its documentation structure and URLs. To find the current guides, search the Microsoft Learn portal for 'Microsoft identity platform consent framework' or 'multitenant application provisioning'.




