How to Fix Access Denied Error When Granting Microsoft 365 App Consent
Question details
A Global Administrator is unable to grant consent to a third-party application in Microsoft 365 due to a validation error.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Attempting to grant third-party application consent in Microsoft 365.
- Observed behavior
- The system throws a 'Validation Error: Access Denied' message even when the user has Global Administrator privileges.
Ensure you have your Microsoft 365 Global Administrator credentials handy and that you have access to the Microsoft Entra admin center and Windows PowerShell.
Resolve Duplicate Tenant Provider Configurations
Conflicting tenant configurations, such as having identical tenants registered under both a Cloud Solution Provider (CSP) and a Managed Service Provider (MSP), can block app consent.
When a single organization is registered under multiple administrative providers, Microsoft 365 security policies may conflict and block third-party app consent requests, resulting in an Access Denied error.
Sign in to the Microsoft 365 Admin Center using your Global Administrator credentials.
Navigate to 'Settings' and then 'Partner relationships' to review the current providers managing your tenant.
Look for duplicate registrations, such as one entry for a CSP and another for an MSP managing the same tenant.
Contact your service providers to consolidate the tenant administration or remove the redundant provider registration.
Once the duplicate tenant issue is resolved, return to the third-party application and attempt to grant Microsoft 365 consent again.
Enable User Consent via PowerShell Settings
Modify the tenant consent configuration directly using the MSOnline PowerShell module.
Avoid Cloud Admin Hassles with WPS Office
Managing complex Microsoft 365 tenant configurations, PowerShell parameters, and admin consent protocols can be overwhelming. If you just need a reliable, hassle-free way to create and edit documents, try WPS Office. It is a powerful desktop suite that requires no complex cloud administration.

Frequently Asked Questions
Why do I get an Access Denied error when I am a Global Administrator?
This error often occurs when there are conflicting security policies, such as duplicate tenant registrations under different providers (e.g., CSP and MSP), which override standard administrator permissions for third-party apps.
How can I view my current app consent policies in Microsoft 365?
You can view and manage app consent policies by signing in to the Microsoft Entra admin center, selecting 'Enterprise applications', and then navigating to 'Consent and permissions' under the Security menu.
Is it safe to enable UsersPermissionToUserConsentToAppEnabled?
Enabling this allows standard users to consent to third-party apps accessing their data. While convenient, it can pose a security risk. It is generally recommended to use an admin consent workflow where administrators review and approve app requests instead.




