# derek-hartman/powerknowbe4 architecture

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

- Interactive diagram: https://gitdiagram.com/derek-hartman/powerknowbe4
- Repository: https://github.com/derek-hartman/powerknowbe4

## Overview

PowerKnowBe4 is a PowerShell module whose public commands are named for retrieving KnowBe4 account, campaign, security-test, and user information. Those command families suggest the product’s user-to-result workflow, but the repository provides no README or source excerpts to verify invocation, API access, or data flow. The graph therefore maps the public command surface without asserting relationships between commands or an external service.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_account["Account"]
  node_account["Get account"]
  node_risk["Risk history"]
end

subgraph group_campaigns["Campaigns"]
  node_campaigns_all["List campaigns"]
  node_campaign["Get campaign"]
  node_last_campaign["Latest campaign"]
  node_campaign_test["Campaign test"]
end

subgraph group_tests["Security Tests"]
  node_tests_all["List tests"]
  node_test["Get test"]
  node_test_results_all["List test results"]
  node_test_result["Get test result"]
end

subgraph group_users["Users"]
  node_users_all["List users"]
  node_user["Get user"]
end

node_module["Module entry<br/>[PowerKnowBe4.psm1]"]

click node_module "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/PowerKnowBe4.psm1"
click node_account "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4Account.ps1"
click node_risk "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4AccountRiskHistory.ps1"
click node_campaigns_all "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4AllCampaigns.ps1"
click node_campaign "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4Campaign.ps1"
click node_last_campaign "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4LastCampaign.ps1"
click node_campaign_test "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4CampaignSecurityTest.ps1"
click node_tests_all "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4AllSecurityTest.ps1"
click node_test "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4SecurityTest.ps1"
click node_test_results_all "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4AllSecurityTestResults.ps1"
click node_test_result "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4SecurityTestResult.ps1"
click node_users_all "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4AllUsers.ps1"
click node_user "https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4User.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_account,node_risk toneBlue
class node_campaigns_all,node_campaign,node_last_campaign,node_campaign_test toneAmber
class node_tests_all,node_test,node_test_results_all,node_test_result toneMint
class node_users_all,node_user toneRose
class node_module toneTeal
```

## Components

### Account

- [Get account](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4Account.ps1): `1.0.0/Public/Get-KnowBe4Account.ps1`
- [Risk history](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4AccountRiskHistory.ps1): `1.0.0/Public/Get-KnowBe4AccountRiskHistory.ps1`

### Campaigns

- [List campaigns](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4AllCampaigns.ps1): `1.0.0/Public/Get-KnowBe4AllCampaigns.ps1`
- [Get campaign](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4Campaign.ps1): `1.0.0/Public/Get-KnowBe4Campaign.ps1`
- [Latest campaign](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4LastCampaign.ps1): `1.0.0/Public/Get-KnowBe4LastCampaign.ps1`
- [Campaign test](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4CampaignSecurityTest.ps1): `1.0.0/Public/Get-KnowBe4CampaignSecurityTest.ps1`

### Security Tests

- [List tests](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4AllSecurityTest.ps1): `1.0.0/Public/Get-KnowBe4AllSecurityTest.ps1`
- [Get test](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4SecurityTest.ps1): `1.0.0/Public/Get-KnowBe4SecurityTest.ps1`
- [List test results](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4AllSecurityTestResults.ps1): `1.0.0/Public/Get-KnowBe4AllSecurityTestResults.ps1`
- [Get test result](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4SecurityTestResult.ps1): `1.0.0/Public/Get-KnowBe4SecurityTestResult.ps1`

### Users

- [List users](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4AllUsers.ps1): `1.0.0/Public/Get-KnowBe4AllUsers.ps1`
- [Get user](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/Public/Get-KnowBe4User.ps1): `1.0.0/Public/Get-KnowBe4User.ps1`

### Other components

- [Module entry](https://github.com/derek-hartman/powerknowbe4/blob/main/1.0.0/PowerKnowBe4.psm1): `1.0.0/PowerKnowBe4.psm1`
