Use this in PowerShell to restrict users from deleting tasks they did not create:


Applying the Block to a Single Account

Set-PlannerUserPolicy -UserAadIdOrPrincipalName <user's AADId or UPN> -BlockDeleteTasksNotCreatedBySelf $true

Applying the Block to Multiple Accounts

[array]$Users = Get-ExoMailbox -RecipientTypeDetails UserMailbox -ResultSize UnlimitedForEach ($User in $Users) {    Write-Host "Disabling delete access to non-owned tasks for" $User.DisplayName    Set-PlannerUserPolicy -UserAadIdOrPrincipalName $User.UserPrincipalName -BlockDeleteTasksNotCreatedBySelf $True}

To Check the Status of a Block

Get-PlannerUserPolicy -UserAadIdOrPrincipalName "<User's AAD ID or UPN>"

Reversing the Block

Set-PlannerUserPolicy -UserAadIdOrPrincipalName "<User's AAD ID or UPN>"  -BlockDeleteTasksNotCreatedBySelf $false

Example

Set-PlannerUserPolicy -UserAadIdOrPrincipalName alex.jessup@cadorath.com -BlockDeleteTasksNotCreatedBySelf $false