# ballipongala/microsoft-purview-unified-catalog architecture

> Architecture diagram of the GitHub repository ballipongala/microsoft-purview-unified-catalog, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ballipongala/microsoft-purview-unified-catalog
- Repository: https://github.com/ballipongala/microsoft-purview-unified-catalog

## Overview

This repository is a suite of Microsoft Purview governance tools, with the React/Flask Utility as its primary interactive application. Its user workflow is to browse catalog assets, select them, and curate metadata or discover lineage; separate scripts handle extraction, compliance, cleanup, and contact auditing. Utility backend dispatches and several subsystem implementations are supported by excerpts or the SOURCE INDEX; links from frontend actions to API operations are left unverified where wiring was not shown.

Main entry points: [`Microsoft_Purview_Utility/backend/api_server.py`](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/api_server.py) (Flask API), [`Microsoft_Purview_Utility/src/App.tsx`](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/App.tsx) (Utility app routes), [`Microsoft_Purview_Datamap_extractor_Public/datamap_extract_azure_sql.py`](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Datamap_extractor_Public/datamap_extract_azure_sql.py) (SQL metadata export), [`Microsoft_Purview_Datamap_extractor_Public/datamap_extract_fabric_notebook.py`](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Datamap_extractor_Public/datamap_extract_fabric_notebook.py) (Fabric metadata export)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_utility_ui["Catalog interface"]
  node_app["Utility app routes<br/>[App.tsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.tsx]"]
  node_asset_browse["Asset browsing<br/>[BrowseAssets.tsx]"]
  node_type_browse["Type browsing"]
  node_products["Data products<br/>[DataProducts.tsx]"]
  node_curation_portal["Curation portal view<br/>[CurationPortal.tsx]"]
  node_curate["Bulk curation<br/>[Curate.tsx]"]
  node_selection["Selected assets"]
  node_selection_panel["Selection panel"]
end

subgraph group_utility_api["Curation services"]
  node_api["Flask API<br/>[api_server.py]"]
  node_catalog_data["Catalog retrieval<br/>[get_data.py]"]
  node_product_data["Product retrieval"]
  node_tag_ops["Tag operations<br/>[add_tag.py]"]
  node_classification_ops["Classification operations"]
  node_delete_class["Classification removal"]
  node_delete_tag["Tag removal<br/>[delete_tag.py]"]
  node_owner_ops["Owner operations<br/>[add_owner.py]"]
  node_entra_users["User lookup"]
  node_auto_classify["Auto suggestions<br/>[auto_classify.py]"]
  node_lineage["Lineage discovery<br/>[create_lineage.py]"]
  node_glossary_sync["Glossary synchronization<br/>[sync_glossary.py]"]
  node_orphaned["Orphan detection<br/>[orphaned_asset.py]"]
end

subgraph group_extraction["Metadata extraction"]
  node_extract_sql["SQL metadata export"]
  node_extract_fabric["Fabric metadata export"]
  node_schema["Asset schema retrieval"]
  node_get_product["Product export script"]
end

subgraph group_governance["Governance scripts"]
  node_pii["PII labeling<br/>[Add_PII_Label.py]"]
  node_delete_assets["Collection asset deletion<br/>[delete_assets.py]"]
  node_inactive["Inactive contact audit"]
end

subgraph group_portals["Curation portals"]
end

node_governance_team(("Governance team"))
node_purview[("Purview catalog")]
node_entra_graph["Entra ID / Graph"]
node_sql_store[("Azure SQL")]
node_fabric_store[("Fabric Lakehouse")]

node_governance_team -->|"uses"| node_app
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_asset_browse
node_app -->|"routes to"| node_type_browse
node_app -->|"routes to"| node_products
node_app -->|"routes to"| node_curation_portal
node_app -->|"routes to"| node_curate
node_app -->|"renders"| node_selection_panel
node_app -->|"provides state"| node_selection
node_asset_browse -.->|"selects assets"| node_selection
node_curate -.->|"submits curation"| node_api
node_api -->|"calls"| node_catalog_data
node_api -->|"calls"| node_product_data
node_api -->|"calls"| node_tag_ops
node_api -->|"calls"| node_classification_ops
node_api -->|"calls"| node_delete_class
node_api -->|"calls"| node_delete_tag
node_api -->|"calls"| node_owner_ops
node_api -->|"calls"| node_entra_users
node_api -->|"calls"| node_auto_classify
node_api -->|"calls"| node_lineage
node_api -->|"calls"| node_glossary_sync
node_api -.->|"dispatches"| node_orphaned
node_catalog_data -->|"reads catalog"| node_purview
node_tag_ops -->|"updates tags"| node_purview
node_classification_ops -->|"updates labels"| node_purview
node_owner_ops -->|"updates contacts"| node_purview
node_entra_users -->|"looks up users"| node_entra_graph
node_auto_classify -->|"suggests labels"| node_purview
node_lineage -->|"creates lineage"| node_purview
node_glossary_sync -->|"syncs glossary"| node_purview
node_extract_sql -->|"extracts metadata"| node_purview
node_extract_sql -->|"exports metadata"| node_sql_store
node_extract_fabric -->|"extracts metadata"| node_purview
node_extract_fabric -->|"exports metadata"| node_fabric_store
node_schema -->|"retrieves schema"| node_purview
node_get_product -->|"retrieves products"| node_purview
node_pii -->|"labels assets"| node_purview
node_delete_assets -->|"deletes assets"| node_purview
node_inactive -->|"audits contacts"| node_purview
node_inactive -->|"checks contacts"| node_entra_graph
node_governance_team -->|"requests schema"| node_schema
node_governance_team -->|"exports metadata"| node_extract_sql
node_governance_team -->|"exports metadata"| node_extract_fabric
node_governance_team -->|"automates labeling"| node_pii
node_governance_team -->|"manages cleanup"| node_delete_assets
node_governance_team -->|"audits ownership"| node_inactive

click node_app "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/App.tsx"
click node_dashboard "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/Dashboard.tsx"
click node_asset_browse "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/BrowseAssets.tsx"
click node_type_browse "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/BrowseByAssetType.tsx"
click node_products "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/DataProducts.tsx"
click node_curation_portal "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/CurationPortal.tsx"
click node_curate "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/Curate.tsx"
click node_selection "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/contexts/SelectedAssetsContext.tsx"
click node_selection_panel "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/components/catalog/SelectedAssetsPanel.tsx"
click node_api "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/api_server.py"
click node_catalog_data "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/get_data.py"
click node_product_data "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/get_data_product.py"
click node_tag_ops "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/add_tag.py"
click node_classification_ops "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/add_classificiation.py"
click node_delete_class "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/delete_classification.py"
click node_delete_tag "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/delete_tag.py"
click node_owner_ops "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/add_owner.py"
click node_entra_users "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/get_entra_id_users.py"
click node_auto_classify "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/auto_classify.py"
click node_lineage "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/create_lineage.py"
click node_glossary_sync "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/sync_glossary.py"
click node_orphaned "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/orphaned_asset.py"
click node_extract_sql "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Datamap_extractor_Public/datamap_extract_azure_sql.py"
click node_extract_fabric "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Datamap_extractor_Public/datamap_extract_fabric_notebook.py"
click node_schema "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Get_Asset_Schema/Get_Data_Asset_Schema.py"
click node_get_product "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Get_Data_Product/get_data_product.py"
click node_pii "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Add_PII_Label/Add_PII_Label.py"
click node_delete_assets "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Delete_Assets_Collection/delete_assets.py"
click node_inactive "https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Get_Inactive_Experts_Owners/get_inactive_owner_experts.py"

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_app,node_dashboard,node_asset_browse,node_type_browse,node_products,node_curation_portal,node_curate,node_selection,node_selection_panel toneBlue
class node_api,node_catalog_data,node_product_data,node_tag_ops,node_classification_ops,node_delete_class,node_delete_tag,node_owner_ops,node_entra_users,node_auto_classify,node_lineage,node_glossary_sync,node_orphaned,node_purview,node_sql_store,node_fabric_store toneAmber
class node_extract_sql,node_extract_fabric,node_schema,node_get_product toneMint
class node_pii,node_delete_assets,node_inactive toneRose
class node_governance_team,node_entra_graph toneIndigo
```

## Components

### Catalog interface

- [Utility app routes](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/App.tsx): `Microsoft_Purview_Utility/src/App.tsx`
- [Dashboard](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/Dashboard.tsx): `Microsoft_Purview_Utility/src/pages/Dashboard.tsx`
- [Asset browsing](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/BrowseAssets.tsx): `Microsoft_Purview_Utility/src/pages/BrowseAssets.tsx`
- [Type browsing](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/BrowseByAssetType.tsx): `Microsoft_Purview_Utility/src/pages/BrowseByAssetType.tsx`
- [Data products](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/DataProducts.tsx): `Microsoft_Purview_Utility/src/pages/DataProducts.tsx`
- [Curation portal view](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/CurationPortal.tsx): `Microsoft_Purview_Utility/src/pages/CurationPortal.tsx`
- [Bulk curation](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/pages/Curate.tsx): `Microsoft_Purview_Utility/src/pages/Curate.tsx`
- [Selected assets](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/contexts/SelectedAssetsContext.tsx): `Microsoft_Purview_Utility/src/contexts/SelectedAssetsContext.tsx`
- [Selection panel](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/src/components/catalog/SelectedAssetsPanel.tsx): `Microsoft_Purview_Utility/src/components/catalog/SelectedAssetsPanel.tsx`

### Curation services

- [Flask API](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/api_server.py): `Microsoft_Purview_Utility/backend/api_server.py`
- [Catalog retrieval](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/get_data.py): `Microsoft_Purview_Utility/backend/get_data.py`
- [Product retrieval](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/get_data_product.py): `Microsoft_Purview_Utility/backend/get_data_product.py`
- [Tag operations](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/add_tag.py): `Microsoft_Purview_Utility/backend/add_tag.py`
- [Classification operations](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/add_classificiation.py): `Microsoft_Purview_Utility/backend/add_classificiation.py`
- [Classification removal](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/delete_classification.py): `Microsoft_Purview_Utility/backend/delete_classification.py`
- [Tag removal](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/delete_tag.py): `Microsoft_Purview_Utility/backend/delete_tag.py`
- [Owner operations](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/add_owner.py): `Microsoft_Purview_Utility/backend/add_owner.py`
- [User lookup](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/get_entra_id_users.py): `Microsoft_Purview_Utility/backend/get_entra_id_users.py`
- [Auto suggestions](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/auto_classify.py): `Microsoft_Purview_Utility/backend/auto_classify.py`
- [Lineage discovery](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/create_lineage.py): `Microsoft_Purview_Utility/backend/create_lineage.py`
- [Glossary synchronization](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/sync_glossary.py): `Microsoft_Purview_Utility/backend/sync_glossary.py`
- [Orphan detection](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Utility/backend/orphaned_asset.py): `Microsoft_Purview_Utility/backend/orphaned_asset.py`

### Metadata extraction

- [SQL metadata export](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Datamap_extractor_Public/datamap_extract_azure_sql.py): `Microsoft_Purview_Datamap_extractor_Public/datamap_extract_azure_sql.py`
- [Fabric metadata export](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Datamap_extractor_Public/datamap_extract_fabric_notebook.py): `Microsoft_Purview_Datamap_extractor_Public/datamap_extract_fabric_notebook.py`
- [Asset schema retrieval](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Get_Asset_Schema/Get_Data_Asset_Schema.py): `Microsoft_Purview_Get_Asset_Schema/Get_Data_Asset_Schema.py`
- [Product export script](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Get_Data_Product/get_data_product.py): `Microsoft_Purview_Get_Data_Product/get_data_product.py`

### Governance scripts

- [PII labeling](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Add_PII_Label/Add_PII_Label.py): `Microsoft_Purview_Add_PII_Label/Add_PII_Label.py`
- [Collection asset deletion](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Delete_Assets_Collection/delete_assets.py): `Microsoft_Purview_Delete_Assets_Collection/delete_assets.py`
- [Inactive contact audit](https://github.com/ballipongala/microsoft-purview-unified-catalog/blob/main/Microsoft_Purview_Get_Inactive_Experts_Owners/get_inactive_owner_experts.py): `Microsoft_Purview_Get_Inactive_Experts_Owners/get_inactive_owner_experts.py`

### Other components

- **Governance team**
- **Purview catalog**
- **Entra ID / Graph**
- **Azure SQL**
- **Fabric Lakehouse**

## Connections

- Governance team → Utility app routes: uses
- Utility app routes → Dashboard: routes to (evidence: `Microsoft_Purview_Utility/src/App.tsx`)
- Utility app routes → Asset browsing: routes to (evidence: `Microsoft_Purview_Utility/src/App.tsx`)
- Utility app routes → Type browsing: routes to (evidence: `Microsoft_Purview_Utility/src/App.tsx`)
- Utility app routes → Data products: routes to (evidence: `Microsoft_Purview_Utility/src/App.tsx`)
- Utility app routes → Curation portal view: routes to (evidence: `Microsoft_Purview_Utility/src/App.tsx`)
- Utility app routes → Bulk curation: routes to (evidence: `Microsoft_Purview_Utility/src/App.tsx`)
- Utility app routes → Selection panel: renders (evidence: `Microsoft_Purview_Utility/src/App.tsx`)
- Utility app routes → Selected assets: provides state (evidence: `Microsoft_Purview_Utility/src/App.tsx`)
- Asset browsing → Selected assets: selects assets
- Bulk curation → Flask API: submits curation
- Flask API → Catalog retrieval: calls (evidence: `Microsoft_Purview_Utility/backend/api_server.py`)
- Flask API → Product retrieval: calls (evidence: `Microsoft_Purview_Utility/backend/api_server.py`)
- Flask API → Tag operations: calls (evidence: `Microsoft_Purview_Utility/backend/api_server.py`)
- Flask API → Classification operations: calls (evidence: `Microsoft_Purview_Utility/backend/api_server.py`)
- Flask API → Classification removal: calls (evidence: `Microsoft_Purview_Utility/backend/api_server.py`)
- Flask API → Tag removal: calls (evidence: `Microsoft_Purview_Utility/backend/api_server.py`)
- Flask API → Owner operations: calls (evidence: `Microsoft_Purview_Utility/backend/api_server.py`)
- Flask API → User lookup: calls (evidence: `Microsoft_Purview_Utility/backend/api_server.py`)
- Flask API → Auto suggestions: calls (evidence: `Microsoft_Purview_Utility/backend/api_server.py`)
- Flask API → Lineage discovery: calls (evidence: `Microsoft_Purview_Utility/backend/api_server.py`)
- Flask API → Glossary synchronization: calls (evidence: `Microsoft_Purview_Utility/backend/api_server.py`)
- Flask API → Orphan detection: dispatches
- Catalog retrieval → Purview catalog: reads catalog
- Tag operations → Purview catalog: updates tags
- Classification operations → Purview catalog: updates labels
- Owner operations → Purview catalog: updates contacts
- User lookup → Entra ID / Graph: looks up users
- Auto suggestions → Purview catalog: suggests labels
- Lineage discovery → Purview catalog: creates lineage
- Glossary synchronization → Purview catalog: syncs glossary
- SQL metadata export → Purview catalog: extracts metadata
- SQL metadata export → Azure SQL: exports metadata
- Fabric metadata export → Purview catalog: extracts metadata
- Fabric metadata export → Fabric Lakehouse: exports metadata
- Asset schema retrieval → Purview catalog: retrieves schema
- Product export script → Purview catalog: retrieves products
- PII labeling → Purview catalog: labels assets
- Collection asset deletion → Purview catalog: deletes assets
- Inactive contact audit → Purview catalog: audits contacts
- Inactive contact audit → Entra ID / Graph: checks contacts
- Governance team → Asset schema retrieval: requests schema
- Governance team → SQL metadata export: exports metadata
- Governance team → Fabric metadata export: exports metadata
- Governance team → PII labeling: automates labeling
- Governance team → Collection asset deletion: manages cleanup
- Governance team → Inactive contact audit: audits ownership
