Overview ✨
When configuring the Liongard Microsoft 365 Inspector for a multi-tenant environment, one or more child inspectors may fail with an HTTP 403 (Forbidden) error while attempting to retrieve the Microsoft Entra Security Defaults policy through Microsoft Graph.
This issue can occur when Enable Application Based Permissions is disabled on the parent Microsoft 365 Inspector and the authenticated partner account does not have sufficient delegated permissions within the customer tenant.
⚠️ Important: Liongard recommends enabling Application Based Permissions on the parent Microsoft 365 Inspector for multi-tenant configurations. If application-based permissions must remain disabled, additional GDAP read permissions may be required within each customer tenant.
Applies To
Area | Details |
Inspector | Microsoft 365 |
Configuration | Multi-Tenant Application |
Affected Inspectors | Microsoft 365 Child Inspectors |
Audience | Partners managing Microsoft 365 customer tenants |
Error | HTTP 403 (Forbidden) |
Affected Endpoint | identitySecurityDefaultsEnforcementPolicy |
Symptoms
Partners experiencing this issue may observe the following behavior:
The parent Microsoft 365 Inspector completes successfully.
One or more Microsoft 365 child inspectors consistently fail.
The failure occurs while retrieving the Security Defaults policy from Microsoft Graph.
Enable Application Based Permissions is disabled on the parent inspector.
The affected child inspector may display the following error:
Inspection failed at https://graph.microsoft.com/v1.0/policies/identitySecurityDefaultsEnforcementPolicy with status code 403: Request failed with status code 403. This is a problem with your permissions within the target system, not the Liongard inspector.
Why This Happens
The Liongard Microsoft 365 Inspector supports application-based and delegated access for collecting data from customer tenants in a multi-tenant configuration.
The permissions required to retrieve certain Microsoft Graph resources depend on the configured authentication method.
Application Based Permissions - Enabled (Recommended)
When Enable Application Based Permissions is enabled, Liongard uses application permissions granted within the customer tenant to retrieve supported Microsoft 365 data.
For example, retrieving the Security Defaults policy requires the Microsoft Graph Policy.Read.All permission.
The following GDAP (Granular Delegated Admin Privileges) roles support the configuration and provisioning of application-based access within customer tenants:
Privileged Role Administrator
Cloud Application Administrator
Directory Writers
When application permissions have been successfully granted, the application-based request does not depend on the authenticated partner user's delegated read permissions to retrieve the Security Defaults policy.
Application Based Permissions - Disabled
When Enable Application Based Permissions is disabled, Liongard relies on delegated access for the affected API requests, using the permissions of the authenticated partner account.
With delegated access, Microsoft evaluates both the permissions granted to the application and the effective permissions of the authenticated user within the customer tenant.
The three GDAP roles listed above do not, by themselves, provide sufficient delegated read access for certain Microsoft Graph security policy endpoints.
As a result, Microsoft Graph may reject the request with an HTTP 403 (Forbidden) response, even when the parent inspector completes successfully.
An additional GDAP read role, such as Global Reader or Security Reader, may be required to retrieve the Security Defaults policy.
Permission Requirements Comparison
Configuration | Access Method | Customer Tenant GDAP Roles |
Application Based Permissions - ON (Recommended) | Application-based access | Privileged Role Administrator, Cloud Application Administrator, Directory Writers |
Application Based Permissions - OFF | Delegated access | Existing required GDAP roles, plus Global Reader (recommended for broader read coverage) or Security Reader, as appropriate |
ℹ️ Note: These requirements relate to the customer tenant's GDAP relationship. All other parent tenant permissions, licensing, authentication, and configuration requirements outlined in the Microsoft 365 Inspector Setup Guide still apply.
Steps to Resolve
Option 1: Enable Application Based Permissions (Recommended)
Enabling Application Based Permissions is the recommended configuration for Microsoft 365 multi-tenant inspections and the preferred resolution for this permission-related error.
Log in to your Liongard instance.
Locate the parent Microsoft 365 Inspector.
Select Edit to open the inspector configuration.
Set Enable Application Based Permissions to ON.
Review the available application feature settings and configure them according to your organization's requirements.
Complete Microsoft sign-in and consent using the intended partner account.
Save the updated inspector configuration.
Run the parent Microsoft 365 Inspector using Debug + Clear Cache.
Once the parent inspection completes successfully, run each affected Microsoft 365 child inspector using Debug + Clear Cache.
✅ Expected Result: Once the required application permissions have been successfully provisioned within the customer tenant, the affected child inspector should be able to retrieve the Security Defaults policy without encountering the HTTP 403 error described in this article.
Option 2: Configure Additional GDAP Permissions for Delegated Access
If your organization requires Application Based Permissions to remain disabled, ensure that the authenticated partner account has sufficient delegated read permissions within each affected customer tenant.
Liongard recommends Global Reader for broader read-only coverage of Microsoft 365 configurations. Security Reader may also provide the permissions required to retrieve the Security Defaults policy, but additional roles may still be necessary for other endpoints.
Step 1: Review the Customer's GDAP Relationship
Step 1: Review the Customer's GDAP Relationship
Log in to the Microsoft Partner Center.
Navigate to Customers.
Select the affected customer.
Select Admin relationships.
Open the applicable GDAP relationship and review the approved Microsoft Entra roles.
Verify that the Global Reader role is included in an active GDAP relationship.
If the required role is not included in an existing GDAP relationship, request a new GDAP relationship that includes the required role and obtain customer approval.
⚠️ Important: Microsoft does not allow additional Microsoft Entra roles to be added to an existing GDAP relationship after it has been created. A new relationship must be requested if the required role has not already been approved.
Step 2: Assign the Required Role to the Partner Security Group
Step 2: Assign the Required Role to the Partner Security Group
Open the active GDAP relationship containing the required role.
Navigate to Security groups.
Locate or add the AdminAgents security group used by the Liongard integration.
Assign the Global Reader role to the security group.
Save the changes.
Confirm that the role assignment becomes active.
Verify that the partner account used to authenticate the Liongard Microsoft 365 Inspector is a member of the assigned security group.
Repeat these steps for each affected customer tenant, as required.
Step 3: Rerun the Microsoft 365 Inspectors
Step 3: Rerun the Microsoft 365 Inspectors
Allow sufficient time for Microsoft permission changes to propagate.
Reauthenticate the parent Microsoft 365 Inspector using the intended partner account.
Run the parent inspector using Debug + Clear Cache.
Once the parent inspection completes successfully, run each affected child inspector using Debug + Clear Cache.
✅ Expected Result: Provided the necessary delegated application permissions and GDAP roles are in place, the child inspector should be able to retrieve the Security Defaults policy successfully.
Additional Troubleshooting
Additional Troubleshooting
If the Microsoft 365 child inspectors continue to fail after completing the resolution steps, verify the following:
Parent Inspector Configuration: Confirm that the parent inspector is configured for multi-tenant access and that the intended permission method is selected.
Parent Authentication: Verify that the parent inspector is successfully authenticated using the intended partner account.
GDAP Relationship Status: Ensure that the affected customer's GDAP relationship is active and has not expired or been terminated.
GDAP Role Assignments: Verify that the required Microsoft Entra roles are assigned to the appropriate partner security group within the customer tenant's GDAP relationship.
Security Group Membership: Confirm that the authenticated partner account is a member of the AdminAgents security group.
Application Permissions and Consent: If Application Based Permissions is enabled, verify that the required application permissions have been successfully granted within the customer tenant.
Permission Propagation: Allow sufficient time for recently modified permissions and role assignments to take effect.
Inspector Execution Order: Ensure that the parent inspector is rerun successfully before running the affected child inspectors.
Inspection Logs: Review debug logs for additional application consent, service principal provisioning, or permission-related errors.
ℹ️ Note: A successful parent inspection does not necessarily confirm that Liongard has sufficient permissions within every customer tenant. GDAP relationships and application permission grants must be validated for each affected customer tenant.
Best Practices
Enable Application Based Permissions for Microsoft 365 multi-tenant configurations whenever possible.
Follow the permission and authentication requirements outlined in the Microsoft 365 Inspector Setup Guide.
Periodically review GDAP relationships, role assignments, security group membership, and relationship expiration dates.
Apply the principle of least privilege when assigning additional GDAP roles.
Run the parent inspector before rerunning child inspectors following authentication or permission changes.
Use Debug + Clear Cache when validating permission-related troubleshooting.
Review delegated read-role requirements carefully if Application Based Permissions must remain disabled.
When to Contact Liongard Support 🦁
If the Microsoft 365 child inspector continues to fail with an HTTP 403 (Forbidden) error after completing the troubleshooting steps outlined in this article, contact Liongard Support for further assistance.
To help expedite the investigation, provide the following information:
Affected child inspector and Environment names.
Complete inspection error message.
Current status of the Enable Application Based Permissions setting.
Confirmation of the customer's active GDAP relationship and assigned roles.
Relevant screenshots of the parent inspector configuration and GDAP role assignments.
A summary of the troubleshooting steps already performed.
‼️ Do not include passwords, access tokens, client secrets, or other sensitive authentication credentials in your support request.
Related Articles and References ⭐️
Liongard Documentation
Microsoft Documentation
🚨 Note : We may occasionally provide links to third-party tools or resources for additional reference. These resources are offered for convenience only, and Liongard does not control, maintain, or guarantee their functionality, accuracy, or availability. Please review and use any third-party resources at your own discretion.


