shared mailbox

Roger Roger 6,611 Reputation points
2024-12-24T06:08:35.2733333+00:00

Hi All,

I have a shared mailbox, let’s say smb@contoso.com, and I have granted 3 users Send-On-Behalf-Of permissions using the syntax below. I now want to revoke one user(user3@contoso.com) Send-On-Behalf-Of permission. Could you please guide me with the PowerShell syntax?

Set-Mailbox -Identity "smb@contoso.com" -GrantSendOnBehalfTo @{add="user1@contoso.com","user2@contoso.com","user3@contoso.com"}

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. Bruce Jing-MSFT 7,250 Reputation points Microsoft Vendor
    2024-12-24T08:52:10.4566667+00:00

    Hi,@Roger Roger

    Thanks for posting your question in the Microsoft Q&A forum.

    The command you provided is quite correct, it does assign Send-On-Behalf permissions to shared mailboxes.

    User's image

    If you want to revoke a user's Send-On-Behalf-Of privileges on a shared mailbox, you need to clear the members in the Send-On-Behalf of the shared mailbox first and then reassign the permissions.

    1.Empty the members in Send-On-Behalf of the shared mailbox.

    Set-Mailbox -Identity DL  -GrantSendOnBehalfTo $null
    
    

    User's image

    2.Re-add member.

    Set-Mailbox -Identity "smb@contoso.com" -GrantSendOnBehalfTo @{add="user1@contoso.com","user2@contoso.com"}
    

    User's image

    Note: Microsoft does not display the user's name directly but the GUID for the user's security. you can find out which user it is based on the GUID.

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.