[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMGN54Y5KGGAPNF7RCB4E1":3,"skill-same:01M7AMGN54Y5KGGAPNF7RCB4E1":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7AMGN54Y5KGGAPNF7RCB4E1","ms365-tenant-manager",null,"Microsoft 365 tenant administration for Global Administrators. Automate M365 tenant setup, Office 365 admin tasks, Azure AD user management, Exchange Online configuration, Teams administration, and security policies. Generate PowerShell scripts for bulk operations, Conditional Access policies, license management, and compliance reporting. Use for M365 tenant manager, Office 365 admin, Azure AD users, Global Administrator, tenant configuration, or Microsoft 365 automation.","Cyrilthetecchieee\u002Fcyril-code-","Cyrilthetecchieee","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219787998?v=4","01M7AF0MMMKRAA0H61XMJPV92H","Julian Cyril D ","01M7AF0MQ10AVG6QJQ1C2BC0F5",2,"MIT","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fskills\u002Fms365-tenant-manager\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"ms365-tenant-manager\"\ndescription: Microsoft 365 tenant administration for Global Administrators. Automate M365 tenant setup, Office 365 admin tasks, Azure AD user management, Exchange Online configuration, Teams administration, and security policies. Generate PowerShell scripts for bulk operations, Conditional Access policies, license management, and compliance reporting. Use for M365 tenant manager, Office 365 admin, Azure AD users, Global Administrator, tenant configuration, or Microsoft 365 automation.\n---\n\n# Microsoft 365 Tenant Manager\n\nExpert guidance and automation for Microsoft 365 Global Administrators managing tenant setup, user lifecycle, security policies, and organizational optimization.\n\n---\n\n## Quick Start\n\n### Run a Security Audit\n\n```powershell\nConnect-MgGraph -Scopes \"Directory.Read.All\",\"Policy.Read.All\",\"AuditLog.Read.All\"\nGet-MgSubscribedSku | Select-Object SkuPartNumber, ConsumedUnits, @{N=\"Total\";E={$_.PrepaidUnits.Enabled}}\nGet-MgPolicyAuthorizationPolicy | Select-Object AllowInvitesFrom, DefaultUserRolePermissions\n```\n\n### Bulk Provision Users from CSV\n\n```powershell\n# CSV columns: DisplayName, UserPrincipalName, Department, LicenseSku\nImport-Csv .\\new_users.csv | ForEach-Object {\n    $passwordProfile = @{ Password = (New-Guid).ToString().Substring(0,16) + \"!\"; ForceChangePasswordNextSignIn = $true }\n    New-MgUser -DisplayName $_.DisplayName -UserPrincipalName $_.UserPrincipalName `\n               -Department $_.Department -AccountEnabled -PasswordProfile $passwordProfile\n}\n```\n\n### Create a Conditional Access Policy (MFA for Admins)\n\n```powershell\n$adminRoles = (Get-MgDirectoryRole | Where-Object { $_.DisplayName -match \"Admin\" }).Id\n$policy = @{\n    DisplayName = \"Require MFA for Admins\"\n    State = \"enabledForReportingButNotEnforced\"   # Start in report-only mode\n    Conditions = @{ Users = @{ IncludeRoles = $adminRoles } }\n    GrantControls = @{ Operator = \"OR\"; BuiltInControls = @(\"mfa\") }\n}\nNew-MgIdentityConditionalAccessPolicy -BodyParameter $policy\n```\n\n### Bundled Python Generators\n\nThree stdlib tools generate the PowerShell artifacts deterministically — prefer them over hand-writing scripts for bulk\u002Frepeatable work. Sample input: `sample_input.json`; expected shape: `expected_output.json`.\n\n```bash\n# Tenant setup: checklist + DNS records + license plan (JSON), or the full setup script\npython3 scripts\u002Ftenant_setup.py --config sample_input.json --format json -o tenant_plan.json\npython3 scripts\u002Ftenant_setup.py --config sample_input.json --format powershell -o tenant_setup.ps1\n\n# User lifecycle: validate first, then generate creation\u002Foffboarding scripts\npython3 scripts\u002Fuser_management.py --domain acme.com --action validate --users users.json\npython3 scripts\u002Fuser_management.py --domain acme.com --action create --users users.json -o create_users.ps1\npython3 scripts\u002Fuser_management.py --domain acme.com --action offboard --user-email jane@acme.com -o offboard.ps1\n\n# Admin scripts: CA policy \u002F security audit \u002F bulk licensing\npython3 scripts\u002Fpowershell_generator.py --tenant-domain acme.com --task conditional-access --policy-config policy.json -o ca_policy.ps1\npython3 scripts\u002Fpowershell_generator.py --tenant-domain acme.com --task security-audit -o audit.ps1\npython3 scripts\u002Fpowershell_generator.py --tenant-domain acme.com --task bulk-license --users-csv users.csv --license-sku ENTERPRISEPACK -o licenses.ps1\n```\n\n**Gate:** for user creation, run `--action validate` first and require every entry to report `\"is_valid\": true` before generating the creation script. Review every generated `.ps1` against the workflows below before running it in the tenant.\n\n---\n\n## Workflows\n\n### Workflow 1: New Tenant Setup\n\n**Step 1: Generate Setup Checklist**\n\nRun `python3 scripts\u002Ftenant_setup.py --config tenant.json --format json` and work through `setup_checklist` phase by phase; `dns_records` feeds Step 2 and `license_recommendations` feeds the licensing workflow.\n\nConfirm prerequisites before provisioning:\n- Global Admin account created and secured with MFA\n- Custom domain purchased and accessible for DNS edits\n- License SKUs confirmed (E3 vs E5 feature requirements noted)\n\n**Step 2: Configure and Verify DNS Records**\n\n```powershell\n# After adding the domain in the M365 admin center, verify propagation before proceeding\n$domain = \"company.com\"\nResolve-DnsName -Name \"_msdcs.$domain\" -Type NS -ErrorAction SilentlyContinue\n# Also run from a shell prompt:\n# nslookup -type=MX company.com\n# nslookup -type=TXT company.com   # confirm SPF record\n```\n\nWait for DNS propagation (up to 48 h) before bulk user creation.\n\n**Step 3: Apply Security Baseline**\n\n```powershell\n# Disable legacy authentication (blocks Basic Auth protocols)\n$policy = @{\n    DisplayName = \"Block Legacy Authentication\"\n    State = \"enabled\"\n    Conditions = @{ ClientAppTypes = @(\"exchangeActiveSync\",\"other\") }\n    GrantControls = @{ Operator = \"OR\"; BuiltInControls = @(\"block\") }\n}\nNew-MgIdentityConditionalAccessPolicy -BodyParameter $policy\n\n# Enable unified audit log\nSet-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $true\n```\n\n**Step 4: Provision Users**\n\n```powershell\n$licenseSku = (Get-MgSubscribedSku | Where-Object { $_.SkuPartNumber -eq \"ENTERPRISEPACK\" }).SkuId\n\nImport-Csv .\\employees.csv | ForEach-Object {\n    try {\n        $user = New-MgUser -DisplayName $_.DisplayName -UserPrincipalName $_.UserPrincipalName `\n                           -AccountEnabled -PasswordProfile @{ Password = (New-Guid).ToString().Substring(0,12)+\"!\"; ForceChangePasswordNextSignIn = $true }\n        Set-MgUserLicense -UserId $user.Id -AddLicenses @(@{ SkuId = $licenseSku }) -RemoveLicenses @()\n        Write-Host \"Provisioned: $($_.UserPrincipalName)\"\n    } catch {\n        Write-Warning \"Failed $($_.UserPrincipalName): $_\"\n    }\n}\n```\n\n**Validation:** Spot-check 3–5 accounts in the M365 admin portal; confirm licenses show \"Active.\"\n\n---\n\n### Workflow 2: Security Hardening\n\n**Step 1: Run Security Audit**\n\n```powershell\nConnect-MgGraph -Scopes \"Directory.Read.All\",\"Policy.Read.All\",\"AuditLog.Read.All\",\"Reports.Read.All\"\n\n# Export Conditional Access policy inventory\nGet-MgIdentityConditionalAccessPolicy | Select-Object DisplayName, State |\n    Export-Csv .\\ca_policies.csv -NoTypeInformation\n\n# Find accounts without MFA registered\n$report = Get-MgReportAuthenticationMethodUserRegistrationDetail\n$report | Where-Object { -not $_.IsMfaRegistered } |\n    Select-Object UserPrincipalName, IsMfaRegistered |\n    Export-Csv .\\no_mfa_users.csv -NoTypeInformation\n\nWrite-Host \"Audit complete. Review ca_policies.csv and no_mfa_users.csv.\"\n```\n\n**Step 2: Create MFA Policy (report-only first)**\n\n```powershell\n$policy = @{\n    DisplayName = \"Require MFA All Users\"\n    State = \"enabledForReportingButNotEnforced\"\n    Conditions = @{ Users = @{ IncludeUsers = @(\"All\") } }\n    GrantControls = @{ Operator = \"OR\"; BuiltInControls = @(\"mfa\") }\n}\nNew-MgIdentityConditionalAccessPolicy -BodyParameter $policy\n```\n\n**Validation:** After 48 h, review Sign-in logs in Entra ID; confirm expected users would be challenged, then change `State` to `\"enabled\"`.\n\n**Step 3: Review Secure Score**\n\n```powershell\n# Retrieve current Secure Score and top improvement actions\nGet-MgSecuritySecureScore -Top 1 | Select-Object CurrentScore, MaxScore, ActiveUserCount\nGet-MgSecuritySecureScoreControlProfile | Sort-Object -Property ActionType |\n    Select-Object Title, ImplementationStatus, MaxScore | Format-Table -AutoSize\n```\n\n---\n\n### Workflow 3: User Offboarding\n\n**Step 1: Block Sign-in and Revoke Sessions**\n\n```powershell\n$upn = \"departing.user@company.com\"\n$user = Get-MgUser -Filter \"userPrincipalName eq '$upn'\"\n\n# Block sign-in immediately\nUpdate-MgUser -UserId $user.Id -AccountEnabled:$false\n\n# Revoke all active tokens\nInvoke-MgInvalidateAllUserRefreshToken -UserId $user.Id\nWrite-Host \"Sign-in blocked and sessions revoked for $upn\"\n```\n\n**Step 2: Preview with -WhatIf (license removal)**\n\n```powershell\n# Identify assigned licenses\n$licenses = (Get-MgUserLicenseDetail -UserId $user.Id).SkuId\n\n# Dry-run: print what would be removed\n$licenses | ForEach-Object { Write-Host \"[WhatIf] Would remove SKU: $_\" }\n```\n\n**Step 3: Execute Offboarding**\n\n```powershell\n# Remove licenses\nSet-MgUserLicense -UserId $user.Id -AddLicenses @() -RemoveLicenses $licenses\n\n# Convert mailbox to shared (requires ExchangeOnlineManagement module)\nSet-Mailbox -Identity $upn -Type Shared\n\n# Remove from all groups\nGet-MgUserMemberOf -UserId $user.Id | ForEach-Object {\n    try { Remove-MgGroupMemberByRef -GroupId $_.Id -DirectoryObjectId $user.Id } catch {}\n}\nWrite-Host \"Offboarding complete for $upn\"\n```\n\n**Validation:** Confirm in the M365 admin portal that the account shows \"Blocked,\" has no active licenses, and the mailbox type is \"Shared.\"\n\n---\n\n## Best Practices\n\n### Tenant Setup\n\n1. Enable MFA before adding users\n2. Configure named locations for Conditional Access\n3. Use separate admin accounts with PIM\n4. Verify custom domains (and DNS propagation) before bulk user creation\n5. Apply Microsoft Secure Score recommendations\n\n### Security Operations\n\n1. Start Conditional Access policies in report-only mode\n2. Review Sign-in logs for 48 h before enforcing a new policy\n3. Never hardcode credentials in scripts — use Azure Key Vault or `Get-Credential`\n4. Enable unified audit logging for all operations\n5. Conduct quarterly security reviews and Secure Score check-ins\n\n### PowerShell Automation\n\n1. Prefer Microsoft Graph (`Microsoft.Graph` module) over legacy MSOnline\n2. Include `try\u002Fcatch` blocks for error handling\n3. Implement `Write-Host`\u002F`Write-Warning` logging for audit trails\n4. Use `-WhatIf` or dry-run output before bulk destructive operations\n5. Test in a non-production tenant first\n\n---\n\n## Reference Guides\n\n**references\u002Fpowershell-templates.md**\n- Ready-to-use script templates\n- Conditional Access policy examples\n- Bulk user provisioning scripts\n- Security audit scripts\n\n**references\u002Fsecurity-policies.md**\n- Conditional Access configuration\n- MFA enforcement strategies\n- DLP and retention policies\n- Security baseline settings\n\n**references\u002Ftroubleshooting.md**\n- Common error resolutions\n- PowerShell module issues\n- Permission troubleshooting\n- DNS propagation problems\n\n---\n\n## Limitations\n\n| Constraint | Impact |\n|------------|--------|\n| Global Admin required | Full tenant setup needs highest privilege |\n| API rate limits | Bulk operations may be throttled |\n| License dependencies | E3\u002FE5 required for advanced features |\n| Hybrid scenarios | On-premises AD needs additional configuration |\n| PowerShell prerequisites | Microsoft.Graph module required |\n\n### Required PowerShell Modules\n\n```powershell\nInstall-Module Microsoft.Graph -Scope CurrentUser\nInstall-Module ExchangeOnlineManagement -Scope CurrentUser\nInstall-Module MicrosoftTeams -Scope CurrentUser\n```\n\n### Required Permissions\n\n- **Global Administrator** — Full tenant setup\n- **User Administrator** — User management\n- **Security Administrator** — Security policies\n- **Exchange Administrator** — Mailbox management\n","# Microsoft 365 Tenant Manager\n\nExpert guidance and automation for Microsoft 365 Global Administrators managing tenant setup, user lifecycle, security policies, and organizational optimization.\n\n---\n\n## Quick Start\n\n### Run a Security Audit\n\n```powershell\nConnect-MgGraph -Scopes \"Directory.Read.All\",\"Policy.Read.All\",\"AuditLog.Read.All\"\nGet-MgSubscribedSku | Select-Object SkuPartNumber, ConsumedUnits, @{N=\"Total\";E={$_.PrepaidUnits.Enabled}}\nGet-MgPolicyAuthorizationPolicy | Select-Object AllowInvitesFrom, DefaultUserRolePermissions\n```\n\n### Bulk Provision Users from CSV\n\n```powershell\n# CSV columns: DisplayName, UserPrincipalName, Department, LicenseSku\nImport-Csv .\\new_users.csv | ForEach-Object {\n    $passwordProfile = @{ Password = (New-Guid).ToString().Substring(0,16) + \"!\"; ForceChangePasswordNextSignIn = $true }\n    New-MgUser -DisplayName $_.DisplayName -UserPrincipalName $_.UserPrincipalName `\n               -Department $_.Department -AccountEnabled -PasswordProfile $passwordProfile\n}\n```\n\n### Create a Conditional Access Policy (MFA for Admins)\n\n```powershell\n$adminRoles = (Get-MgDirectoryRole | Where-Object { $_.DisplayName -match \"Admin\" }).Id\n$policy = @{\n    DisplayName = \"Require MFA for Admins\"\n    State = \"enabledForReportingButNotEnforced\"   # Start in report-only mode\n    Conditions = @{ Users = @{ IncludeRoles = $adminRoles } }\n    GrantControls = @{ Operator = \"OR\"; BuiltInControls = @(\"mfa\") }\n}\nNew-MgIdentityConditionalAccessPolicy -BodyParameter $policy\n```\n\n### Bundled Python Generators\n\nThree stdlib tools generate the PowerShell artifacts deterministically — prefer them over hand-writing scripts for bulk\u002Frepeatable work. Sample input: `sample_input.json`; expected shape: `expected_output.json`.\n\n```bash\n# Tenant setup: checklist + DNS records + license plan (JSON), or the full setup script\npython3 scripts\u002Ftenant_setup.py --config sample_input.json --format json -o tenant_plan.json\npython3 scripts\u002Ftenant_setup.py --config sample_input.json --format powershell -o tenant_setup.ps1\n\n# User lifecycle: validate first, then generate creation\u002Foffboarding scripts\npython3 scripts\u002Fuser_management.py --domain acme.com --action validate --users users.json\npython3 scripts\u002Fuser_management.py --domain acme.com --action create --users users.json -o create_users.ps1\npython3 scripts\u002Fuser_management.py --domain acme.com --action offboard --user-email jane@acme.com -o offboard.ps1\n\n# Admin scripts: CA policy \u002F security audit \u002F bulk licensing\npython3 scripts\u002Fpowershell_generator.py --tenant-domain acme.com --task conditional-access --policy-config policy.json -o ca_policy.ps1\npython3 scripts\u002Fpowershell_generator.py --tenant-domain acme.com --task security-audit -o audit.ps1\npython3 scripts\u002Fpowershell_generator.py --tenant-domain acme.com --task bulk-license --users-csv users.csv --license-sku ENTERPRISEPACK -o licenses.ps1\n```\n\n**Gate:** for user creation, run `--action validate` first and require every entry to report `\"is_valid\": true` before generating the creation script. Review every generated `.ps1` against the workflows below before running it in the tenant.\n\n---\n\n## Workflows\n\n### Workflow 1: New Tenant Setup\n\n**Step 1: Generate Setup Checklist**\n\nRun `python3 scripts\u002Ftenant_setup.py --config tenant.json --format json` and work through `setup_checklist` phase by phase; `dns_records` feeds Step 2 and `license_recommendations` feeds the licensing workflow.\n\nConfirm prerequisites before provisioning:\n- Global Admin account created and secured with MFA\n- Custom domain purchased and accessible for DNS edits\n- License SKUs confirmed (E3 vs E5 feature requirements noted)\n\n**Step 2: Configure and Verify DNS Records**\n\n```powershell\n# After adding the domain in the M365 admin center, verify propagation before proceeding\n$domain = \"company.com\"\nResolve-DnsName -Name \"_msdcs.$domain\" -Type NS -ErrorAction SilentlyContinue\n# Also run from a shell prompt:\n# nslookup -type=MX company.com\n# nslookup -type=TXT company.com   # confirm SPF record\n```\n\nWait for DNS propagation (up to 48 h) before bulk user creation.\n\n**Step 3: Apply Security Baseline**\n\n```powershell\n# Disable legacy authentication (blocks Basic Auth protocols)\n$policy = @{\n    DisplayName = \"Block Legacy Authentication\"\n    State = \"enabled\"\n    Conditions = @{ ClientAppTypes = @(\"exchangeActiveSync\",\"other\") }\n    GrantControls = @{ Operator = \"OR\"; BuiltInControls = @(\"block\") }\n}\nNew-MgIdentityConditionalAccessPolicy -BodyParameter $policy\n\n# Enable unified audit log\nSet-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $true\n```\n\n**Step 4: Provision Users**\n\n```powershell\n$licenseSku = (Get-MgSubscribedSku | Where-Object { $_.SkuPartNumber -eq \"ENTERPRISEPACK\" }).SkuId\n\nImport-Csv .\\employees.csv | ForEach-Object {\n    try {\n        $user = New-MgUser -DisplayName $_.DisplayName -UserPrincipalName $_.UserPrincipalName `\n                           -AccountEnabled -PasswordProfile @{ Password = (New-Guid).ToString().Substring(0,12)+\"!\"; ForceChangePasswordNextSignIn = $true }\n        Set-MgUserLicense -UserId $user.Id -AddLicenses @(@{ SkuId = $licenseSku }) -RemoveLicenses @()\n        Write-Host \"Provisioned: $($_.UserPrincipalName)\"\n    } catch {\n        Write-Warning \"Failed $($_.UserPrincipalName): $_\"\n    }\n}\n```\n\n**Validation:** Spot-check 3–5 accounts in the M365 admin portal; confirm licenses show \"Active.\"\n\n---\n\n### Workflow 2: Security Hardening\n\n**Step 1: Run Security Audit**\n\n```powershell\nConnect-MgGraph -Scopes \"Directory.Read.All\",\"Policy.Read.All\",\"AuditLog.Read.All\",\"Reports.Read.All\"\n\n# Export Conditional Access policy inventory\nGet-MgIdentityConditionalAccessPolicy | Select-Object DisplayName, State |\n    Export-Csv .\\ca_policies.csv -NoTypeInformation\n\n# Find accounts without MFA registered\n$report = Get-MgReportAuthenticationMethodUserRegistrationDetail\n$report | Where-Object { -not $_.IsMfaRegistered } |\n    Select-Object UserPrincipalName, IsMfaRegistered |\n    Export-Csv .\\no_mfa_users.csv -NoTypeInformation\n\nWrite-Host \"Audit complete. Review ca_policies.csv and no_mfa_users.csv.\"\n```\n\n**Step 2: Create MFA Policy (report-only first)**\n\n```powershell\n$policy = @{\n    DisplayName = \"Require MFA All Users\"\n    State = \"enabledForReportingButNotEnforced\"\n    Conditions = @{ Users = @{ IncludeUsers = @(\"All\") } }\n    GrantControls = @{ Operator = \"OR\"; BuiltInControls = @(\"mfa\") }\n}\nNew-MgIdentityConditionalAccessPolicy -BodyParameter $policy\n```\n\n**Validation:** After 48 h, review Sign-in logs in Entra ID; confirm expected users would be challenged, then change `State` to `\"enabled\"`.\n\n**Step 3: Review Secure Score**\n\n```powershell\n# Retrieve current Secure Score and top improvement actions\nGet-MgSecuritySecureScore -Top 1 | Select-Object CurrentScore, MaxScore, ActiveUserCount\nGet-MgSecuritySecureScoreControlProfile | Sort-Object -Property ActionType |\n    Select-Object Title, ImplementationStatus, MaxScore | Format-Table -AutoSize\n```\n\n---\n\n### Workflow 3: User Offboarding\n\n**Step 1: Block Sign-in and Revoke Sessions**\n\n```powershell\n$upn = \"departing.user@company.com\"\n$user = Get-MgUser -Filter \"userPrincipalName eq '$upn'\"\n\n# Block sign-in immediately\nUpdate-MgUser -UserId $user.Id -AccountEnabled:$false\n\n# Revoke all active tokens\nInvoke-MgInvalidateAllUserRefreshToken -UserId $user.Id\nWrite-Host \"Sign-in blocked and sessions revoked for $upn\"\n```\n\n**Step 2: Preview with -WhatIf (license removal)**\n\n```powershell\n# Identify assigned licenses\n$licenses = (Get-MgUserLicenseDetail -UserId $user.Id).SkuId\n\n# Dry-run: print what would be removed\n$licenses | ForEach-Object { Write-Host \"[WhatIf] Would remove SKU: $_\" }\n```\n\n**Step 3: Execute Offboarding**\n\n```powershell\n# Remove licenses\nSet-MgUserLicense -UserId $user.Id -AddLicenses @() -RemoveLicenses $licenses\n\n# Convert mailbox to shared (requires ExchangeOnlineManagement module)\nSet-Mailbox -Identity $upn -Type Shared\n\n# Remove from all groups\nGet-MgUserMemberOf -UserId $user.Id | ForEach-Object {\n    try { Remove-MgGroupMemberByRef -GroupId $_.Id -DirectoryObjectId $user.Id } catch {}\n}\nWrite-Host \"Offboarding complete for $upn\"\n```\n\n**Validation:** Confirm in the M365 admin portal that the account shows \"Blocked,\" has no active licenses, and the mailbox type is \"Shared.\"\n\n---\n\n## Best Practices\n\n### Tenant Setup\n\n1. Enable MFA before adding users\n2. Configure named locations for Conditional Access\n3. Use separate admin accounts with PIM\n4. Verify custom domains (and DNS propagation) before bulk user creation\n5. Apply Microsoft Secure Score recommendations\n\n### Security Operations\n\n1. Start Conditional Access policies in report-only mode\n2. Review Sign-in logs for 48 h before enforcing a new policy\n3. Never hardcode credentials in scripts — use Azure Key Vault or `Get-Credential`\n4. Enable unified audit logging for all operations\n5. Conduct quarterly security reviews and Secure Score check-ins\n\n### PowerShell Automation\n\n1. Prefer Microsoft Graph (`Microsoft.Graph` module) over legacy MSOnline\n2. Include `try\u002Fcatch` blocks for error handling\n3. Implement `Write-Host`\u002F`Write-Warning` logging for audit trails\n4. Use `-WhatIf` or dry-run output before bulk destructive operations\n5. Test in a non-production tenant first\n\n---\n\n## Reference Guides\n\n**references\u002Fpowershell-templates.md**\n- Ready-to-use script templates\n- Conditional Access policy examples\n- Bulk user provisioning scripts\n- Security audit scripts\n\n**references\u002Fsecurity-policies.md**\n- Conditional Access configuration\n- MFA enforcement strategies\n- DLP and retention policies\n- Security baseline settings\n\n**references\u002Ftroubleshooting.md**\n- Common error resolutions\n- PowerShell module issues\n- Permission troubleshooting\n- DNS propagation problems\n\n---\n\n## Limitations\n\n| Constraint | Impact |\n|------------|--------|\n| Global Admin required | Full tenant setup needs highest privilege |\n| API rate limits | Bulk operations may be throttled |\n| License dependencies | E3\u002FE5 required for advanced features |\n| Hybrid scenarios | On-premises AD needs additional configuration |\n| PowerShell prerequisites | Microsoft.Graph module required |\n\n### Required PowerShell Modules\n\n```powershell\nInstall-Module Microsoft.Graph -Scope CurrentUser\nInstall-Module ExchangeOnlineManagement -Scope CurrentUser\nInstall-Module MicrosoftTeams -Scope CurrentUser\n```\n\n### Required Permissions\n\n- **Global Administrator** — Full tenant setup\n- **User Administrator** — User management\n- **Security Administrator** — Security policies\n- **Exchange Administrator** — Mailbox management\n",{"name":5,"description":7},"main","57e7aa6b6e03bce1a7d7862ba9c2ec312f7f19b5","src\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fskills\u002Fms365-tenant-manager",0,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee","https:\u002F\u002Fwithcyril.me\u002F","Hi, I’m Julian Cyril D, a Computer Science and Business Systems student at PSNACET.\r\nI’m passionate about full-stack development, UI\u002FUX design, and building sma","2026-11-04 23:28:50",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Cyrilthetecchieee\u002Fcyril-code- --skill ms365-tenant-manager",{"tool":39,"command":40},"bunx","bunx skills add Cyrilthetecchieee\u002Fcyril-code- --skill ms365-tenant-manager",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Cyrilthetecchieee\u002Fcyril-code- --skill ms365-tenant-manager","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fskills\u002Fms365-tenant-manager\u002FSKILL.md",true,[47,53,57,61,65,69,75,79],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"expected_output.json","REFERENCE","参考文档",2052,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fskills\u002Fms365-tenant-manager\u002Fexpected_output.json",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fpowershell-templates.md",21511,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fskills\u002Fms365-tenant-manager\u002Freferences\u002Fpowershell-templates.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fsecurity-policies.md",8792,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fskills\u002Fms365-tenant-manager\u002Freferences\u002Fsecurity-policies.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Ftroubleshooting.md",9809,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fskills\u002Fms365-tenant-manager\u002Freferences\u002Ftroubleshooting.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"sample_input.json",471,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fskills\u002Fms365-tenant-manager\u002Fsample_input.json",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Fpowershell_generator.py.txt","SCRIPT","脚本",16042,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fskills\u002Fms365-tenant-manager\u002Fscripts\u002Fpowershell_generator.py.txt",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Ftenant_setup.py.txt",18444,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fskills\u002Fms365-tenant-manager\u002Fscripts\u002Ftenant_setup.py.txt",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fuser_management.py.txt",18709,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering-team\u002Fskills\u002Fms365-tenant-manager\u002Fscripts\u002Fuser_management.py.txt",[84,93,100,108,115,122],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7AQV6CYX8RMC78420V9WZ62","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7AQV2895N3S1MEX6K76G6G2","youtube-downloader","Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fvideo-downloader\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7AQTRNX62DNKVZ5GXEHRBKB","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7AQTNNVHAAN9H6DA8T6ZVE0","template-skill","Replace with description of the skill and when Claude should use it.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftemplate-skill\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M7AQTJ3MQ6AKX152MEX2MYCC","tailored-resume-generator","Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftailored-resume-generator\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":126,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":19},"01M7AQTD7D5MYET2YWG7HG9WM3","slack-gif-creator","Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like \"make me a GIF for Slack of X doing Y\".","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FSKILL.md",[],[]]