К основному содержанию
скилл CX Codex

ms365-tenant-manager · alirezarezvani/claude-code-skill-factory — скилл для Claude Code: настройка Microsoft 365

Скилл ms365-tenant-manager для глобальных администраторов Microsoft 365: настройка тенанта, управление пользователями, политики безопасности и автоматизация через PowerShell.

MIT ★ 907 обновлён 2025-11-12

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add alirezarezvani/claude-code-skill-factory --skill ms365-tenant-manager -a claude-code
Открыть на GitHub

Что делает ms365-tenant-manager

Скилл помогает администраторам настроить тенант Microsoft 365 с нуля, управлять пользователями и группами, назначать лицензии и применять политики безопасности. Генерирует PowerShell-скрипты для массовых операций — создания пользователей из CSV, настройки Conditional Access, проверки журналов аудита. Умеет настраивать SharePoint, Teams, Exchange Online, включать MFA, создавать DLP-политики и строить отчёты по активности.

Внутри пять скриптов: tenant_setup.py для первичной настройки, user_management.py для жизненного цикла пользователей, security_policies.py для политик, reporting.py для аналитики и powershell_generator.py для генерации команд Microsoft Graph API. Требуются права Global Administrator или специфичные роли, а для части функций — лицензии E3 или E5. Microsoft Graph API имеет лимиты на частоту запросов при массовых операциях.

Скилл даёт пошаговые инструкции для ручной настройки через Admin Center, готовые PowerShell-скрипты с проверками безопасности, чеклисты валидации и процедуры отката изменений.

Какие задачи решает

  • настроить новый тенант Microsoft 365 с базовыми политиками безопасности
  • создать 100 пользователей из CSV с лицензиями и группами
  • включить MFA для всех администраторов через Conditional Access
  • получить отчёт по неактивным пользователям за 90 дней
  • сгенерировать PowerShell-скрипт для массового назначения лицензий

Примеры запросов агенту

  • Настрой новый тенант Microsoft 365 для компании на 50 человек с рекомендациями по безопасности
  • Создай PowerShell-скрипт для загрузки пользователей из users.csv с лицензиями E3
  • Включи Conditional Access: MFA для всех учётных записей администраторов

Как установить ms365-tenant-manager

1Через Skills CLI (Vercel)

npx skills add alirezarezvani/claude-code-skill-factory --skill ms365-tenant-manager -a claude-code

2Вручную: положить файлы

~/.claude/skills/ms365-tenant-manager/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/ms365-tenant-manager/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о ms365-tenant-manager

Как установить ms365-tenant-manager в Claude Code?

Выполни npx skills add alirezarezvani/claude-code-skill-factory --skill ms365-tenant-manager -a claude-code, затем открой ~/.claude/skills/ms365-tenant-manager/SKILL.md.

Что делает ms365-tenant-manager?

Скилл автоматизирует администрирование Microsoft 365: настройку тенанта, управление пользователями и лицензиями, настройку политик безопасности, генерацию PowerShell-скриптов для массовых операций и построение отчётов по активности.

Какие права нужны для работы скилла?

Требуются права Global Administrator или специфичные роли для конкретных задач. Для части функций (например, Privileged Identity Management) нужны лицензии E3 или E5.

Исходный текст

SKILL.md · MIT
---
name: ms365-tenant-manager
description: Comprehensive Microsoft 365 tenant administration skill for setup, configuration, user management, security policies, and organizational structure optimization for Global Administrators
---

# 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

- **Microsoft 365 Admin Center**: https://admin.microsoft.com
- **Microsoft Graph Explorer**: https://developer.microsoft.com/graph/graph-explorer
- **PowerShell Gallery**: https://www.powershellgallery.com
- **Microsoft Secure Score**: Security posture assessment in Admin Center
- **Microsoft 365 Compliance Center**: https://compliance.microsoft.com
- **Azure AD Conditional Access**: Identity and access management policies

© alirezarezvani · MIT · alirezarezvani/claude-code-skill-factory

Похожие скиллы

Все скиллы по теме «Облака: AWS, Azure, GCP» →

Сначала — ms365-tenant-manager от других авторов.

ms365-tenant-manager Alireza Rezvani Скилл ms365-tenant-manager помогает Global Administrator настраивать Microsoft 365, управлять пользователями, лицензиями, Exchange Online, Teams и политиками безопасности. CX Codex +1 783установок ms365-tenant-manager borghei Скилл ms365-tenant-manager пишет PowerShell-скрипты для администратора Microsoft 365: первоначальная настройка тенанта, заведение и увольнение пользователей, Conditional Access, аудит. CX Codex +1 127установок mcp-deploy-manage-agents официальный github Скилл mcp-deploy-manage-agents для GitHub Copilot помогает развёртывать MCP-агентов в Microsoft 365 и управлять доступом к ним. Включается при настройке публикации, назначений и проверок безопасности. CX Codex +1 8 800установок azure-dedicated-hsm MicrosoftDocs Даёт агенту карту знаний по Azure Dedicated HSM: размеры кластера, сеть, защищённая конфигурация и миграция на Cloud HSM, со ссылками на документацию Microsoft. CX Codex +1 162установок PnP PowerShell pnp Позволяет агенту выполнять команды PnP PowerShell и собирать из них скрипты для SharePoint Online, Teams, Entra ID и других сервисов Microsoft 365. CX Codex +1 ★ 10звёзд репо Microsoft Exchange Online MCP Servosity MCP-сервер Microsoft Exchange Online MCP для Claude Code и Codex помогает управлять тенантами Exchange Online. Автоматизирует аудит пересылки писем, проверку EWS, изоляцию почты и офбординг без ручных сессий PowerShell. CX Codex +1 ★ 87звёзд репо entra-agent-user официальный github Скилл entra-agent-user проводит агента через создание agent user в Microsoft Entra ID, чтобы он работал как цифровой сотрудник с почтой и Teams. CX Codex +1 8 600установок CIPP WYRE-AI Даёт ИИ-ассистенту доступ к CIPP: тенанты, пользователи, почта, политики и лицензии Microsoft 365 в одном интерфейсе. CX Codex +1 ★ 14звёзд репо

Из того же набора36

Весь набор →
codex-cli-bridge Скилл codex-cli-bridge для Claude Code связывает его с Codex CLI: создаёт AGENTS.md по CLAUDE.md и запускает задачи через Codex. CX Codex +1 ★ 907звёзд репо prompts-guide Субагент prompts-guide помогает собрать промпт для любой модели через скилл prompt-factory: выбрать из 69 пресетов или собрать кастомный за 5–7 вопросов. CX Codex ★ 907звёзд репо codex-exec Команда codex-exec запускает команды Codex CLI прямо из сессии Claude Code. Подставляет нужный режим песочницы, флаги автоматизации и подходящую модель. CX Codex +1 ★ 907звёзд репо hooks-guide Субагент hooks-guide помогает спроектировать хук Claude Code через вопросы о событии, условии запуска и действии. Он пригодится, если нужно автоматизировать шаги рабочего процесса. CX Codex ★ 907звёзд репо agents-guide Субагент agents-guide для Claude Code задаёт несколько вопросов и создаёт готовый .md-файл с YAML-шапкой и системным промптом для настройки субагента. CX Codex ★ 907звёзд репо tdd-guide Скилл tdd-guide для Claude Code создаёт тесты по требованиям и коду, анализирует покрытие и ведёт по циклу Red-Green-Refactor. Находит непротестированные сценарии. CX Codex +1 ★ 907звёзд репо hook-factory Скилл hook-factory для создания готовых к боевому использованию хуков через интерактивный опрос или выбор шаблона. Охватывает 10 шаблонов на 7 типов событий с автоустановкой и проверкой безопасности. CX Codex +1 ★ 907звёзд репо build-hook Команда build-hook для Claude Code пошагово создаёт хуки автоматизации через короткий опрос и проверяет конфиг на ошибки. CX Codex +1 ★ 907звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой