Commands › Exchange Online

Update-eDiscoveryCaseAdmin

Exchange Online ExchangeOnlineManagement Update-*

For more information, see Security & Compliance PowerShell. Use the Update-eDiscoveryCaseAdmin cmdlet to replace all existing eDiscovery Administrators in the Microsoft Purview compliance portal. To add or remove individual eDiscovery Administrators, use the Add-eDiscoveryCaseAdmin and Remove-eDiscoveryCaseAdmin cmdlets.

Quick start script

# Update-eDiscoveryCaseAdmin — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-eDiscoveryCaseAdmin
$before | Format-List

# 3. Make the change (dry run first)
Update-eDiscoveryCaseAdmin -Users <String[]> -WhatIf
Update-eDiscoveryCaseAdmin -Users <String[]>

# 4. Verify and diff
$after = Get-eDiscoveryCaseAdmin
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Update-eDiscoveryCaseAdmin -Users <String[]>
 [-Confirm]
 [-WhatIf]
 [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Users String[] yes The Users parameter specifies the users that replaces the current eDiscovery Administrators. You can use any value that uniquely identifies the user. For example:
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-WhatIf SwitchParameter The WhatIf switch doesn't work in Security & Compliance PowerShell.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.