Share via

Revoke permissions

Rising Flight 6,456 Reputation points
2024-01-20T21:26:02.8466667+00:00

I have created a shared mailbox in onprem and migrated to online. i have given SendonBehalf permission from exchange online powershell using the below syntax.

Set-Mailbox -Identity "******@mydomain.com" -GrantSendOnBehalfTo "******@mydomain.com"

How do i revoke this permission, will the below syntax work.

Remove-MailboxPermission -Identity ******@mydomain.com -User ******@mydomain.com -AccessRights SendOnBehalfTo 
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 | 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.


Answer accepted by question author

Anonymous
2024-01-22T06:22:23.04+00:00

Hello @Rising Flight

-AccessRights should not support the value "SendOnBehalfTo".

But you could try setting "-GrantSendOnBehalfTo" to NULL.

Set-Mailbox -Identity "******@mydomain.com" -GrantSendOnBehalfTo $null User's image

Kind Regards


If the answer is helpful, please click "Accept Answer" and kindly upvote it.

Was this answer helpful?

3 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Amit Singh 5,326 Reputation points
    2024-01-22T04:42:16.3566667+00:00

    The syntax you provided is almost correct, but the cmdlet you should use is Remove-MailboxPermission instead of Remove-MailboxPermission. Here's the right syntax:

    Remove-MailboxPermission -Identity "******@mydomain.com" -User "******@mydomain.com" -AccessRights SendOnBehalfTo

    This command will remove the "Send on Behalf" permission for the specified user from the shared mailbox. Ensure you run this command in the Exchange Online PowerShell environment.

    Was this answer helpful?

    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.