Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Run "pa app get" as admin. Closes #5518 #5609

Closed
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/docs/cmd/pa/app/app-get.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ m365 pa app get [options]

`-d, --displayName [displayName]`
: The display name of the Microsoft Power App to get information about.

`--asAdmin`
MartinM85 marked this conversation as resolved.
Show resolved Hide resolved
: Run the command as admin for apps you don't have permission to.

`-e, --environmentName [environmentName]`
: The name of the environment. Required when using `asAdmin`.
```

<Global />
Expand All @@ -32,6 +38,9 @@ This command is based on an API that is currently in preview and is subject to c

:::

As a maker, you are able to retrieve the Power Apps you have permission to. As an administrator, you are also able to retrieve Power Apps from other users you don't have permission to. To get the app from another user, use the `asAdmin` option and make sure to specify the `environment` option as well.


If you try to retrieve a non-existing Microsoft Power App, you will get the `Request failed with status code 404` error.

## Examples
Expand All @@ -48,6 +57,12 @@ Get information about the specified Microsoft Power App by the app's display nam
m365 pa app get --displayName App
```

Get information about the specific app you do not have access to.

```sh
m365 pa app get --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --asAdmin
```

## Response

<Tabs>
Expand Down
Loading