Forum Discussion
ellan1537
Nov 27, 2023Iron Contributor
Replace existing retention labels on emails
There are tons of emails in multiple users outlook (M365) on which Retention Labels were applied. We've came up with a new set of retention labels now.
Is there a script that can remap all the existing labels to the new ones by crawling through these emails?
Any help is greatly appreciated!
Thanks
- After going over this with my team and Microsoft, seems like there is no option to do this exactly that way. Although, you could use the Purview’s Content Search to get a report on Retention labels applied in Exchange.
These are the M365 Retention Labels, not MRM tags.
8 Replies
Sort By
- ellan1537Iron ContributorAfter going over this with my team and Microsoft, seems like there is no option to do this exactly that way. Although, you could use the Purview’s Content Search to get a report on Retention labels applied in Exchange.
These are the M365 Retention Labels, not MRM tags. - How were the labels applied in the first place? And are we talking about M365 retention labels or (legacy) Exchange retention tags?
- ellan1537Iron ContributorTalking about M365. Retention labels are available to users to manually apply on their emails.
These retention labels are configured in Purview portal- Unfortunately, you cannot use the auto-apply functionality for retention labels, as it only works against messages in transit. However, you should be able to programmatically apply the new label via EWS. Here's a sample script: https://learn.microsoft.com/en-us/archive/blogs/akashb/stamping-retention-policy-tag-using-ews-managed-api-1-1-from-powershellexchange-2010