Share via

Error retrieving mailbox folder permissions

Anonymous
2018-01-12T11:09:12+00:00

Hi,

Just recently I have started to return errors in Exchange online when trying to retrieve mailbox permissions.

PS C:\WINDOWS\system32> Get-MailboxFolderPermission -Identity ******@contoso.com:\calendar

FolderName           User                 AccessRights                           SharingPermissionFlags

----------           ----                 ------------                           ----------------------

Calendar             Default              {AvailabilityOnly}

Calendar             Anonymous            {None}

WARNING: An unexpected error has occurred and a Watson dump is being generated: Value specified for a parameter of type

 Microsoft.Exchange.Data.SharingPolicyAction is invalid: 0.

Parameter name: allowedActions

Value specified for a parameter of type Microsoft.Exchange.Data.SharingPolicyAction is invalid: 0.

Parameter name: allowedActions

    + CategoryInfo          : NotSpecified: (:) [Get-MailboxFolderPermission], EnumOutOfRangeException

    + FullyQualifiedErrorId : Microsoft.Exchange.ExchangeSystem.EnumOutOfRangeException,Microsoft.Exchange.Management.

   StoreTasks.GetMailboxFolderPermission

    + PSComputerName        : outlook.office365.com

I know that there is at least a dozen different users with access so I'm not sure why just the default and anonymous permissions show. I cannot work out what is causing this error, can anybody advise?

Thanks,

Matt

Microsoft 365 and Office | Subscription, account, billing | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2018-01-18T08:37:35+00:00

Hi Matt,

Thanks for your reply. By default, all Office 365 users can access other user’s calendar and view free/busy. For the PowerShell command: Get-MailboxFolderPermission -Identity ******@contoso.com:\calendar, it will help to list the user have permission (Edit, view all details, delegate…) for this calendar, if users only can access the calendar and not assigned permission, there will no users under the list, and this is expected behavior.

To better help you, please help to go to Outlook Web App (sign in with ******@contoso.com) to check if there are some users were assigned permission of this calendar like below (please also send us a screenshot of the permission list):

If there is no people under this permission list, this PowerShell will also not list the users.

Thanks,

Richard

Was this answer helpful?

0 comments No comments

10 additional answers

Sort by: Most helpful
  1. Anonymous
    2018-01-17T06:59:21+00:00

    Hi Matt,

    Thanks for your reply. As you see, there exist Default and Anonymous under the User. Default is what every domain user will have if they are not specified in the access list, Anonymous is a non-domain account.

    So, these two users include the different users you mentioned. And it will not show the specific user name for each users.

    Thanks,

    Richard

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-01-16T09:18:34+00:00

    Hi,

    The PowerShell command that I'm running is: Get-MailboxFolderPermission -Identity ******@contoso.com:\calendar

    I'm running the command in PowerShell for Office 365 and connecting to https://outlook.office365.com/powershell-liveid/

    Thanks,

    Matt

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-01-16T01:19:41+00:00

    Hi Matt,

    Do you have any updates with us?

    Thanks,

    Richard

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-01-12T13:29:48+00:00

    Hi Matt,

    To better help you, please let me know what PowerShell you ran for you needs. Please send the complete PowerShell you ran on you PC.

    Meanwhile, if you want to get mail folder permission, you can follow this article to archive your aim. For example, if you want to get the user permission for the Marketing folder in John's mailbox, you can follow this command: Get-MailboxFolderPermission -Identity ******@contoso.com:\Marketing

    Thanks,

    Richard

    Was this answer helpful?

    0 comments No comments