permissions

Glenn Maxwell 12,876 Reputation points
2024-12-08T22:02:16.16+00:00

Hi All,

I have a shared mailbox in exchange online, for example, ******@contoso.com, which is accessed by two users. When ******@contoso.com sends an email from the shared mailbox, the sent emails are stored in the shared mailbox's Sent Items. However, when ******@contoso.com sends an email from the shared mailbox, the sent emails are stored in their personal Sent Items. What settings should I modify so that when ******@contoso.com sends an email, the sent emails are also stored in the shared mailbox's Sent Items? Is the following syntax correct?

Set-Mailbox ******@contoso.com -MessageCopyForSendOnBehalfEnabled $True 
Set-Mailbox ******@contoso.com -MessageCopyForSentAsEnabled $True

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,185 questions
Exchange | Exchange Server | Other
Exchange | Exchange Server | Management
Exchange | Hybrid management
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2024-12-09T02:30:53.93+00:00

    Hi @Glenn Maxwell ,

    Welcome to the Microsoft Q&A platform!

    Based on your description, your PowerShell commands are correct. To ensure that emails sent by any user from a shared mailbox are stored in the Sent Items of the shared mailbox, you should use the following commands:

    Set-Mailbox ******@contoso.com -MessageCopyForSendOnBehalfEnabled $True
    Set-Mailbox ******@contoso.com -MessageCopyForSentAsEnabled $True
    

    These commands allow sent messages to be copied to the Sent Items folder of the shared mailbox for both "Send on Behalf" and "Send As" scenarios.

    In addition, make sure that both users have the required permissions to send emails from the shared mailbox. You can verify and assign these permissions using the following commands:

    Add-MailboxPermission -Identity ******@contoso.com -User ******@contoso.com -AccessRights FullAccess -InheritanceType All
    Add-MailboxPermission -Identity ******@contoso.com -User ******@contoso.com -AccessRights FullAccess -InheritanceType All
    Add-RecipientPermission -Identity ******@contoso.com -Trustee ******@contoso.com -AccessRights SendAs
    Add-RecipientPermission -Identity ******@contoso.com -Trustee ******@contoso.com -AccessRights SendAs
    

    These commands ensure that both users have full access and Send As permissions to the shared mailbox.


    Please feel free to contact me for any updates. And if this helps, don't forget to mark it as an answer.

    Best,

    Jake Zhang


0 additional answers

Sort by: Most helpful

Your answer

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