Fix AADSTS7000112 Application Disabled Error
In this article
The AADSTS7000112 error means the application you are trying to sign in to has been disabled in your Microsoft Entra ID (formerly Azure AD) tenant. To fix it, an administrator must re-enable the application in the Azure portal or via PowerShell, then ask you to try signing in again.
What Causes AADSTS7000112
This error appears when a user attempts to authenticate to an application that is registered in Microsoft Entra ID but whose enabled property is set to false. Administrators disable applications for several reasons:
- Decommissioning an app that is no longer used
- Security concerns, such as suspicious activity
- During maintenance or testing
- Accidental misconfiguration
The error message typically looks like: AADSTS7000112: Application ‘<app-id>’ is disabled. The <app-id> is the application’s client ID, which helps admins locate the exact app.
Who Is Affected and How to Identify the App
Any user who tries to sign in to a disabled app will see this error. If you are an end user, you may not have permission to fix it yourself—only a tenant administrator can re-enable the app. To find the app, an admin should:
- Sign in to the Azure portal as a Global Administrator or Application Administrator.
- Go to Microsoft Entra ID > Enterprise applications.
- Search for the app by name or use the client ID from the error message.
- Open the app’s Properties page.
If you are not an admin, contact your IT help desk and provide the full error text, including the client ID.
How to Fix It (Step-by-Step for Admins)
Once you have located the application, the fix is straightforward:
- In the app’s Properties page, scroll to the Enabled for users to sign in? setting.
- Change the toggle from No to Yes.
- Click Save at the top of the page.
- Ask the affected user to try signing in again—the change is immediate and does not require a restart.
If the app is missing from the Enterprise applications list, it may be a first-party Microsoft application. In that case, you can re-enable it using PowerShell (see below).
Using PowerShell to Re-enable the App
For scenarios where the Azure portal does not show the app or you need to automate the fix, PowerShell is the reliable alternative. You must have the Microsoft.Graph module installed and appropriate admin permissions.
- Connect to Microsoft Graph:
Connect-MgGraph -Scopes "Application.ReadWrite.All" - Find the app by its client ID (replace
<app-id>with the actual ID):Get-MgServicePrincipal -Filter "appId eq '<app-id>'" - Update the
accountEnabledproperty to$true:Update-MgServicePrincipal -ServicePrincipalId "<object-id>" -AccountEnabled $true
Note that the object-id is the service principal’s ID, not the client ID. If you only have the client ID, the first command will return the object ID.
Common Pitfalls and Misconceptions
One common mistake is confusing the application registration with the enterprise application (service principal). In Microsoft Entra ID, an app registration is the global definition, while the enterprise application is the instance in your tenant. Disabling happens on the enterprise application, so you must edit that, not the app registration.
Another misconception is that the user can fix this by resetting their password or clearing browser cache. That will not help because the block is on the app side, not the user account. Also, if the app is disabled by a conditional access policy, you will see a different error (AADSTS50076 or similar), not AADSTS7000112.
If you re-enable the app but the error persists, check whether the app is also disabled in the App registrations blade (though this is rare). Additionally, ensure the user has the required licenses or assignments—if the app is set to user assignment required, the user must be assigned to it.
When You Cannot Fix It Yourself
If you are an end user and your admin refuses to re-enable the app, there is no legitimate workaround. The app is disabled for a reason—often security. Do not attempt to bypass it by using a different browser, VPN, or modifying the URL; these will not work and may violate your organization’s policies.
If you are an admin and the PowerShell command fails, verify that you have the Application.ReadWrite.All permission and that you are using the correct tenant. Also, check if the app is a Microsoft first-party app that cannot be disabled—if so, the error might be caused by a service outage, and you should check the Microsoft Entra status page.
Frequently Asked Questions
Can I fix AADSTS7000112 without admin rights?
No. Only a tenant administrator can re-enable an application. You should contact your IT support and provide the error details.
How long does it take for the fix to take effect?
The change is immediate. Once the admin saves the setting, the next sign-in attempt should succeed. There is no propagation delay.
Why did the app get disabled in the first place?
It could be intentional (decommissioning, security) or accidental. Check with your administrator. Sometimes, a security incident triggers an automatic disable.
Does this error affect all users or just me?
It affects all users who try to sign in to that specific app. If only you see the error while others can sign in, the issue is likely with your account, not the app.
Can I re-enable the app via Microsoft Graph API?
Yes, you can use the Graph API to update the accountEnabled property of the service principal. The PowerShell command shown above uses the same API under the hood.
What if the app is a Microsoft first-party app like Outlook or Teams?
Microsoft first-party apps are rarely disabled. If you see this error for a Microsoft app, check if there is a service health issue or if the app was accidentally disabled by a conditional access policy. Contact support if needed.