DeletedResources
Parameter of AppRetentionCompliancePolicy
Applies to : Security & Compliance
Description
The DeletedResources parameter specifies the deleted mailbox or mail user to add as an exclusion to the respective location list. Use this parameter with the AddTeamsChatLocationException parameter for deleted mailboxes or mail users that need to be excluded from a Teams only retention policy.
A valid value is a JSON string. Refer to the Examples section for syntax and usage examples of this parameter.
For information about the inactive mailbox scenario, see Learn about inactive mailboxes.
CAUTION: This parameter uses the SMTP address of the deleted mailbox or mail user, which might also be specified for other mailboxes or mail users. If you use this parameter without first taking additional steps, other mailboxes and mail users with the same SMTP address in the retention policy are also excluded. To check for additional mailboxes or mail users with the same SMTP address, use the following command and replace [email protected] with the SMTP address to check: Get-Recipient -IncludeSoftDeletedRecipients [email protected] | Select-Object DisplayName, EmailAddresses, Description, Alias, RecipientTypeDetails, WhenSoftDeleted
To prevent active mailboxes or mail users with the same SMTP address from being excluded, put the mailbox on Litigation Hold before you run the command with the DeletedResources parameter.
Characteristics
- Type
String- Parameter sets
- (All)
Apply
Enter the name of the policy to change.