Get-Mailbox and Get-MailboxFolderPermission

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

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?

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.

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.

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 :
for the identity parameter of get-mailboxfolderpermission

Everyone! Thanks for your responses. this is helpful.