Revoke Calendar Access

Roger Roger 5,686 Reputation points
2021-01-21T20:24:36.953+00:00

Hi All

I want to revoke calendar access to a user from the shared mailbox and i am using the below syntax and i am getting the below error. please correct me.

Remove-MailboxFolderPermission -Identity "sharedmailbox@Company portal .com:\calendar" -user user1@Company portal .com -accessrights editor

A parameter cannot be found that matches parameter name 'accessrights'.
+ CategoryInfo : InvalidArgument: (:) [Remove-MailboxFolderPermission], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Remove-MailboxFolderPermission
+ PSComputerName : outlook.office365.com

Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
630 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,464 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,572 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 147.3K Reputation points MVP
    2021-01-21T20:33:12.28+00:00

    All you need to run is:

    Remove-MailboxFolderPermission -Identity "sharedmailbox@contoso.com:\calendar" -user user1@contoso.com   
    

    https://video2.skills-academy.com/en-us/powershell/module/exchange/remove-mailboxfolderpermission?view=exchange-ps

    Remove-MailboxFolderPermission -Identity kim@contoso.com:\Training -User john@contoso.com  
    

    You can't use this cmdlet to selectively remove permissions from a user on a mailbox folder. The cmdlet removes all permissions that are assigned to the user on the specified folder. To modify the permissions that are assigned to the user on a mailbox folder, use the Set-MailboxFolderPermission cmdlet.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Joyce Shen - MSFT 16,661 Reputation points
    2021-01-22T01:56:28.887+00:00

    Hi @Roger Roger

    Agree with Andy's reply. There is no -accessrights parameter in the command Remove-MailboxFolderPermission.

    The command provided above will remove user1's permissions to the calendar in sharedmailbox's mailbox.

    If you want to add other permission or modify the permission. Using Add-MailboxFolderPermission or Set-MailboxFolderPermission


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    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

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.