Get-MailboxFolderPermission returns a value in User field that cannot identify object

Volodymyr Dumchykov 20 Reputation points
2026-08-20T09:59:34.7033333+00:00

The Get-MailboxFolderPermission cmdlet returns permission records containing a User field that represents the object to which the permission is assigned. However, the value returned in this field contains the object's display name.

Because display names are not guaranteed to be unique within an Exchange Online tenant, the User field cannot always uniquely identify the corresponding object. For example, multiple users may have the same display name, making it impossible to reliably determine which user a permission record refers to based on this value alone.

This can lead to ambiguity when processing mailbox folder permissions programmatically, especially when the object must be uniquely identified or correlated with an Entra ID or Exchange Online object.

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

0 comments No comments

Answer accepted by question author
Vasil Michev 127.8K Reputation points MVP Volunteer Moderator
2026-08-20T11:02:24.44+00:00

Your assessment above is correct, but for Exchange Online, there is an easy solution - use the Get-EXOMailboxFolderPermission cmdlet instead. Here's a comparison between the output of the two cmdlets:

Get-MailboxFolderPermission shared:\Kalender | select -Skip 2 | select -ExpandProperty User
Gosho
Pesho

Get-EXOMailboxFolderPermission shared:\Kalender | select -Skip 2 | select -ExpandProperty User
DisplayName UserPrincipalName UserType
----------- ----------------- --------
Gosho       ******@michev.info Internal
Pesho       ******@michev.info Internal

As you can see, the latter returns a object instead of a string, and the object contains a proper identifier for the User in the form of UserPrincipalName.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Oldest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.