Skip to main content

Microsoft 365 | Understanding Entra ID Roles, GDAP, and Application Permissions

Overview ✨

Liongard's Microsoft 365 Inspector uses Microsoft Entra ID authentication and Microsoft Graph API permissions to collect configuration, resource, and security posture information from Microsoft 365 tenants.

The required roles, permissions, and available data depend on the Inspector's configuration:

  • Single-Tenant: Inspects an individual Microsoft 365 tenant using organizational Microsoft Sign-In.

  • Multi-Tenant with Application Based Permissions Enabled (Recommended): Uses Granular Delegated Admin Privileges (GDAP) and application permissions for more comprehensive customer tenant coverage.

  • Multi-Tenant with Application Based Permissions Disabled: Relies on delegated permissions through GDAP, requires additional delegated read privileges, and provides reduced data collection coverage.

What Does This Article Cover?

This article provides a comprehensive understanding of:

  • Required Microsoft Entra ID roles and their purpose.

  • Parent and Child tenant GDAP requirements.

  • Differences between delegated and application permissions.

  • Application Based Permissions and associated data collection limitations.

  • Liongard Enterprise Application creation, consent, management, and recovery.

  • Ongoing role requirements, authentication, and token security.

  • Information collected by Liongard and its data privacy boundaries.

  • Common permission-related failures and troubleshooting guidance.

⚠️ Important: Missing or incorrectly configured roles and permissions may result in inspection failures, authorization errors, or incomplete data collection. A successful inspection status alone does not guarantee that all expected information has been collected.

Understanding these requirements helps ensure reliable inspections, appropriate permission assignments, and comprehensive visibility into your Microsoft 365 environments.


Understanding Liongard's Microsoft Entra ID Application Architecture

Before reviewing the required Microsoft Entra ID roles and permissions, it is important to understand how Liongard's application interacts with Microsoft Entra ID across different tenants.

The following table explains the application objects that may be associated with Microsoft authentication workflows.

Microsoft Entra ID Object

Where It Exists

Managed By

Purpose

Liongard Application Registration

Liongard's Microsoft Entra ID tenant

Liongard

The multi-tenant application registration used for Liongard's Microsoft authentication workflows.

Liongard Enterprise Application (Service Principal)

Partner or customer tenant

Respective tenant administrator

Represents Liongard's application within the tenant and defines its locally granted permissions and access.

Customer-Owned Application Registration

Customer's Microsoft Entra ID tenant

Customer

Used in separate integrations that explicitly support customer-managed Client Credentials authentication. It is not required for the standard Microsoft 365 Inspector's Microsoft Sign-In configuration.

Liongard Application Registration

Liongard maintains its multi-tenant application registration within its own Microsoft Entra ID tenant.

For standard Microsoft 365 Inspector configurations using Microsoft Sign-In (SSO), partners do not need to create their own application registration or generate a client secret.

Application (Client) ID: 5bf6d32d-305a-490b-89c3-55339d8cec1e

The Application ID identifies Liongard's application across Microsoft Entra ID tenants.

Liongard Enterprise Application (Service Principal)

When Liongard's application is authorized within a Microsoft Entra ID tenant, a local representation of that application, known as a Service Principal, can be created.

This object is accessible under: Microsoft Entra admin center → Entra ID → Enterprise applications → All applications

The Enterprise Application allows authorized tenant administrators to:

  • Review granted delegated and application permissions.

  • Review application sign-in and authentication activity.

  • Manage applicable access controls.

  • Review or revoke previously granted consent.

Each tenant has its own Service Principal with a unique Object ID, while the Application (Client) ID remains the same across tenants.

Application Credentials and Security

For the standard Microsoft Sign-In authentication workflow, Liongard manages its own application credentials.

Partners are not required to:

  • Generate a client secret for Liongard's application.

  • Provide Liongard's application client secret during Inspector configuration.

  • Manually rotate or renew Liongard's application client secret.

📌 Important: The Liongard Enterprise Application visible in your Microsoft Entra ID tenant is not a separate customer-owned App Registration. It represents Liongard's existing multi-tenant application within your tenant.

Enabling Application Based Permissions in the Microsoft 365 Inspector does not require creating a separate customer-owned App Registration.


Parent Tenant Requirements

The Microsoft 365 Parent Inspector must be authenticated using a Microsoft Entra ID work or school account. Personal Microsoft accounts are not supported.

For Multi-Tenant configurations using Granular Delegated Admin Privileges (GDAP), the authenticating account must also be a member of the AdminAgents security group in the partner tenant.

Required Microsoft Entra ID Roles

Assign the following roles to the account used to authenticate the Microsoft 365 Parent Inspector:

  • Cloud Application Administrator

  • Directory Writers

  • Global Reader

  • Privileged Role Administrator

  • Reports Reader

  • Security Reader

  • Teams Administrator

These are the documented account role requirements for the standard Microsoft 365 Inspector configuration.

Understanding the Purpose of Each Role

Microsoft Entra ID Role

Purpose

Cloud Application Administrator

Provides administrative authority to manage application registrations, Enterprise Applications, and supported application consent operations.

Directory Writers

Provides directory-level privileges required by Liongard's documented configuration and associated directory operations.

Global Reader

Provides broad read-only visibility into Microsoft Entra ID and supported Microsoft 365 administrative settings.

Privileged Role Administrator

Provides the authority required for privileged application permission management, including granting Microsoft Graph application permissions. This is particularly important when Application Based Permissions is enabled for Child Inspectors.

Reports Reader

Provides access to supported Microsoft 365 usage reports, sign-in reports, and other reporting information.

Security Reader

Provides read-only access to supported security information, reports, alerts, and security posture information.

Teams Administrator

Provides administrative access to Microsoft Teams resources and configuration information required by supported delegated inspection operations.

Are These Roles Required After Initial Setup?

Yes. The required roles should remain assigned and effective throughout the operational lifecycle of the Microsoft 365 Inspector, not just during initial configuration.

Removing required roles after completing Microsoft Sign-In or granting application consent may affect subsequent inspections, permission management operations, or data collection.

Depending on the affected role and API operation, this may result in:

  • Authentication or inspection failures.

  • HTTP 403 (Forbidden) errors.

  • Missing or incomplete inspection data.

  • Empty fields or unexpected zero values.

  • Reduced visibility into Microsoft 365 resources and security configurations.

📌 Important: Microsoft Entra ID roles and Microsoft Graph API permissions serve different purposes. Assigning the required Entra ID roles does not replace the need to grant the appropriate Microsoft Graph permissions.

Additionally, assigning roles to the Parent Inspector account does not automatically grant equivalent privileges within customer tenants. For Multi-Tenant configurations, the required GDAP roles must be configured separately within each customer relationship.


GDAP Role Requirements for Child Tenants

For Multi-Tenant Microsoft 365 configurations, the roles required within each customer tenant's GDAP relationship depend on whether Enable Application Based Permissions is enabled or disabled in the Microsoft 365 Parent Inspector.

These requirements are separate from the Entra ID roles assigned to the authenticating account within the partner tenant.

Scenario 1: GDAP with Application Based Permissions Enabled

Recommended configuration for comprehensive data collection.

In this configuration, Liongard uses delegated administrative access through GDAP to establish application consent and assign the Microsoft Graph application permissions required for Child Inspector data collection.

This allows Liongard to retrieve additional information using application permissions without relying exclusively on the delegated privileges of the authenticating user.

Required GDAP Roles

Each customer tenant's GDAP relationship must include the following roles:

  • Directory Writers

  • Cloud Application Administrator

  • Privileged Role Administrator

Ensure that these roles are also assigned to the appropriate partner security group associated with the GDAP relationship.

Why Are These Roles Required?

Microsoft Entra ID Role

Purpose Within the Child Tenant

Directory Writers

Supports the directory and service principal operations involved in Liongard's authentication and permission management workflow.

Cloud Application Administrator

Provides the authority required for the delegated application consent workflow through Microsoft Partner Center.

Privileged Role Administrator

Provides the authority required to grant Microsoft Graph application permissions to the Liongard Enterprise Application within the customer tenant.

Understanding Consent and Application Permission Assignment

Application consent and Microsoft Graph application-role assignment are two separate operations.

Operation

Relevant Role

Establish delegated application consent through Partner Center

Cloud Application Administrator

Assign Microsoft Graph application permissions to the Enterprise Application

Privileged Role Administrator

If the Inspector encounters an HTTP 403 (Forbidden) error during the Partner Center consent process, verify the Cloud Application Administrator role, GDAP access assignments, and security group membership.

If the Inspector fails while assigning Microsoft Graph application permissions, verify the Privileged Role Administrator role and the associated authorization requirements.

📌 Important: Cloud Application Administrator alone does not provide the authority required to grant Microsoft Graph application permissions.

⚠️ The required GDAP roles must remain effective throughout the Inspector's operational lifecycle to support ongoing permission management and inspection workflows.

Scenario 2: GDAP with Application Based Permissions Disabled

Required GDAP Roles for Delegated-Only Child Inspections

When Enable Application Based Permissions is disabled, the Microsoft 365 Child Inspector relies on delegated permissions granted through the customer tenant's GDAP relationship.

The three standard GDAP roles remain required. However, an additional Global Reader role is required to provide broader delegated read access to Microsoft 365 configurations and security policies.

Microsoft Entra ID Role

Purpose

Directory Writers

Supports directory-related operations required by the Inspector.

Cloud Application Administrator

Supports delegated application consent through Microsoft Partner Center.

Privileged Role Administrator

Provides the authority required to grant Microsoft Graph application permissions to the Liongard Enterprise Application within the customer tenant.

Global Reader

Provides additional read-only access to supported Microsoft Entra ID and Microsoft 365 administrative configurations when Application Based Permissions is disabled.

GDAP Role Requirements Comparison

Microsoft Entra ID Role

Application Based Permissions Enabled

Application Based Permissions Disabled

Directory Writers

Required

Required

Cloud Application Administrator

Required

Required

Privileged Role Administrator

Required

Required

Global Reader

Not required

Required

Why Is Global Reader Required?

When Application Based Permissions is disabled, the standard three GDAP roles alone may not provide sufficient delegated read access to certain Microsoft Graph endpoints, including the Security Defaults policy endpoint.

Without the additional Global Reader role, Child Inspectors may encounter HTTP 403 (Forbidden) errors or return incomplete inspection data.

📌 Important: Adding Global Reader does not restore datasets that specifically require Application Based Permissions. Liongard recommends keeping Application Based Permissions enabled for comprehensive Microsoft 365 data collection.

Data Collection Limitations When Application Based Permissions Are Disabled

Disabling Enable Application Based Permissions on the Microsoft 365 Parent Inspector changes how Child Inspectors retrieve information from customer tenants.

Although adding Global Reader provides broader delegated read access, it does not replace Microsoft Graph application permissions or restore datasets that depend on application-based data collection.

The following data collection areas are affected:

Data Collection Area

Impact When Disabled

Mailbox Rules

Mailbox-rule inspection is unavailable.

External Email Forwarding

External-forwarding detection that relies on mailbox-rule inspection is unavailable.

OneDrive

Detailed drive and storage information collected through application permissions is unavailable.

SharePoint

Detailed site, drive, and associated storage information collected through application permissions is unavailable.

Microsoft Teams

Detailed Teams information collected through application permissions is unavailable.

GDAP Relationship Inventory

GDAP relationship data collected through the application-based workflow is unavailable.

MFA-related information may remain available through delegated permissions, provided the necessary Microsoft Graph permissions and effective GDAP roles are in place.

📌 Important: Assigning Global Reader or additional GDAP roles does not restore datasets that specifically depend on Liongard's application-based collection workflow.

Impact on Security Monitoring

One of the most significant limitations of disabling Application Based Permissions is the loss of mailbox-rule inspection and associated external email forwarding detection.

Unauthorized mailbox forwarding rules can present a security risk by redirecting sensitive organizational information to external recipients.

Without the underlying inspection data, the associated Liongard Metrics, Reports, and Actionable Alerts may be unable to accurately identify these configurations.

⚠️ Important: An empty dataset, zero value, or absence of an Actionable Alert does not necessarily indicate that a security risk is absent. It may indicate that the required data is unavailable under the configured permission model.

Application Based Permissions – ON vs. OFF

The following table summarizes the differences between both permission models for Microsoft 365 Child Inspectors.

Feature / Requirement

Application Based Permissions Enabled

Application Based Permissions Disabled

Recommended Configuration

✅ Yes

Alternative with limited data collection

Active GDAP Relationship

Required

Required

Liongard Enterprise Application in Child Tenant

Required

Required

Delegated Application Consent

Required

Required

Directory Writers

Required

Required

Cloud Application Administrator

Required

Required

Privileged Role Administrator

Required

Required

Global Reader

Not part of the standard minimum GDAP role set

Required for the recommended delegated-only configuration

Microsoft Graph Application-Role Assignment

Performed

Not performed

Data Collection Method

Delegated and application permissions

Delegated permissions

Security Defaults Policy

Available through application permissions

Available with sufficient delegated read permissions

Mailbox-Rule Inspection

Supported

Unavailable

Mailbox-Rule-Based External Forwarding Detection

Supported

Unavailable

Detailed OneDrive Data

Supported

Application-based data unavailable

Detailed SharePoint Data

Supported

Application-based data unavailable

Detailed Microsoft Teams Data

Supported

Application-based data unavailable

GDAP Relationship Inventory

Supported

Application-based data unavailable

MFA-Related Information

Subject to applicable permissions and API requirements

Subject to applicable delegated permissions and GDAP roles

Overall Data Collection Coverage

More comprehensive

Limited


When Is the Liongard Enterprise Application Created in Child Tenants?

The Liongard Enterprise Application is created within a customer tenant during the Microsoft 365 Child inspection process, when Liongard successfully establishes application consent through Microsoft Partner Center using the existing GDAP relationship.

For this process to complete successfully:

  • The Microsoft 365 Parent Inspector must be successfully authenticated.

  • An active GDAP relationship must exist between the partner and customer tenant.

  • The required GDAP roles must be configured and assigned to the AdminAgents security group.

  • The associated Microsoft 365 Child Inspector must run successfully through the application consent stage.

The Liongard Enterprise Application is a Service Principal representing Liongard's multi-tenant application within the customer tenant. It is not a separate App Registration created within that tenant.

ℹ️ Important: Successfully authenticating or running the Parent Inspector does not necessarily mean that the Enterprise Application has been created in every discovered customer tenant. Application consent is established as part of the associated Child inspection workflow.

This behavior applies regardless of whether Application Based Permissions is enabled or disabled.

Is Customer Consent Required?

No separate interactive Microsoft Sign-In or application consent prompt is normally required within each Child tenant.

During the standard GDAP authentication workflow, Liongard establishes delegated application consent through Microsoft Partner Center using the authorized partner relationship.

Is the Enterprise Application Created When Application Based Permissions Is Disabled?

Yes. The Liongard Enterprise Application is required in both permission models.

Configuration

Application Based Permissions Enabled

Application Based Permissions Disabled

Active GDAP Relationship

Required

Required

Liongard Enterprise Application

Required

Required

Delegated Application Consent

Required

Required

Microsoft Graph Application-Role Assignment

Performed

Not performed

Data Collection Method

Delegated and application permissions

Delegated permissions

Disabling Application Based Permissions changes the permission assignment and data collection workflow. It does not eliminate the requirement for an Enterprise Application or delegated application consent within the Child tenant.


How to Locate the Liongard Enterprise Application

The Liongard Enterprise Application can be located within the Microsoft Entra admin center of both the Parent and Child tenants.

ℹ️ The standard Liongard Microsoft 365 application uses the following identifier: Application (Client) ID: 5bf6d32d-305a-490b-89c3-55339d8cec1e

Locate the Application in the Parent Tenant

  1. Ensure you are viewing the partner's Microsoft Entra tenant.

  2. Navigate to Entra ID → Enterprise applications → All applications.

  3. Enter Liongard in the search field.

  4. Select the Liongard Enterprise Application from the search results.

  5. Open the Overview page and verify the Application ID.

If the application does not appear, remove any existing filters and search again using the methods described below.

Locate the Application in a Child Tenant

In some customer tenants, the Liongard Enterprise Application may not appear immediately when searching by name because of the filters applied within the Enterprise applications page.

Method 1: Search by Application Name

  1. Switch to the affected customer tenant and verify that the correct directory is selected.

  2. Navigate to Entra ID → Enterprise applications → All applications.

  3. Remove all existing filters by selecting the X next to each applied filter.

  4. Enter Liongard in the search field.

  5. Select the matching Enterprise Application.

  6. Verify that its Application ID matches Liongard's Application ID.

Method 2: Search by Application ID (Recommended)

If searching by name does not return the expected application:

  1. Navigate to Entra ID → Enterprise applications → All applications within the customer tenant.

  2. Remove all existing filters and clear the application name search field.

  3. Select Add filters.

  4. Select Application ID starts with.

  5. Enter the following Application ID: 5bf6d32d-305a-490b-89c3-55339d8cec1e

  6. Select Apply.

  7. Open the matching Enterprise Application.

Alternatively, if the Application Type filter is retained, ensure it is set to All Applications.

📌 Important: The Application ID remains the same across Parent and Child tenants. However, the Object ID is unique to the Service Principal within each tenant.

Understanding Application ID and Object ID

Although Liongard uses the same multi-tenant application across multiple Microsoft Entra ID tenants, each tenant maintains its own Service Principal.

Identifier

Parent Tenant

Child Tenant

Application (Client) ID

Same

Same

Object ID

Tenant-specific

Tenant-specific

Granted Permissions

Tenant-specific

Tenant-specific

Application Consent

Tenant-specific

Tenant-specific

After locating the Enterprise Application, authorized administrators can review its properties, granted permissions, sign-in activity, and applicable audit logs.

To review granted permissions, navigate to Security → Permissions within the Enterprise Application.

What Information Can Be Reviewed?

After locating the Enterprise Application, you can review:

  • Application ID and Object ID.

  • Application properties.

  • Granted delegated and application permissions.

  • Available sign-in activity.

  • Audit logs associated with application management and permission changes.

To review granted permissions, open the Enterprise Application and navigate to Security → Permissions.


Enterprise Application and Consent Lifecycle

The Enterprise Application, Partner Center application consent, Microsoft Graph application-role assignments, and GDAP relationship are separate components of the Microsoft 365 authentication workflow.

Component

Lifecycle Behavior

Enterprise Application (Service Principal)

Persists within the customer tenant after it is created unless it is explicitly removed.

Partner Center Application Consent

Refreshed as part of Liongard's recurring inspection workflow.

Microsoft Graph Application-Role Assignments

Existing assignments persist. When Application Based Permissions is enabled, Liongard checks the required application-role assignments and assigns missing permissions as needed.

GDAP Relationship

Remains subject to its configured duration, expiration, role assignments, and termination settings.

The Enterprise Application itself is not deleted and recreated during every successful inspection.

The required GDAP roles must remain effective throughout the operational lifecycle of the Inspector to support ongoing authentication, consent management, and data collection.


What Happens If the Liongard Enterprise Application Is Deleted?

Deleting the Liongard Enterprise Application from a Child tenant removes the local Service Principal required by Liongard to authenticate and access that tenant.

As a result, Liongard loses the application authorization required to perform inspections against the affected Child tenant.

You may encounter the following symptoms:

  • Microsoft 365 Child inspections fail.

  • Authentication or application consent errors appear in the Inspection Logs.

  • Microsoft Graph API requests return HTTP 401 (Unauthorized) or HTTP 403 (Forbidden) errors.

  • Microsoft 365 inspection data stops updating.

  • The Liongard Enterprise Application is no longer visible within the affected Child tenant.

An active GDAP relationship alone does not guarantee that Liongard can continue inspecting a Child tenant after its Enterprise Application has been deleted.

📌 Important: Running the affected Child Inspector alone is not sufficient to restore the deleted Enterprise Application. The Parent Inspector must first be re-authenticated to re-establish the required authentication and consent workflow.

How to Restore the Liongard Enterprise Application

Follow the steps below to restore access to the affected Child tenant.

Step 1: Verify the GDAP Relationship

Before re-authenticating the Parent Inspector, confirm that:

  • The customer tenant's GDAP relationship is active.

  • Directory Writers, Cloud Application Administrator, and Privileged Role Administrator are included in the relationship and assigned to the AdminAgents security group.

  • Global Reader is additionally assigned when Application Based Permissions is disabled, in accordance with Liongard's recommended delegated-only configuration.

  • The account used to authenticate the Parent Inspector remains a member of the AdminAgents security group.

  • The authenticating account retains the required Parent tenant Entra ID roles.

Step 2: Re-authenticate the Microsoft 365 Parent Inspector

  1. Log in to your Liongard instance.

  2. Navigate to Admin → Inspectors → Microsoft 365.

  3. Locate the Microsoft 365 Parent Inspector associated with the affected Child tenant.

  4. Click the three-dot menu (⋮) under the Actions column and select Edit.

  5. Select Open Microsoft Sign-In.

  6. Authenticate using the appropriate account from the partner tenant.

  7. Complete the required Multi-Factor Authentication (MFA) and application consent prompts, if presented.

  8. Confirm that a green checkmark appears next to Microsoft Sign-In.

  9. Click Save.

Step 3: Run the Microsoft 365 Parent Inspector

  1. Locate the Microsoft 365 Parent Inspector.

  2. Right-click the Play/Pause button under the Actions column.

  3. Select Debug + Clear Cache.

  4. Allow the Parent inspection to complete successfully.

  5. Review the Inspection Logs for any authentication or GDAP-related errors.

Step 4: Run the Affected Microsoft 365 Child Inspector

Once the Parent Inspector has completed successfully:

  1. Locate the affected Microsoft 365 Child Inspector.

  2. Right-click the Play/Pause button under the Actions column.

  3. Select Debug + Clear Cache.

  4. Allow the Child inspection to complete.

  5. Review the Inspection Logs and verify that the previously encountered authentication or consent errors are resolved.

Repeat this step for any additional affected Child Inspectors.

Step 5: Verify the Enterprise Application and Data Collection

Return to the affected customer tenant in the Microsoft Entra admin center.

  1. Navigate to Entra ID → Enterprise applications → All applications.

  2. Remove any existing filters.

  3. Search for Liongard using its application name or Application ID.

  4. Confirm that the Liongard Enterprise Application is available again.

  5. Review the granted permissions under Security → Permissions.

  6. Return to Liongard and verify that the latest Microsoft 365 inspection data is populated as expected.

✅ Expected Results

After completing the recovery process:

  • The Liongard Enterprise Application is re-established within the affected Child tenant.

  • The required delegated application consent is restored.

  • Required Microsoft Graph application permissions are assigned when Application Based Permissions is enabled.

  • The affected Child Inspector completes successfully.

  • Microsoft 365 data collection resumes.


Are These Roles Required Only During Initial Setup?

No. The required Microsoft Entra ID roles must remain assigned and effective throughout the operational lifecycle of the Microsoft 365 Inspector.

These roles support more than the initial Microsoft Sign-In and application consent process. They are also used during ongoing authentication, permission management, and data collection.

The required roles remain necessary because:

  • Delegated access depends on the effective privileges of the authenticated Microsoft Entra ID account within the target tenant.

  • OAuth refresh tokens are used to obtain new access tokens for subsequent inspections.

  • Child tenant application consent is maintained during recurring inspections.

  • When Application Based Permissions is enabled, the authority required to establish and maintain Microsoft Graph application-role assignments must remain available.

⚠️ Removing required roles after the initial setup may result in authentication failures, permission-related errors, or incomplete inspection data.


Privileged Identity Management (PIM)

Liongard's standard Microsoft 365 Inspector requires the documented roles to remain active and available for scheduled and manually triggered inspections.

Just-in-time (JIT) role activation through Microsoft Entra Privileged Identity Management (PIM), including activation aligned with an expected inspection window, is not a supported configuration.

If a required role is inactive or its activation expires, subsequent inspections may fail or return incomplete data.

ℹ️ Important: Successfully completing Microsoft Sign-In while the required roles are temporarily active does not guarantee that future inspections will complete successfully.


What Information Does Liongard Collect?

The Microsoft 365 Inspector is designed to collect configuration information, resource metadata, usage reports, and security posture information.

It is not designed to inspect the contents of emails, documents, files, Teams conversations, or SharePoint pages.

Data Category

Collected by Liongard?

Description

Directory Configuration and Metadata

✅ Yes

Users, groups, roles, devices, domains, policies, and associated configuration information.

Application and Permission Metadata

✅ Yes

Supported application information, assigned permissions, and related administrative configuration.

Aggregated Usage and Reporting Data

✅ Yes

Supported Microsoft 365 usage reports, licensing information, mailbox usage, and storage statistics.

Security and Compliance Metadata

✅ Yes

Supported security configurations, authentication registration information, Secure Score, and related security posture data.

Mailbox Configuration and Inbox Rules

✅ Yes, where supported

Mailbox settings and rule definitions, including forwarding-related configurations.

Email Message Content

❌ No

Email message bodies, message subjects, and attachment contents are not collected as part of the standard inspection workflow.

File or Document Content

❌ No

Supported drive metadata, storage information, and quotas may be collected. File and document contents are not collected.

Microsoft Teams Message Content

❌ No

Supported Teams, channel, and membership metadata may be collected. Chat and channel message contents are not collected.

SharePoint Page and List-Item Content

❌ No

Supported site and drive metadata may be collected. SharePoint page bodies and list-item contents are not collected.

Mailbox Rules and External Forwarding Detection

When mailbox-rule inspection is available, Liongard collects inbox rule definitions to identify forwarding and redirection configurations.

This may include rule names, conditions, actions, and forwarding destination addresses.

This information helps identify potentially unauthorized external email forwarding without requiring Liongard to retrieve the contents of individual email messages.

ℹ️ Important: Inbox rule definitions are configuration data. However, they may contain administrator-defined or user-defined values, including email addresses and text used in rule conditions

Microsoft Graph Permissions vs. Actual Data Collection

The permissions granted to an application define the operations that Microsoft allows the application to perform.

They do not necessarily represent every operation the application actually performs.

Liongard uses the granted permissions to support its documented inspection and authentication workflows.

Data availability depends on the Inspector configuration, granted permissions, Microsoft licensing, enabled features, and API availability.


Common Error Symptoms When Roles Are Missing

Missing or incorrectly configured Microsoft Entra ID roles may result in authentication failures, authorization errors, or incomplete inspection data.

The impact depends on the affected role, target tenant, API endpoint, and configured permission model.

Missing Role or Access

Affected Configuration

Potential Impact

Directory Writers

Parent account and Child tenant GDAP

Directory-related operations may fail or return incomplete information.

Cloud Application Administrator

Parent account and Child tenant GDAP

Application consent operations, including Partner Center consent, may fail with authorization errors.

Privileged Role Administrator

Parent account and Child tenant GDAP

When Application Based Permissions is enabled, the Inspector may be unable to establish or restore required Microsoft Graph application-role assignments.

Global Reader

Parent account and delegated-only Child tenant GDAP

Broad configuration and security policy information may be unavailable. Certain API requests, including Security Defaults, may fail with HTTP 403.

Reports Reader

Parent account

Supported usage, licensing, mailbox usage, and other reporting information may be incomplete or unavailable.

Security Reader

Parent account

Supported security reports, audit information, Secure Score, and related security data may be affected.

Teams Administrator

Parent account

Supported delegated Microsoft Teams data collection may be affected.

AdminAgents Membership

Multi-Tenant Parent account

Partner Center operations, customer tenant discovery, or delegated consent may fail.

Required GDAP Role Assignments

Child tenant

Child tenant authentication, consent, or data collection may fail.

Expired or Terminated GDAP Relationship

Child tenant

The Inspector may lose the delegated authority required to establish or maintain access.

Revoked Application Consent

Parent or Child tenant

Token acquisition or API authorization may fail, requiring renewed application consent.

Disabled or Deleted Enterprise Application

Parent or Child tenant

Application authentication and inspection operations may fail until access is restored.

Expired or Revoked Refresh Token

Parent account

Microsoft Sign-In may need to be completed again to restore authentication.

Why Can an Inspection Complete With Missing Data?

Not every permission-related issue results in a failed inspection.

Depending on the affected Microsoft Graph endpoint and how its response is handled, the Inspector may return:

  • Empty datasets.

  • Null or missing properties.

  • Unexpected zero values.

  • Incomplete configuration information.

  • Missing data in Metrics, Reports, or Actionable Alerts.

⚠️ Important: A zero value does not necessarily confirm that no matching resources or security risks exist. It may indicate that the underlying data was unavailable or could not be collected.

When investigating unexpected results, review the latest Inspection Logs, confirm the required role assignments, and compare the collected information against the corresponding Microsoft 365 tenant.


Security: Authentication, Credentials, and Token Handling

Liongard uses Microsoft's OAuth 2.0 authentication framework for standard Microsoft 365 Inspector configurations.

Liongard does not store the Microsoft 365 user's password. Authentication is performed through Microsoft's sign-in experience.

Following successful authentication, Liongard securely stores the OAuth tokens required for subsequent inspections.

OAuth Token Security

  • OAuth tokens are encrypted at rest.

  • Tokens are transmitted over secure channels.

  • Access is limited by the permissions granted to the application and the applicable authorization model.

  • Token validity and expiration are governed by Microsoft.

  • Refresh tokens are renewed through Liongard's recurring authentication workflow.

Access Tokens and Refresh Tokens

Token Type

Purpose

Access Token

Authorizes requests to Microsoft Graph and other supported Microsoft APIs for a limited period.

Refresh Token

Allows Liongard to request new access tokens without requiring interactive Microsoft Sign-In for every inspection.

Refresh Token Expiration and Re-authentication

Microsoft documents a default refresh token lifetime of 90 days for most applicable OAuth authentication scenarios.

If an Inspector remains inactive for an extended period, its refresh token may expire, requiring the Parent Inspector to be re-authenticated.

Re-authentication may also be required sooner due to:

  • Refresh token revocation.

  • Certain password changes or administrative password resets.

  • Microsoft Entra ID security policies.

  • Conditional Access sign-in frequency requirements.

  • Revoked application consent.

  • Changes to the authenticating account or its access.

ℹ️ Important: The 90-day default refresh token lifetime does not guarantee uninterrupted authentication for 90 days. Microsoft may invalidate or revoke tokens before their expected expiration.

Application Credential Management

The application credentials associated with Liongard's multi-tenant Microsoft Entra ID application are managed by Liongard.

Partners are not required to generate, retrieve, or rotate Liongard's application client secret when using the standard Microsoft Sign-In authentication workflow.


Microsoft 365 Permission Requirements at a Glance

Parent Tenant Account Requirements

The following roles apply to the authenticating account used by the standard Microsoft 365 Parent Inspector.

Requirement

Single-Tenant

Multi-Tenant GDAP

Cloud Application Administrator

Required

Required

Directory Writers

Required

Required

Global Reader

Required

Required

Privileged Role Administrator

Required

Required

Reports Reader

Required

Required

Security Reader

Required

Required

Teams Administrator

Required

Required

AdminAgents Security Group Membership

Not required

Required

Active Customer GDAP Relationships

Not applicable

Required for Child inspections

Child Tenant GDAP Requirements

The following role requirements apply separately within each customer tenant's GDAP relationship.

Requirement

Application Based Permissions ON

Application Based Permissions OFF

Directory Writers

Required

Required

Cloud Application Administrator

Required

Required

Privileged Role Administrator

Required

Required

Global Reader

Not part of the standard minimum role set

Required for Liongard's recommended delegated-only configuration

Total Recommended GDAP Roles

3

4

Liongard Enterprise Application in Child Tenant

Required

Required

Delegated Application Consent

Required

Required

Microsoft Graph Application-Role Assignment

Performed

Not performed

Data Collection Method

Delegated and application permissions

Delegated permissions

Overall Data Collection Coverage

More comprehensive

Limited

Summary by Configuration

Configuration

Enterprise Application in Target Tenant

Child Tenant GDAP Roles

Coverage

Single-Tenant Microsoft Sign-In

Yes

Not applicable

Supported Single-Tenant data collection.

Multi-Tenant GDAP with Application Based Permissions Enabled

Yes, in each successfully authorized Child tenant

Directory Writers, Cloud Application Administrator, Privileged Role Administrator

More comprehensive Child tenant coverage, including application-based datasets.

Multi-Tenant GDAP with Application Based Permissions Disabled

Yes, in each successfully authorized Child tenant

Directory Writers, Cloud Application Administrator, Privileged Role Administrator, Global Reader

Delegated-only coverage with limitations, including unavailable mailbox-rule inspection and associated external forwarding detection.

Multi-Tenant Without an Active GDAP Relationship

An existing Enterprise Application may remain present

No effective GDAP role assignments

The GDAP-based Child inspection workflow cannot operate as expected.


Liongard's Recommended Configuration

For partners managing multiple Microsoft 365 customer tenants through GDAP, Liongard recommends:

  • Using the documented Parent tenant account roles.

  • Maintaining AdminAgents security group membership.

  • Maintaining active GDAP relationships with the required Child tenant role assignments.

  • Keeping Enable Application Based Permissions enabled for comprehensive data collection.

  • Retaining the required roles throughout the operational lifecycle of the Inspector.

  • Reviewing Inspection Logs and collected data regularly to confirm that the expected information remains available.

If Application Based Permissions must remain disabled due to organizational security or compliance requirements, retain the three standard GDAP roles and additionally assign Global Reader within each applicable customer tenant's GDAP relationship.

Review the associated data collection limitations before adopting the delegated-only configuration.

ℹ️ For additional configuration guidance, refer to the Microsoft 365 Inspector Setup Guide.


When to Contact Support 🦁

Contact Liongard Support if you continue to experience any of the following after verifying the required Microsoft Entra ID roles, GDAP relationships, and application permissions:

  • Microsoft 365 Parent or Child Inspector authentication failures.

  • Persistent HTTP 401 (Unauthorized) or HTTP 403 (Forbidden) errors.

  • Missing or incomplete inspection data despite having the required roles and permissions.

  • Missing Liongard Enterprise Application within a customer tenant after completing the re-authentication and inspection workflow.

  • Issues establishing delegated consent or assigning application permissions.

  • Questions regarding permission requirements, data collection limitations, or organizational security policies.

To assist with further troubleshooting, please provide the following information.

Screenshots from the Microsoft Entra Admin Center

Parent Tenant:

  • Assigned Roles: Navigate to Entra ID → Users → [Authenticating User] → Assigned roles and provide a screenshot showing all assigned Microsoft Entra ID roles.

  • Group Membership: Screenshot confirming the authenticating account's membership in the AdminAgents security group, for Multi-Tenant configurations.

  • Enterprise Application: Screenshot of the Liongard Enterprise Application Overview showing the Application ID and Object ID.

  • Application Permissions: Navigate to the Liongard Enterprise Application → Security → Permissions and provide screenshots of the granted permissions.

Affected Child Tenant (if applicable):

  • Screenshot of the Liongard Enterprise Application Overview.

  • Screenshots showing the granted delegated and application permissions.

  • Relevant failed sign-in events, including Microsoft error codes, Failure Reason, Correlation ID, and Conditional Access results, where available.

Screenshots from Microsoft Partner Center

For Multi-Tenant configurations, navigate to Customers → [Affected Customer] → Admin relationships and provide screenshots showing:

  • GDAP relationship status and expiration date.

  • Microsoft Entra ID roles included in the GDAP relationship.

  • Security group access assignments.

  • Roles assigned to the AdminAgents security group.

Ensure the screenshots show both the roles approved within the GDAP relationship and the roles assigned to the security group.

Our Support team is happy to help! 😇

💬 Start a chat with Leo (Our AI Assistant) or connect with a live Support Engineer.


References 📚

Liongard Documentation

Related Liongard Knowledge Base Articles

Microsoft Documentation – Entra ID Roles and Permissions

Microsoft Documentation – GDAP and Partner Center

Microsoft Documentation – Enterprise Applications

Microsoft Documentation – Authentication and Security

🚨 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.

Did this answer your question?