question

DanielHnyk-9421 avatar image
0 Votes"
DanielHnyk-9421 asked KyleXu-MSFT commented

EO - mailbox folder permission for Usertype unknown - how to remove ?!

Hello guys, i would like to get some advice, how to remove mailbox folder permission for usertype Unknown in ExchangeOnline

I am connected to exchange online via PS with prefix EO as Exchange Online, so cmdlets will start with EO, because we have hybrid environment and i need to manage both in one PS.

I have shared mailbox, where is some corrupted ACL for user group, which i want to remove.

[PS] C:\ExchangeScripts\ExchangeOnline\Resource Migration>(Get-EOMailboxFolderPermission "Mailbox") | select -ExpandProperty user

UserType RecipientPrincipal DisplayName


Default Default
Anonymous Anonymous
Unknown %GroupName%

so i am able to select this unknown UserType:
Get-EOMailboxFolderPermission -identity "Mailbox" | where {$_.user.usertype -like "unknown"}

But i cannot remove this rights, through pipeline:

Get-EOMailboxFolderPermission -identity "Mailbox" | where {$_.user.usertype -like "unknown"} | Remove-EOMailboxFolderPermission
Cannot process argument transformation on parameter 'User'. Cannot convert value "GroupName" to type "Microsoft.Exchange.Management.StoreTasks.MailboxFolderUserIdParameter". Error: "Cannot convert hashtable to an object of the following
type: Microsoft.Exchange.Management.StoreTasks.MailboxFolderUserIdParameter. Hashtable-to-Object conversion is not supported in constrained language mode, restricted language mode or a Data section."
+ CategoryInfo : InvalidData: (Microsoft.Excha...olderPermission:PSObject) [Remove-MailboxFolderPermission], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Remove-MailboxFolderPermission
+ PSComputerName : outlook.office365.com


I dunno, why it returns that error described upper....


Do you have any ideas how to deal with it?

Thanks you


D.










office-exchange-server-administrationoffice-exchange-online-itprooffice-exchange-hybrid-itpro
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.

1 Answer

KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered KyleXu-MSFT commented

@DanielHnyk-9421

Try to recover this mailbox, then check whether this "Unknown" user become visible on this permission list.

If you cannot recover this mailbox, you can try to create a service request to Office 365 team, check whether they could delete this permission from the backend.

If they cannot remove the permission for you, I think you may need to recreate this mailbox. In this way, all permission on this mailbox will gone. But you need to add needed permission back to this mailbox again.


If the response 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.

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

@DanielHnyk-9421
I am writing here to confirm with you any update about this thread now? Do you remove permission successfully?
If the above suggestion helps, please be free to mark it as an answer for helping more people.

0 Votes 0 ·