Project

GraphEssentials

GraphEssentials is a PowerShell module that helps with Office 365 / Azure AD using mostly Graph

Stars10
Forks3
Open issues1
PowerShell Gallery downloads1732
Releasev0.0.55
Language: PowerShell Updated: 2026-04-06T17:18:59.0000000+00:00

Curated Examples

Create a conditional access report

Use GraphEssentials to generate an HTML conditional access report.

This pattern is useful when conditional access rules need a readable review artifact.

It is adapted from Examples/ShowConditionalAccess.ps1.

Example

Import-Module GraphEssentials

Connect-MgGraph -Scopes 'Policy.Read.All', 'Agreement.Read.All', 'Directory.Read.All'

$reportPath = Join-Path $PSScriptRoot 'Reports\ConditionalAccess.html'
New-Item -ItemType Directory -Path (Split-Path $reportPath) -Force | Out-Null

Show-MyConditionalAccess -FilePath $reportPath -Online -ShowHTML -Verbose

What this demonstrates

  • requesting scopes that match conditional access reporting
  • writing the report to a script-local folder
  • producing an HTML artifact for review

Source