# Get-Mailbox and Get-MailboxFolderPermission

**URL:** <https://forums.powershell.org/t/get-mailbox-and-get-mailboxfolderpermission/5486>\
**Category:** PowerShell Help\
**Created:** [January 8, 2016, 8:41am UTC](https://forums.powershell.org/t/get-mailbox-and-get-mailboxfolderpermission/5486 "2016-01-08T08:41:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariuxi-pacheco](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@mariuxi-pacheco](https://forums.powershell.org/u/mariuxi-pacheco)\
**Post date:** [January 8, 2016, 8:41am UTC](https://forums.powershell.org/t/get-mailbox-and-get-mailboxfolderpermission/5486/1 "2016-01-08T08:41:03Z")

</div>

I am new to PowerShell.  
Trying to retrieve inbox folder permission for a set of users. but I don’t see a direct pipeline between Get-Mailbox and Get-MailboxFolderPermission.

Get-Mailbox |% {Get-MailboxFolderPermission -Identity ($\_.Alias + “:\Inbox”)} | Select Identity, FolderName,User, AccessRights |Export-Csv c:\text.csv

---

<div class="post-metadata">

**Author:** ![matt-bloomfield](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-bloomfield](https://forums.powershell.org/u/matt-bloomfield)\
**Post date:** [January 8, 2016, 10:48pm UTC](https://forums.powershell.org/t/get-mailbox-and-get-mailboxfolderpermission/5486/2 "2016-01-08T22:48:53Z")

</div>

I’m not sure what you’re asking. Do you just want to know what’s happening when you run the command you posted or are you having a problem with the command?

---

<div class="post-metadata">

**Author:** ![peter-jurgens-2](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@peter-jurgens-2](https://forums.powershell.org/u/peter-jurgens-2)\
**Post date:** [January 9, 2016, 3:50am UTC](https://forums.powershell.org/t/get-mailbox-and-get-mailboxfolderpermission/5486/3 "2016-01-09T03:50:42Z")

</div>

Unfortunately get-mailboxfolderpermission does not take pipeline objects directly from any other cmdlets so what youre doing is correct and really the only supported way at this time.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [January 9, 2016, 3:17pm UTC](https://forums.powershell.org/t/get-mailbox-and-get-mailboxfolderpermission/5486/4 "2016-01-09T15:17:20Z")

</div>

You _can_ pipe Get-Mailbox to Get-MailboxFolderPermission (in Exchange 2013, at least), but it only returns results for Top of Information Store, not the Inbox. Therefore, I’d also agree that you’ll need to utilize ForEach-Object so that you can append :\Inbox (or whatever other folder name), to the alias.

---

<div class="post-metadata">

**Author:** ![peter-jurgens-2](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@peter-jurgens-2](https://forums.powershell.org/u/peter-jurgens-2)\
**Post date:** [January 9, 2016, 3:42pm UTC](https://forums.powershell.org/t/get-mailbox-and-get-mailboxfolderpermission/5486/5 "2016-01-09T15:42:41Z")

</div>

In my personal experience I’ve used get-mailboxfolderstatistics to get mailbox folder id’s (folderid property) as I’ve also had to deal with folder names with Unicode characters. That one is :  
[alias/emailaddress]:[folderid]  
for the identity parameter of get-mailboxfolderpermission

---

<div class="post-metadata">

**Author:** ![mariuxi-pacheco](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@mariuxi-pacheco](https://forums.powershell.org/u/mariuxi-pacheco)\
**Post date:** [January 11, 2016, 4:35am UTC](https://forums.powershell.org/t/get-mailbox-and-get-mailboxfolderpermission/5486/6 "2016-01-11T04:35:49Z")

</div>

Everyone! Thanks for your responses. this is helpful.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:43pm UTC](https://forums.powershell.org/t/get-mailbox-and-get-mailboxfolderpermission/5486/7 "2024-05-16T20:43:10Z")

</div>


