# Create a conditional access report

Create a conditional access report on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

GraphEssentials

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

[View on GitHub](https://github.com/EvotecIT/GraphEssentials) [Visit Website](#) [Releases](https://github.com/EvotecIT/GraphEssentials/releases/tag/v0.0.60) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/GraphEssentials)

Stars**14**

Forks**4**

Open issues**0**

PowerShell Gallery downloads**1794**

Release**v0.0.71**

Language: PowerShell Updated: 2026-11-13

Curated Examples

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

```powershell
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

- [ShowConditionalAccess.ps1](https://github.com/EvotecIT/GraphEssentials/blob/master/Examples/ShowConditionalAccess.ps1)

<!-- PowerForge markdown artifact sha256:0235F0F491789F96E57C8D37E6F7B73378A9568AEF82D4FECC4CDB911CDB9C5D -->
