How to fix -SharingPermissionFlag CanViewPrivateItems not working

Evert van Hoften 1 Reputation point

Hi everyone,

Recently I've been running into the issue that a few users can't view the private items in a shared mailbox calendar.

As a manual workaround I have added the SharingPermissionFlags "Delegate,CanViewPrivateItems" with PowerShell.

Unfortunately it seems that I have to reset this every few weeks. I run a quick "Get-MailboxFolderPermission" command and it shows it is still there, however the users no longer have the actual permissions.

User's image

User's image

Usually I just remove the entire Editor/Delegate rights and manually add the rights again to solve the problem.

User's image

However, today that workaround has stopped working. Once again the users pointed out they couldn't view the privateitems, I done what I usually do, except this time... No positive results.

These are the commands I run (obviously with the right usernames when I actually run the commands):

  • Get-InstalledModule ExchangeOnlineManagement
  • Connect-ExchangeOnline
  • Get-MailboxFolderPermission -Identity\calendar
  • Remove-MailboxFolderPermission -Identity\calendar -User "Displayname"
  • Add-MailboxFolderPermission -Identity\calendar -User -AccessRights Editor -SharingPermissionFlags Delegate,CanViewPrivateItems

Has someone else run into this, and if so, how did you solve it?

Right now the users can't see any of the private appointments. (that they made themselves)

Thanks in advance!

A family of Microsoft email and calendar products.
2,168 questions
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
1,533 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yuki Sun-MSFT 37,121 Reputation points

    Hi @Evert van Hoften ,

    Recently I've been running into the issue that a few users can't view the private items in a shared mailbox calendar.

    Does this affect all delegates of this shared mailbox or only some particular users have this issue?
    How about Outlook on the web, can the users see the private items there?

    From what I am aware of, using the SharingPermissionFlags "Delegate,CanViewPrivateItems" should be enough for it to work, so it doesn't look like an issue with the permission. Given this, if the problematic users are currently running Outlook in Exchange cached mode, it's recommended to test on one machine by switching to Exchange Online mode when the issue occurs and see if it can help.

    User's image

    Besides, another workaround worth trying is to add the shared mailbox as an additional account in Outlook by using the email address and password of the user who has permission for that mailbox. For detailed steps, you can refer to: How to add a shared mailbox as additional account in Outlook(Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)

    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.