Share via

Audit deleted message for a mailbox with delegated access

DT_2026 40 Reputation points
2026-03-31T04:34:42.2+00:00

There is a mailbox with delegated access.

Using Microsoft Purview Audit I run audit search against a specific mailbox (say ******@company.com).
User's image

That mailbox has full access delegated permission for another two users (user2 and user3).

I downloaded the audit search but under UserId I only see the username of the mailbox owner (******@company.com) and don't see delegates' username.

User's image

Microsoft Security | Microsoft Purview
0 comments No comments

2 answers

Sort by: Most helpful
  1. Vasil Michev 125.8K Reputation points MVP Volunteer Moderator
    2026-03-31T07:04:24.36+00:00

    If you have scoped the search to specific user (via the -UserId parameter), only audit log entries corresponding to operations performed by said user will be returned. If you want to limit the search to events performed against specific (shared) mailbox instad, you must filter on the MailboxOwnerUPN value. Unfortunately, we do not have a server-side method to do this, hence the recommendation is to use the -FreeText parameter instead. Alternatively, you can fetch all events and filter client-side.

    Here's a note from the official documentation describing this behavior:

    Use -UserIds to find activities performed BY a specific delegate user. Don't use -UserIds with the shared mailbox address, as this action doesn't return delegate activities performed IN the shared mailbox. For activities performed in the shared mailbox by any user (including delegates), use the -FreeText parameter as shown in other sections.


  2. Q&A Assist
    2026-03-31T04:35:04.2666667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Deleted-item audit records for a mailbox with delegated access can be retrieved, but the search method determines whether delegate identities are visible.

    1. Searching by User (UserIds) returns actions performed by that user, not all actions in the mailbox. It also does not return activities performed in shared mailboxes or by delegates on another mailbox.
    2. To see all delete/move-to-Deleted-Items actions that occurred in a specific mailbox (including actions performed by delegates), search the unified audit log by the mailbox’s ExchangeGuid, not by UserIds:
    Search-UnifiedAuditLog -StartDate <start> -EndDate <end> \
      -FreeText (Get-Mailbox <mailbox identity>).ExchangeGuid
    

    This returns all mailbox-audit events for that mailbox. In the exported results:

    • The mailbox that was acted on is identified by fields such as MailboxGuid and MailboxResolvedOwnerName.
    • The actor (who performed the action) is identified by UserId in the main columns and by delegate-related fields inside AuditData, such as DelegateUserDisplayName and LogonUserSid.
    1. If the goal is specifically to track deleted items in a shared or delegated mailbox, use a targeted query for delete operations and the mailbox identity:
    Search-UnifiedAuditLog -StartDate <start> -EndDate <end> \
      -FreeText <******@domain.com> \
      -Operations SoftDelete,HardDelete,MoveToDeletedItems \
      -ResultSize 500
    

    This query returns delete-related operations in that mailbox regardless of whether they were performed by the owner or a delegate. Delegate identities are visible in the audit data fields mentioned above.

    1. Ensure mailbox auditing is enabled and configured to log the relevant actions for delegates and owners so that future delete/move events are captured:
    Set-Mailbox <mailbox> -AuditEnabled $true \
      -AuditOwner @{Add="Move","MoveToDeletedItems","SoftDelete","HardDelete","Create"} \
      -AuditDelegate @{Add="SendAs","Move"}
    

    Also verify that organization-wide auditing is not disabled:

    Set-OrganizationConfig -AuditDisabled $false
    

    With these settings and by querying via ExchangeGuid or mailbox FreeText, audit results will show which delegate deleted or moved items in the mailbox.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.