Set-MailboxFolderpermission - mailbox doest exist

Daniel Hnyk 61 Reputation points
2021-06-11T09:59:17.793+00:00

Hello guys, i need to get more about this issue:

I ve got a shared mailbox in Exchange Online and i need to change mailbox folder permission for user ABC. When i call set-mailboxfolderpermission -identity %sharedmbx-emailaddress% -user %ABC_useremailaddress% -accessrights Editor(or any other type of rights). Powershell return: The specified mailbox "ABC" doesn't exist. It´s very weird, because i can remove/add, but i am not able to change...

I tried replace %emailaddress% with displayname, guid etc, but everything return same result :-(

Do you have any ideas, what´s wrong, or its by design in Exchange Online?
We have many scripts, which works with set-mailboxfolderpermission cmdlet
Cmdlet description says its applied to Exchange Online

Thanks for advice

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,182 questions
{count} votes

Accepted answer
  1. Joyce Shen - MSFT 16,701 Reputation points
    2021-06-14T02:58:05.693+00:00

    Hi @Daniel Hnyk

    Is your environment a cloud-only one?

    We use Set-MailboxFolderPermission cmdlet to modify folder-level permissions for users in mailboxes. This cmdlet differs from the Add-MailboxFolderPermission cmdlet in that it modifies existing permission entries.

    If you didn't add the mailbox folder permission for the user previously, use Add-MailboxFolderPermission firstly

    Add-MailboxFolderPermission -Identity ******@contoso.com:\Marketing -User ******@contoso.com -AccessRights Owner  
    

    Then if you want to edit the permission, use below command

    Set-MailboxFolderPermission -Identity ******@contoso.com:\Marketing -User ******@contoso.com -AccessRights Editor  
    

    Please also make sure the account you run the command has the right permssion/role list below. Add the right permission/roles for your account if it miss any
    Get-ManagementRole -Cmdlet xxx-xxx
    105231-qa-2021-06-14-10-40-43.png

    In addition, have you tried using OWA to verify the configuration again, can you use OWA to change the mailbox foler permission for that user?


    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 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.