ms365-tenant-manager
Was er macht
Dieser Skill lässt den Agenten als Microsoft-365-Administrator für deine Organisation handeln. Er ist für IT-Administratoren gedacht, die Nutzer, Lizenzen und Sicherheitseinstellungen in Microsoft 365 verwalten.
Wann du ihn nutzt
- ✓Wenn du viele Nutzer anlegen oder Lizenzen in Microsoft 365 einrichten musst.
- ✓Wenn du die Sicherheits- und Anmelderegeln von Microsoft 365 prüfen willst.
- ✓Wenn du einen Compliance- oder Nutzungsbericht für deine Microsoft-365-Organisation brauchst.
Link zum Skill
https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/skills/ms365-tenant-manager/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Erstelle eine Sicherheitsprüfung unseres Microsoft-365-Mandanten und liste die Admin-Konten ohne MFA auf.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent plant die Einrichtung, verwaltet Nutzer in Massen und erstellt PowerShell-Befehle für die Änderungen. Außerdem kann er eine Sicherheitsprüfung über Microsoft Graph ausführen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Microsoft 365 Tenant Manager
Expert guidance and automation for Microsoft 365 Global Administrators managing tenant setup, user lifecycle, security policies, and organizational optimization.
Quick Start
Run a Security Audit
Connect-MgGraph -Scopes "Directory.Read.All","Policy.Read.All","AuditLog.Read.All"
Get-MgSubscribedSku | Select-Object SkuPartNumber, ConsumedUnits, @{N="Total";E={$_.PrepaidUnits.Enabled}}
Get-MgPolicyAuthorizationPolicy | Select-Object AllowInvitesFrom, DefaultUserRolePermissions
Bulk Provision Users from CSV
# CSV columns: DisplayName, UserPrincipalName, Department, LicenseSku
Import-Csv .\new_users.csv | ForEach-Object {
$passwordProfile = @{ Password = (New-Guid).ToString().Substring(0,16) + "!"; ForceChangePasswordNextSignIn = $true }
New-MgUser -DisplayName $_.DisplayName -UserPrincipalName $_.UserPrincipalName `
-Department $_.Department -AccountEnabled -PasswordProfile $passwordProfile
}
Create a Conditional Access Policy (MFA for Admins)
$adminRoles = (Get-MgDirectoryRole | Where-Object { $_.DisplayName -match "Admin" }).Id
$policy = @{
DisplayName = "Require MFA for Admins"
State = "enabledForReportingButNotEnforced" # Start in report-only mode
Conditions = @{ Users = @{ IncludeRoles = $adminRoles } }
GrantControls = @{ Operator = "OR"; BuiltInControls = @("mfa") }
}
New-MgIdentityConditionalAccessPolicy -BodyParameter $policy
Bundled Python Generators
Three stdlib tools generate the PowerShell artifacts deterministically — prefer them over hand-writing scripts for bulk/repeatable work. Sample input: sample_input.json; expected shape: expected_output.json.
# Tenant setup: checklist + DNS records + license plan (JSON), or the full setup script
python3 scripts/tenant_setup.py --config sample_input.json --format json -o tenant_plan.json
python3 scripts/tenant_setup.py --config sample_input.json --format powershell -o tenant_setup.ps1
# User lifecycle: validate first, then generate creation/offboarding scripts
python3 scripts/user_management.py --domain acme.com --action validate --users users.json
python3 scripts/user_management.py --domain acme.com --action create --users users.json -o create_users.ps1
python3 scripts/user_management.py --domain acme.com --action offboard --user-email jane@acme.com -o offboard.ps1
# Admin scripts: CA policy / security audit / bulk licensing
python3 scripts/powershell_generator.py --tenant-domain acme.com --task conditional-access --policy-config policy.json -o ca_policy.ps1
python3 scripts/powershell_generator.py --tenant-domain acme.com --task security-audit -o audit.ps1
python3 scripts/powershell_generator.py --tenant-domain acme.com --task bulk-license --users-csv users.csv --license-sku ENTERPRISEPACK -o licenses.ps1
Gate: for user creation, run --action validate first and require every entry to report "is_valid": true before generating the creation script. Review every generated .ps1 against the workflows below before running it in the tenant.
Workflows
Workflow 1: New Tenant Setup
Step 1: Generate Setup Checklist
Run python3 scripts/tenant_setup.py --config tenant.json --format json and work through setup_checklist phase by phase; dns_records feeds Step 2 and license_recommendations feeds the licensing workflow.
Confirm prerequisites before provisioning:
- Global Admin account created and secured with MFA
- Custom domain purchased and accessible for DNS edits
- License SKUs confirmed (E3 vs E5 feature requirements noted)
Step 2: Configure and Verify DNS Records
# After adding the domain in the M365 admin center, verify propagation before proceeding
$domain = "company.com"
Resolve-DnsName -Name "_msdcs.$domain" -Type NS -ErrorAction SilentlyContinue
# Also run from a shell prompt:
# nslookup -type=MX company.com
# nslookup -type=TXT company.com # confirm SPF record
Wait for DNS propagation (up to 48 h) before bulk user creation.
Step 3: Apply Security Baseline
# Disable legacy authentication (blocks Basic Auth protocols)
$policy = @{
DisplayName = "Block Legacy Authentication"
State = "enabled"
Conditions = @{ ClientAppTypes = @("exchangeActiveSync","other") }
GrantControls = @{ Operator = "OR"; BuiltInControls = @("block") }
}
New-MgIdentityConditionalAccessPolicy -BodyParameter $policy
# Enable unif
Häufige Fragen
Braucht er PowerShell?
Ja. Der Skill erstellt PowerShell-Skripte und zeigt, wie man sich mit Microsoft Graph verbindet.
Kann er viele Nutzer auf einmal anlegen?
Ja. Der Skill enthält ein Beispiel, das Nutzer aus einer CSV-Datei anlegt.
Richtet er Anmelderegeln ein?
Ja. Er enthält ein Beispiel für eine Conditional-Access-Richtlinie, die MFA für Admins verlangt und zuerst im Nur-Bericht-Modus startet.
Details
Originalbeschreibung des Autors
Use for Microsoft 365 tenant administration (Entra ID users, Exchange Online, Teams, licenses, Conditional Access, compliance reports). Plans setup with tenant_setup.py, bulk-manages users with user_management.py and generates PowerShell with powershell_generator.py.
Beliebtheit
- GitHub-Sterne
- 29k
- Platz im Ranking
- #9501
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
agent-launcher-orchestrator
29kBegleitet dich Schritt für Schritt von einer klaren Idee zu einem lauffähigen Claude Managed Agent in deinem eigenen Konto, inklusive Tests und Zeitplan.
grade-iterate
29kLässt die Arbeit eines verwalteten KI-Agenten anhand eines Bewertungsrasters prüfen und in festen Runden verbessern, ohne endlose Schleifen.
interview
29kLässt deinen Agenten dich zu einer KI-Agenten-Idee befragen und deine Antworten in einen einfachen Bauplan verwandeln, bevor etwas gestartet wird.
run-without-you
29kRichtet einen verwalteten KI-Agenten für Zeitpläne oder Ereignisse ein und prüft vor dem Start die Cron-Zeiten, damit nichts schiefläuft.
Ähnliche Skills
knowledge-automation
394kHilft deinem Agenten, einen wiederkehrenden Auftrag einzurichten, der regelmäßig neue Inhalte in deinen Knowledge-Vault bringt, und danach zu prüfen, ob er läuft.
knowledge-source-ingest
394kHilft deinem Agenten, den Knowledge-Vault mit neuen Einträgen aus Chat-Kanälen, Feeds oder Postfächern aktuell zu halten, ohne bereits Vorhandenes erneut hinzuzufügen.
benchmark
280kHilft deinem Agenten, die Geschwindigkeit und Performance von Code zu messen. Nützlich, um Tempo sicherzustellen und Bremsen zu finden.