spo site apppermission list
Lists application permissions for a site
Usage
m365 spo site apppermission list [options]
Options
-u, --siteUrl <siteUrl>
URL of the site collection to retrieve information for
-i, --appId [appId]
Id of the application to filter by
-n, --appDisplayName [appDisplayName]
Display name of the application to filter by
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
To filter by an app, pass in either appId
or appDisplayName
not both
Examples
Return list of application permissions for the https://contoso.sharepoint.com/sites/project-x site collection.
m365 spo site apppermission list --siteUrl https://contoso.sharepoint.com/sites/project-x
Return list of application permissions for the https://contoso.sharepoint.com/sites/project-x site collection and filter by an application called Foo
m365 spo site apppermission list --siteUrl https://contoso.sharepoint.com/sites/project-x --appDisplayName Foo
Response
- JSON
- Text
- CSV
- Markdown
[
{
"appDisplayName": "Foo",
"appId": "5c89fbbf-670e-48e7-a0bc-fa8942c895a2",
"permissionId": "aTowaS50fG1zLnNwLmV4dHw1Yzg5ZmJiZi02NzBlLTQ4ZTctYTBiYy1mYTg5NDJjODk1YTJAMWU4NTJiNDktYmY0Yi00YmE1LWJjZDQtYThjNDcwNmM4ZWQ0",
"roles": [
"manage"
]
}
]
appDisplayName appId permissionId roles
-------------- ------------------------------------ ------------------------------------------------------------------------------------------------------------------------ ------
Foo 5c89fbbf-670e-48e7-a0bc-fa8942c895a2 aTowaS50fG1zLnNwLmV4dHw1Yzg5ZmJiZi02NzBlLTQ4ZTctYTBiYy1mYTg5NDJjODk1YTJAMWU4NTJiNDktYmY0Yi00YmE1LWJjZDQtYThjNDcwNmM4ZWQ0 manage
appDisplayName,appId,permissionId
Foo,5c89fbbf-670e-48e7-a0bc-fa8942c895a2,aTowaS50fG1zLnNwLmV4dHw1Yzg5ZmJiZi02NzBlLTQ4ZTctYTBiYy1mYTg5NDJjODk1YTJAMWU4NTJiNDktYmY0Yi00YmE1LWJjZDQtYThjNDcwNmM4ZWQ0
# spo site apppermission list --siteUrl "https://contoso.sharepoint.com/sites/team1"
Date: 2023-06-21
Property | Value
---------|-------
appDisplayName | Foo
appId | 5c89fbbf-670e-48e7-a0bc-fa8942c895a2
permissionId | aTowaS50fG1zLnNwLmV4dHw1Yzg5ZmJiZi02NzBlLTQ4ZTctYTBiYy1mYTg5NDJjODk1YTJAMWU4NTJiNDktYmY0Yi00YmE1LWJjZDQtYThjNDcwNmM4ZWQ0