Enterprise Operations Guide: Deep User Provisioning, Group Governance, License Optimization, Teams Policy Control, OneDrive Quotas, and SharePoint Security
IT System Administrators manage user provisioning via Users > Active users in the M365 Admin Center (`admin.microsoft.com`). Provisioning requires defining the User Principal Name (UPN), Primary SMTP address, Usage Location (mandatory for license entitlement), and Initial Password state.
| Account / Mailbox State | Retention Window | License Required? | Administrative Action |
|---|---|---|---|
| Active User Mailbox | Active indefinitely | Yes (Exchange Online P1/P2) | Standard operational account. |
| Shared Mailbox (< 50 GB) | Active indefinitely | No license required | Converted from primary user mailbox. |
| Soft-Deleted User | 30 Calendar Days | No (License released) | Restorable via Admin Console > Deleted Users. |
| Inactive Mailbox (Litigation Hold) | Defined by Hold Policy | No active license needed | Mailbox retained permanently for compliance after account deletion. |
The M365 Admin Console supports four distinct group types under Teams & groups > Active teams & groups. Choosing the correct group architecture is critical for security, access control, and communication efficiency.
| Group Type | Mail Enabled? | Entra ID Security Target? | Provisioned Resources |
|---|---|---|---|
| Microsoft 365 Group | Yes | Yes | Shared Mailbox, Shared Calendar, SharePoint Site, Teams Team, Planner, OneNote. |
| Security Group | No | Yes | Used for assigning permissions to SharePoint, OneDrive, Intune policies, and Group-Based Licensing. |
| Mail-Enabled Security | Yes | Yes | Grants resource access (e.g., SharePoint) while functioning as an email broadcast list. |
| Distribution List (DL) | Yes | No | Broadcast email distribution list only. Cannot be used to grant file or folder security rights. |
While static groups require manual member management, Dynamic Groups evaluate membership automatically based on user identity attributes synchronized from Entra ID:
// Example Dynamic Group Rule for IT Department:
(user.department -eq "Information Technology") -and (user.country -eq "United States")
// Example Rule for Frontline Workers:
(user.userType -eq "Member") -and (user.jobTitle -startsWith "Retail")
Under Billing > Licenses, administrators track available stock, expiration dates, and assigned services across core Stock Keeping Units (SKUs) such as Microsoft 365 E3, E5, Business Premium, and F3.
Administrators can disable individual sub-services (Service Plans) within a master license SKU. For example, an IT team can assign an M365 E5 license while disabling Viva Engage or Exchange Online for specific user profiles.
While deep policy configuration occurs in the Teams Admin Center (`admin.teams.microsoft.com`), high-level org-wide settings, team creation, and external access policies are managed directly inside the main M365 Admin Center.
@externalcompany.com). External users **cannot** access internal Teams channels, file shares, or SharePoint sites.Located under Settings > Org settings > Microsoft Teams:
Managed via Settings > Org settings > OneDrive or the user details pane in admin.microsoft.com.
When an M365 account is deleted, OneDrive initiates a cleanup process:
[User Account Deleted]
│
▼
[30-Day Default Retention Window Starts (Configurable up to 3650 Days)]
│
▼
[Automatic Notification Email Sent to Manager with Direct Link to OneDrive Access]
│
▼
[Manager Copies Business Files] ---> [Retention Expires] ---> [OneDrive Moved to Recycle Bin (30 Days)]
Configured centrally in M365 Admin Center under Setup > Sharing data with external users or via the SharePoint Admin Center. External sharing settings operate on a tier system where child sites cannot have a more permissive setting than the global tenant setting:
| Sharing Tier | Functional Access Level | Security & Compliance Risk |
|---|---|---|
| Anyone (Anonymous) | Users can create unauthenticated links that allow anyone to view/edit files without logging in. | Highest Risk (Requires periodic audit & expiration limits). |
| New and existing guests | External users must authenticate via B2B code or Entra guest account creation. | Moderate (Controlled authentication required). |
| Existing guests only | Only guests already in the organization's Entra directory can be granted file access. | Low-Moderate (Pre-approved guests only). |
| Only people in your organization | Completely disables external sharing. Internal users only. | Zero External Exposure. |
Restricts access from non-hybrid or non-Intune compliant personal devices: options include Full Access, Allow Limited Web-Only Access (prevents file downloads, printing, or local sync), or Block Access completely.
Below are production-ready PowerShell scripts using the modern Microsoft.Graph and ExchangeOnlineManagement modules for common M365 Admin tasks.
# Install modules if required: Install-Module Microsoft.Graph, ExchangeOnlineManagement
Connect-MgGraph -Scopes "User.ReadWrite.All", "Directory.AccessAsUser.All"
Connect-ExchangeOnline -UserPrincipalName admin@yourtenant.onmicrosoft.com
$UserUPN = "departing.employee@yourtenant.com"
# 1. Block Sign-In
Update-MgUser -UserId $UserUPN -AccountEnabled:$false
# 2. Revoke active OAuth refresh tokens (Force sign-out)
Revoke-MgUserSignInSession -UserId $UserUPN
# 3. Convert User Mailbox to Shared Mailbox
Set-Mailbox -Identity $UserUPN -Type Shared
# 4. Delegate Mailbox Access to Manager
Add-MailboxPermission -Identity $UserUPN -User "manager@yourtenant.com" -AccessRights FullAccess -AutoMapping $true
# 5. Remove Paid License SKUs
$UserLicenses = (Get-MgUser -UserId $UserUPN -Property AssignedLicenses).AssignedLicenses
foreach ($License in $UserLicenses) {
Set-MgUserLicense -UserId $UserUPN -RemoveLicenses @($License.SkuId) -AddLicenses @()
}
Write-Host "Offboarding completed successfully for $UserUPN" -ForegroundColor Green
# Connect to SharePoint Admin Service
Connect-SPOService -Url "https://yourtenant-admin.sharepoint.com"
# Set default quota for new users to 5TB (5242880 MB)
Set-SPOTenant -OneDriveStorageQuota 5242880
# Increase specific user's OneDrive to 5TB
Set-SPUserOneDriveQuota -User "poweruser@yourtenant.com" -Quota 5242880
Below are the essential sub-consoles directly linked from the main M365 Admin Center (`admin.microsoft.com`):
Manages user synchronization, Group-Based Licensing rules, B2B guest permissions, Conditional Access, and App Registrations.
entra.microsoft.comConfigures shared mailboxes, transport rules, mail flow routing, anti-spam policies, room resources, and mailbox delegation.
admin.exchange.microsoft.comDefines meeting policies, calling plans, team messaging restrictions, guest permissions, and Teams phone deployment.
admin.teams.microsoft.comManages site collection storage quotas, global tenant sharing permissions, unmanaged device access, and OneDrive settings.
yourtenant-admin.sharepoint.comManages device enrollment (Windows, macOS, iOS, Android), device compliance policies, app deployment, and local device wipe.
intune.microsoft.comTest your operational mastery of the M365 Admin Console. When you submit your answers, the quiz will highlight correct choices in green, wrong choices in red, calculate your score, and display detailed explanations for every question.