borghei/ms365-tenant-manager
> Microsoft 365 tenant administration for Global Administrators. Use for tenant setup, Azure AD user management, Exchange Online and Teams config, Conditional Access policies, license management, and PowerShell bulk-operation scripts.
npx skills add https://github.com/borghei/Claude-Skills --skill ms365-tenant-manager
The agent generates production-ready PowerShell scripts for M365 tenant setup, bulk user provisioning, Conditional Access policies, security audits, and license management. It automates user lifecycle operations (onboarding, offboarding), recommends license SKUs by role, and produces 7-category security audit reports via Microsoft Graph.
-WhatIf support.Before generating scripts, confirm these inputs. If any is unknown or vague, ASK — do not assume:
tenant_setup.py vs powershell_generator.py vs user_management.py)Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.
The scripts are importable Python modules (instantiate a class, not a CLI). Full API, parameters, and worked examples are in references/tools-and-workflows.md.
| Tool | Purpose | Entry point |
|------|---------|-------------|
| powershell_generator.py | Security audit, Conditional Access, and bulk license scripts | from powershell_generator import PowerShellScriptGenerator |
| user_management.py | Provisioning, offboarding, license/group recommendations, validation | from user_management import UserLifecycleManager |
| tenant_setup.py | Setup checklist, DNS records, setup script, license distribution | from tenant_setup import TenantSetupManager |
Load the reference that matches the task — keep this file lean and pull detail on demand:
What This Skill Covers
-WhatIf support, and Microsoft Graph best practicesWhat This Skill Does NOT Cover
senior-devops skill and Microsoft AD Connect toolingsenior-secops for device security posture| Skill | Integration | Data Flow |
|-------|-------------|-----------|
| senior-secops | Security audit findings feed into SecOps incident response and threat remediation workflows | Audit CSV reports (MFA status, admin roles, inactive users) → SecOps triage and hardening actions |
| senior-devops | Tenant setup scripts integrate with infrastructure-as-code pipelines for repeatable deployments | Generated PowerShell scripts → CI/CD pipeline execution → tenant configuration state |
| senior-architect | License distribution recommendations and tenant topology inform enterprise architecture decisions | License cost analysis and user count projections → architecture capacity planning |
| code-reviewer | Generated PowerShell scripts can be reviewed for security anti-patterns and credential handling | PowerShell script output → code review for hardcoded secrets, missing error handling |
| aws-solution-architect | Multi-cloud identity federation between Azure AD and AWS IAM for organizations using both platforms | Azure AD tenant configuration → cross-cloud SSO and role mapping |
| senior-security | Conditional Access policies and MFA enforcement align with broader organizational security posture | CA policy configurations and security audit results → security policy compliance validation |
Take borghei/ms365-tenant-manager from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.