Agent skill · software engineering · alirezarezvani

ms365-tenant-manager

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.

Why this skill is useful

Adds multiple executable PowerShell scripts for tenant management and automation that extend the AI's capabilities in Microsoft 365 administration.

What it needs

Requires python3 installed locally. Requires microsoft-365 account access. About 5k tokens when loaded. Last updated 2026-08-05. 23,939 stars on the source repository.

What this skill does

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 Bulk Provision Users from CSV Create a Conditional Access Policy (MFA for Admins) Bundled Python Generators Three stdlib tools generate the PowerShell artifacts deterministically — prefer them over hand-writing scripts for bulk/repeatable work. Sample input: sampleinput.json; expected shape: expectedoutput.json. Gate: for user creation, run --action validate first and require every entry to report "isvalid": 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/tenantsetup.py --config tenant.json --format json and work through setupchecklist phase by phase; dnsrecords feeds Step 2 and licenserecommendations 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 Wait for DNS propagation (up to 48 h) before bulk user creation. Step 3: Apply Security Baseline Step 4: Provision Users Validation: Spot-check 3–5 accounts in the M365 admin portal; confirm licenses show "Active." --- Workflow 2: Security Hardening Step 1: Run Security Audit Step 2: Create MFA Policy (report-only first) Validation: After 48 h, review Sign-in logs in Entra ID; confirm expected users would be challenged, then change State to "enabled". …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills alirezarezvani/ms365-tenant-manager--ba6497

View the source on GitHub

Browse the @skills marketplace