permissions

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

Hi All,

I have a shared mailbox in exchange online, for example, smb@contoso.com, which is accessed by two users. When user1@contoso.com sends an email from the shared mailbox, the sent emails are stored in the shared mailbox's Sent Items. However, when user2@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 user2@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 smb@contoso.com -MessageCopyForSendOnBehalfEnabled $True 
Set-Mailbox smb@contoso.com -MessageCopyForSentAsEnabled $True

Microsoft Exchange Online
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,384 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,655 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,725 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,177 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jake Zhang-MSFT 7,775 Reputation points Microsoft Vendor
    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 smb@contoso.com -MessageCopyForSendOnBehalfEnabled $True
    Set-Mailbox smb@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 smb@contoso.com -User user1@contoso.com -AccessRights FullAccess -InheritanceType All
    Add-MailboxPermission -Identity smb@contoso.com -User user2@contoso.com -AccessRights FullAccess -InheritanceType All
    Add-RecipientPermission -Identity smb@contoso.com -Trustee user1@contoso.com -AccessRights SendAs
    Add-RecipientPermission -Identity smb@contoso.com -Trustee user2@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.