MCPInstall

ms365-tenant-manager

Comprehensive Microsoft 365 tenant administration skill for setup, configuration, user management, security policies, and organizational structure optimization for Global Administrators

Installs
57
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/alirezarezvani/claude-code-skill-factory --skill ms365-tenant-manager
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads ms365-tenant-manager automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Microsoft 365 Tenant Manager

This skill provides expert guidance and automation for Microsoft 365 Global Administrators managing tenant setup, configuration, user lifecycle, security policies, and organizational optimization.

Capabilities

  • Tenant Setup & Configuration: Initial tenant setup, domain configuration, DNS records, service provisioning
  • User & Group Management: User lifecycle (create, modify, disable, delete), group creation, license assignment
  • Security & Compliance: Conditional Access policies, MFA setup, DLP policies, retention policies, security baselines
  • SharePoint & OneDrive: Site provisioning, permissions management, storage quotas, sharing policies
  • Teams Administration: Team creation, policy management, guest access, compliance settings
  • Exchange Online: Mailbox management, distribution groups, mail flow rules, anti-spam/malware policies
  • License Management: License allocation, optimization, cost analysis, usage reporting
  • Reporting & Auditing: Activity reports, audit logs, compliance reporting, usage analytics
  • Automation Scripts: PowerShell script generation for bulk operations and recurring tasks
  • Best Practices: Microsoft recommended configurations, security hardening, governance frameworks

Input Requirements

Tenant management tasks require:

  • Action type: setup, configure, create, modify, delete, report, audit
  • Resource details: User info, group names, policy settings, service configurations
  • Organizational context: Company size, industry, compliance requirements (GDPR, HIPAA, etc.)
  • Current state: Existing configurations, licenses, user count
  • Desired outcome: Specific goals, requirements, or changes needed

Formats accepted:

  • Text descriptions of administrative tasks
  • JSON with structured configuration data
  • CSV for bulk user/group operations
  • Existing PowerShell scripts to review or modify

Output Formats

Results include:

  • Step-by-step instructions: Detailed guidance for manual configuration via Admin Center
  • PowerShell scripts: Ready-to-use scripts for automation (with safety checks)
  • Configuration recommendations: Security and governance best practices
  • Validation checklists: Pre/post-implementation verification steps
  • Documentation: Markdown documentation of changes and configurations
  • Rollback procedures: Instructions to undo changes if needed
  • Compliance reports: Security posture and compliance status

How to Use

"Set up a new Microsoft 365 tenant for a 50-person company with security best practices" "Create a PowerShell script to provision 100 users from a CSV file with appropriate licenses" "Configure Conditional Access policy requiring MFA for all admin accounts" "Generate a report of all inactive users in the past 90 days" "Set up Teams policies for external collaboration with security controls"

Scripts

  • tenant_setup.py: Initial tenant configuration and service provisioning automation
  • user_management.py: User lifecycle operations and bulk provisioning
  • security_policies.py: Security policy configuration and compliance checks
  • reporting.py: Analytics, audit logs, and compliance reporting
  • powershell_generator.py: Generates PowerShell scripts for Microsoft Graph API and admin modules

Best Practices

Tenant Setup

  1. Enable MFA first - Before adding users, enforce multi-factor authentication
  2. Configure named locations - Define trusted IP ranges for Conditional Access
  3. Set up privileged access - Use separate admin accounts, enable PIM (Privileged Identity Management)
  4. Domain verification - Add and verify custom domains before bulk user creation
  5. Baseline security - Apply Microsoft Secure Score recommendations immediately

User Management

  1. License assignment - Use group-based licensing for scalability
  2. Naming conventions - Establish consistent user principal names (UPNs) and display names
  3. Lifecycle management - Implement automated onboarding/offboarding workflows
  4. Guest access - Enable only when necessary, set expiration policies
  5. Shared mailboxes - Use for department emails instead of assigning licenses

Security & Compliance

  1. Zero Trust approach - Verify explicitly, use least privilege access, assume breach
  2. Conditional Access - Start with report-only mode, then enforce gradually
  3. Data Loss Prevention - Define sensitive information types, test policies before enforcement
  4. Retention policies - Balance compliance requirements with storage costs
  5. Regular audits - Review permissions, licenses, and security settings quarterly

SharePoint & Teams

  1. Site provisioning - Use templates and governance policies
  2. External sharing - Restrict to specific domains, require authentication
  3. Storage management - Set quotas, enable auto-cleanup of old content
  4. Teams templates - Create standardized team structures for consistency
  5. Guest lifecycle - Set expiration and regular recertification

PowerShell Automation

  1. Use Microsoft Graph - Prefer Graph API over legacy MSOnline modules
  2. Error handling - Include try/catch blocks and validation checks
  3. Dry-run mode - Test scripts with -WhatIf before executing
  4. Logging - Capture all operations for audit trails
  5. Credential management - Use Azure Key Vault or managed identities, never hardcode

Common Tasks

Initial Tenant Setup

  • Configure company branding
  • Add and verify custom domains
  • Set up DNS records (MX, SPF, DKIM, DMARC)
  • Enable required services (Teams, SharePoint, Exchange)
  • Create organizational structure (departments, locations)
  • Set default user settings and policies

User Onboarding

  • Create user accounts (single or bulk)
  • Assign appropriate licenses
  • Add to security and distribution groups
  • Configure mailbox and OneDrive
  • Set up multi-factor authentication
  • Provision Teams access

Security Hardening

  • Enable Security Defaults or Conditional Access
  • Configure MFA enforcement
  • Set up admin role assignments
  • Enable audit logging
  • Configure anti-phishing policies
  • Set up DLP and retention policies

Reporting & Monitoring

  • Active users and license utilization
  • Security incidents and alerts
  • Mailbox usage and storage
  • SharePoint site activity
  • Teams usage and adoption
  • Compliance and audit logs

Limitations

  • Permissions required: Global Administrator or specific role-based permissions
  • API rate limits: Microsoft Graph API has throttling limits for bulk operations
  • License dependencies: Some features require specific license tiers (E3, E5)
  • Delegation constraints: Some tasks cannot be delegated to service principals
  • Regional variations: Compliance features may vary by geographic region
  • Hybrid scenarios: On-premises Active Directory integration requires additional configuration
  • Third-party integrations: External apps may require separate authentication and permissions
  • PowerShell prerequisites: Requires appropriate modules installed (Microsoft.Graph, ExchangeOnlineManagement, etc.)

Security Considerations

Authentication

  • Never store credentials in scripts or configuration files
  • Use Azure Key Vault for credential management
  • Implement certificate-based authentication for automation
  • Enable Conditional Access for admin accounts
  • Use Privileged Identity Management (PIM) for JIT access

Authorization

  • Follow principle of least privilege
  • Use custom admin roles instead of Global Admin when possible
  • Regularly review and audit admin role assignments
  • Enable PIM for temporary elevated access
  • Separate user accounts from admin accounts

Compliance

  • Enable audit logging for all activities
  • Retain logs according to compliance requirements
  • Configure data residency for regulated industries
  • Implement information barriers where needed
  • Regular compliance assessments and reporting

PowerShell Modules Required

To execute generated scripts, ensure these modules are installed:

  • Microsoft.Graph (recommended, modern Graph API)
  • ExchangeOnlineManagement (Exchange Online management)
  • MicrosoftTeams (Teams administration)
  • SharePointPnPPowerShellOnline (SharePoint management)
  • AzureAD or AzureADPreview (Azure AD management - being deprecated)
  • MSOnline (Legacy, being deprecated - avoid when possible)

Updates & Maintenance

  • Microsoft 365 features and APIs evolve rapidly
  • Review Microsoft 365 Roadmap regularly for upcoming changes
  • Test scripts in non-production tenant before production deployment
  • Subscribe to Microsoft 365 Admin Center message center for updates
  • Keep PowerShell modules updated to latest versions
  • Regular security baseline reviews (quarterly recommended)

Helpful Resources

FAQ

What does the ms365-tenant-manager skill do?

Comprehensive Microsoft 365 tenant administration skill for setup, configuration, user management, security policies, and organizational structure optimization for Global Administrators

How do I install ms365-tenant-manager?

Run npx skills add https://github.com/alirezarezvani/claude-code-skill-factory --skill ms365-tenant-manager in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ms365-tenant-manager/ (personal) or .claude/skills/ms365-tenant-manager/ (project).

Which AI agents can use ms365-tenant-manager?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is ms365-tenant-manager safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains ms365-tenant-manager?

It is published by alirezarezvani in alirezarezvani/claude-code-skill-factory. It has 57 recorded installs.

More from alirezarezvani/claude-code-skill-factory

View all →

scrum-master-agent

alirezarezvani/claude-code-skill-factory

Open the skill to read its SKILL.md instructions.

452 installs

content-trend-researcher

alirezarezvani/claude-code-skill-factory

Open the skill to read its SKILL.md instructions.

138 installs

aws-solution-architect

alirezarezvani/claude-code-skill-factory

Expert AWS solution architecture for startups focusing on serverless, scalable, and cost-effective cloud infrastructure with modern DevOps practices and infrastructure-as-code

DevOps & Cloud91 installs

claude-md-enhancer

alirezarezvani/claude-code-skill-factory

Analyzes, generates, and enhances CLAUDE.md files for any project type using best practices, modular architecture support, and tech stack customization. Use when setting up new projects, improving existing CLAUDE.md files, or establishing AI-assisted development standards.

social-media-analyzer

alirezarezvani/claude-code-skill-factory

Open the skill to read its SKILL.md instructions.

Marketing & SEO74 installs

prompt-factory

alirezarezvani/claude-code-skill-factory

Open the skill to read its SKILL.md instructions.

AI & Agents71 installs

Popular security skills

View category →

azure-compliance

microsoft/azure-skills

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

OfficialSecurity567K installs

minimal-run-and-audit

lllllllama/rigorpilot-skills

Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized reprooutputs/ files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.

Security477.4K installs

seo-audit

coreyhaines31/marketingskills

When the user wants to audit, review, or diagnose SEO issues on their site. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," "SEO health check," "my traffic dropped," "lost rankings," "not showing up in Google," "site isn't ranking," "Google update hit me," "page speed," "core web vitals," "crawl errors," "indexing issues," "stuck on page 2," "striking distance keywords," "title tag rewrite," "low CTR," "local SEO," "Google Business Profile," or "map pack." Use this even if the user just says something vague like "my SEO is bad" or "help with SEO" — start with an audit. For building pages at scale to target keywords, see programmatic-seo. For adding structured data, see schema. For AI search optimization, see ai-seo.

Security238.7K installs

firebase-security-rules-auditor

firebase/agent-skills

Audits Firebase (Firestore, Cloud Storage) security rules for vulnerabilities, privilege escalation, role bypasses, create vs update inconsistencies, resource exhaustion, type safety, size limits, and hasOnly ownership checks. Use when auditing/reviewing rules, running red-team rule assessments, or scoring against auditor checklists. Don't use for Firebase CLI (login, deploy), Auth, Crashlytics, Remote Config, or database queries.

OfficialSecurity139.1K installs

audit

pbakaus/impeccable

Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns. Generates a scored report with P0-P3 severity ratings and actionable plan. Use when the user wants an accessibility check, performance audit, or technical quality review.

Security81.9K installs

competitors

coreyhaines31/marketingskills

When the user wants to create competitor comparison or alternative pages for SEO and buyer-facing use. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'competitor teardown,' 'audit our competitor pages,' 'are our comparison pages out of date,' or 'competitive asset audit.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. For auditing existing claims (not researching competitors from scratch, which is competitor-profiling; not technical SEO on these pages, which is seo-audit), use the asset audit here. For internal battle cards and sales-specific competitor docs, see sales-enablement.

Security79.3K installs