# kaevans/pbimigrateuser architecture

> Architecture diagram of the GitHub repository kaevans/pbimigrateuser, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kaevans/pbimigrateuser
- Repository: https://github.com/kaevans/pbimigrateuser

## Overview

This toolkit supports a customer-run Power BI tenant migration: discover assets and assignments, map identities and groups, validate access, then transfer licenses. The README documents the scripts’ inputs, outputs, and suggested run order; no source excerpts were available, so relationships below are limited to those documented there.

Main entry points: [`Invoke-PowerBICutoverValidation.ps1`](https://github.com/kaevans/pbimigrateuser/blob/main/Invoke-PowerBICutoverValidation.ps1) (Validate cutover), [`New-TargetGroupsFromAssignments.ps1`](https://github.com/kaevans/pbimigrateuser/blob/main/New-TargetGroupsFromAssignments.ps1) (Create target groups), [`Discover-PowerBIAssets.ps1`](https://github.com/kaevans/pbimigrateuser/blob/main/Discover-PowerBIAssets.ps1) (Discover assets), [`Move-PowerBILicenses.ps1`](https://github.com/kaevans/pbimigrateuser/blob/main/Move-PowerBILicenses.ps1) (Move licenses)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Asset discovery"]
  node_discovery_script["Discover assets"]
  node_discovery_outputs["Discovery CSV and JSON"]
end

subgraph group_identity["Identity migration"]
  node_group_script["Create target groups"]
  node_group_map["Group mapping"]
  node_license_script["Move licenses"]
  node_identity_map["Identity mapping"]
end

subgraph group_cutover["Cutover assurance"]
  node_validation_script["Validate cutover"]
  node_validation_report["Checklist and access report"]
end

node_customer(("Customer operator"))
node_powerbi_admin["Power BI admin APIs"]
node_identity_directory["Contoso groups and users"]
node_microsoft_365["Power BI / M365 licensing"]

node_customer -->|"runs first"| node_discovery_script
node_discovery_script -->|"queries assets"| node_powerbi_admin
node_discovery_script -->|"exports inventory"| node_discovery_outputs
node_customer -->|"runs approved"| node_group_script
node_group_script -->|"reads principals"| node_discovery_outputs
node_group_script -->|"reads mapping"| node_group_map
node_group_script -->|"creates groups"| node_identity_directory
node_customer -->|"runs pilot validation"| node_validation_script
node_validation_script -->|"reads inventory"| node_discovery_outputs
node_validation_script -->|"reads mappings"| node_identity_map
node_validation_script -->|"reads mappings"| node_group_map
node_validation_script -->|"produces report"| node_validation_report
node_customer -->|"runs after signoff"| node_license_script
node_license_script -->|"reads UPN mapping"| node_identity_map
node_license_script -->|"moves SKU"| node_microsoft_365

click node_discovery_script "https://github.com/kaevans/pbimigrateuser/blob/main/Discover-PowerBIAssets.ps1"
click node_discovery_outputs "https://github.com/kaevans/pbimigrateuser/blob/main/Discover-PowerBIAssets.ps1"
click node_group_script "https://github.com/kaevans/pbimigrateuser/blob/main/New-TargetGroupsFromAssignments.ps1"
click node_group_map "https://github.com/kaevans/pbimigrateuser/blob/main/group-map.sample.csv"
click node_license_script "https://github.com/kaevans/pbimigrateuser/blob/main/Move-PowerBILicenses.ps1"
click node_identity_map "https://github.com/kaevans/pbimigrateuser/blob/main/identity-map.sample.csv"
click node_validation_script "https://github.com/kaevans/pbimigrateuser/blob/main/Invoke-PowerBICutoverValidation.ps1"
click node_validation_report "https://github.com/kaevans/pbimigrateuser/blob/main/Invoke-PowerBICutoverValidation.ps1"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_discovery_script,node_discovery_outputs,node_identity_directory toneBlue
class node_group_script,node_group_map,node_license_script,node_identity_map toneAmber
class node_validation_script,node_validation_report,node_powerbi_admin toneMint
class node_customer,node_microsoft_365 toneIndigo
```

## Components

### Asset discovery

- [Discover assets](https://github.com/kaevans/pbimigrateuser/blob/main/Discover-PowerBIAssets.ps1): `Discover-PowerBIAssets.ps1`
- [Discovery CSV and JSON](https://github.com/kaevans/pbimigrateuser/blob/main/Discover-PowerBIAssets.ps1): `Discover-PowerBIAssets.ps1`

### Identity migration

- [Create target groups](https://github.com/kaevans/pbimigrateuser/blob/main/New-TargetGroupsFromAssignments.ps1): `New-TargetGroupsFromAssignments.ps1`
- [Group mapping](https://github.com/kaevans/pbimigrateuser/blob/main/group-map.sample.csv): `group-map.sample.csv`
- [Move licenses](https://github.com/kaevans/pbimigrateuser/blob/main/Move-PowerBILicenses.ps1): `Move-PowerBILicenses.ps1`
- [Identity mapping](https://github.com/kaevans/pbimigrateuser/blob/main/identity-map.sample.csv): `identity-map.sample.csv`

### Cutover assurance

- [Validate cutover](https://github.com/kaevans/pbimigrateuser/blob/main/Invoke-PowerBICutoverValidation.ps1): `Invoke-PowerBICutoverValidation.ps1`
- [Checklist and access report](https://github.com/kaevans/pbimigrateuser/blob/main/Invoke-PowerBICutoverValidation.ps1): `Invoke-PowerBICutoverValidation.ps1`

### Other components

- **Customer operator**
- **Power BI admin APIs**
- **Contoso groups and users**
- **Power BI / M365 licensing**

## Connections

- Customer operator → Discover assets: runs first (evidence: `README.md`)
- Discover assets → Power BI admin APIs: queries assets (evidence: `README.md`)
- Discover assets → Discovery CSV and JSON: exports inventory (evidence: `README.md`)
- Customer operator → Create target groups: runs approved (evidence: `README.md`)
- Create target groups → Discovery CSV and JSON: reads principals (evidence: `README.md`)
- Create target groups → Group mapping: reads mapping (evidence: `README.md`)
- Create target groups → Contoso groups and users: creates groups (evidence: `README.md`)
- Customer operator → Validate cutover: runs pilot validation (evidence: `README.md`)
- Validate cutover → Discovery CSV and JSON: reads inventory (evidence: `README.md`)
- Validate cutover → Identity mapping: reads mappings (evidence: `README.md`)
- Validate cutover → Group mapping: reads mappings (evidence: `README.md`)
- Validate cutover → Checklist and access report: produces report (evidence: `README.md`)
- Customer operator → Move licenses: runs after signoff (evidence: `README.md`)
- Move licenses → Identity mapping: reads UPN mapping (evidence: `README.md`)
- Move licenses → Power BI / M365 licensing: moves SKU (evidence: `README.md`)
