File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Administration Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1+ function Invoke-ExecSetLitigationHold {
2+ <#
3+ . FUNCTIONALITY
4+ Entrypoint
5+ . ROLE
6+ Exchange.Mailbox.ReadWrite
7+ #>
8+ [CmdletBinding ()]
9+ param ($Request , $TriggerMetadata )
10+
11+ $APIName = $Request.Params.CIPPEndpoint
12+ $Headers = $Request.Headers
13+ Write-LogMessage - Headers $Headers - API $APIName - tenant $TenantFilter - message ' Accessed this API' - Sev ' Debug'
14+
15+ # Interact with the query or body of the request
16+ $TenantFilter = $Request.Body.tenantFilter
17+ $DisableLitHold = $Request.Body.disable -as [bool ]
18+ Write-Host " TenantFilter: $TenantFilter "
19+ Write-Host " DisableLitHold: $DisableLitHold "
20+
21+
22+
23+ }
Original file line number Diff line number Diff line change @@ -69,7 +69,10 @@ Function Invoke-ListMailboxes {
6969 HiddenFromAddressListsEnabled,
7070 ExternalDirectoryObjectId,
7171 MessageCopyForSendOnBehalfEnabled,
72- MessageCopyForSentAsEnabled
72+ MessageCopyForSentAsEnabled,
73+ LitigationHoldEnabled,
74+ LitigationHoldDate,
75+ LitigationHoldDuration
7376 $StatusCode = [HttpStatusCode ]::OK
7477 } catch {
7578 $ErrorMessage = Get-NormalizedError - Message $_.Exception.Message
You can’t perform that action at this time.
0 commit comments