Skip to content
alirezarezvani avatar

Ms365 Tenant Manager

Microsoft 365 tenant administration that generates validated PowerShell for users, licenses, Conditional Access, and audits.

CCM score
68 of 100
skills.sh installs
826
GitHub stars
30.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Entra ID user lifecycle, Exchange Online, Teams, licensing, Conditional Access, and compliance reporting for Global Administrators
  • Includes 3 Python generators: tenant_setup.py for setup plans, user_management.py for create and offboard scripts, and powershell_generator.py for CA, audit, and license tasks
  • Enforces a validation gate: user creation scripts are generated only after every entry reports "is_valid": true
  • Designed for Global Administrators who need repeatable tenant setup, offboarding, and security baseline work in Microsoft 365

Install

$ npx -y skills add alirezarezvani/claude-skills --skill ms365-tenant-manager -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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)

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
DevOps & Cloud, Security
First seen
Jun 3, 2026

More from alirezarezvani/claude-skills

All 259

Similar to Ms365 Tenant Manager

More DevOps & Cloud