shared mailbox

Roger Roger 7,306 Reputation points
2024-12-24T06:08:35.2733333+00:00

Hi All,

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

Set-Mailbox -Identity "******@contoso.com" -GrantSendOnBehalfTo @{add="******@contoso.com","******@contoso.com","******@contoso.com"}

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Exchange | Exchange Server | Other
Exchange | Exchange Server | Other
A robust email, calendaring, and collaboration platform developed by Microsoft, designed for enterprise-level communication and data management.Miscellaneous topics that do not fit into specific categories.
Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
Exchange | Hybrid management
Exchange | Hybrid management
The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anonymous
    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 "******@contoso.com" -GrantSendOnBehalfTo @{add="******@contoso.com","******@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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.