The Mailbox parameter of Get-App (Microsoft Exchange) isn't recognized

Rick Kirkham 281 Reputation points Microsoft Employee
2025-02-21T23:17:26.5066667+00:00

The ExhangeOnlineManagement module has a command called Get-App.

As seen in the help page for Get-App at https://learn.microsoft.com/en-us/powershell/module/exchange/get-app?view=exchange-ps, there is a parameter called "-Mailbox", but when I run Get-App -Mailbox rickki, I get the error A parameter cannot be found that matches parameter name 'Mailbox'.

User's image

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,797 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 47,691 Reputation points
    2025-02-22T02:53:00.7466667+00:00

    From the help for the Get-App cmdlets' "Description" section:

    You need to be assigned permissions before you can run this cmdlet. Although this topic lists all parameters for the cmdlet, you may not have access to some parameters if they're not included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet.

    https://learn.microsoft.com/en-us/powershell/exchange/find-exchange-cmdlet-permissions

    If you need more help you should probably use an appropriate Exchange tag to engage with the right SMEs when you post your question. PowerShell isn't the problem, here.


2 additional answers

Sort by: Most helpful
  1. Bruce Jing-MSFT 10,385 Reputation points Microsoft External Staff
    2025-02-24T05:53:23.1033333+00:00

    Hi,@Rick Kirkham

    Thanks for posting your question in the Microsoft Q&A forum.

    According to your description, when you run the Get-App and Get-ManagementRole commands, there is a message that the commands are not recognized.I rather agree with Rich Matheisen that the probability of this happening is still due to the fact that you don't have permission.

    Please check that you have the following permissions first, which is a prerequisite for running the Get-ManagementRole command.

    User's image

    See the screenshot below for the permissions needed to run the Get-APP command:

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


  2. Rick Kirkham 281 Reputation points Microsoft Employee
    2025-02-24T19:39:41.9+00:00

    Just to close the loop. These cmdlets work when I use the credentials for my developer tenancy in Microsoft 365. They fail when I use my ordinary corp account. So, it probably is a permissions issue. Thanks for your help.

    0 comments No comments

Your answer

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