Skip to content

Prerequisites

Requirements for deploying the Scope Drift Monitor.


Licensing

Requirement Purpose
Power Platform Premium Power Automate detection flows
Dataverse capacity Scope and violation storage
Microsoft 365 E5 or E5 Compliance Unified Audit Log access

Permissions

Microsoft Entra ID Roles

Role Required For
Purview Compliance Admin Audit log queries

Power Platform Roles

Role Required For
System Administrator Dataverse table creation

Office 365 Management API Permissions

Permission Type Purpose
ActivityFeed.Read Application Office 365 Management API audit log access

Note: The solution authenticates against https://manage.office.com (Office 365 Management API), not Microsoft Graph. Ensure the app registration has ActivityFeed.Read permission with admin consent.

Microsoft Graph Permissions (only for Test-AlertDelivery email path)

Permission Type Purpose
Mail.Send Delegated Required by Test-AlertDelivery.ps1 to send email alerts via Send-MgUserMail. Not used by the production drift scanner.

Note: Test-AlertDelivery.ps1 performs an interactive Connect-MgGraph -Scopes Mail.Send if no Graph context is present. Pre-authenticate with the same scope when running unattended. The From mailbox owner must be the signed-in user (delegated) or, if you adapt the script to application permissions, the app must hold Mail.Send (Application) scoped via an exchange ApplicationAccessPolicy.


Service Principal Setup

  1. Register application in Entra ID
  2. Grant required API permissions
  3. Create client secret
  4. Store credentials securely

Security Note: The fsi_SDM_ClientSecret environment variable uses the Secret type, but for production deployments it should be backed by an Azure Key Vault secret reference. Without Key Vault backing, the value is accessible to Dataverse System Administrators. See Environment variable types for configuration guidance.


Validation Checklist

  • E5 or E5 Compliance license available
  • Power Platform Premium for flow creator
  • Dataverse environment ready
  • Service principal configured
  • Admin consent granted
  • Audit logging enabled in tenant

Scope Drift Monitor v1.2.0