question

RogerRoger-2394 avatar image
0 Votes"
RogerRoger-2394 asked joyceshen-MSFT answered

Revoke Calendar Access

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@contoso.com:\calendar" -user user1@contoso.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

office-exchange-server-administrationoffice-exchange-online-itprooffice-online-server-generaloffice-online-server-exchange
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndyDavid avatar image
0 Votes"
AndyDavid answered AndyDavid edited

All you need to run is:

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

https://docs.microsoft.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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

joyceshen-MSFT avatar image
0 Votes"
joyceshen-MSFT answered

Hi @RogerRoger-2394

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.
 

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.