spo site apppermission remove¶
Removes a specific application permission from a site
Usage¶
m365 spo site apppermission remove [options]
Options¶
-u, --siteUrl <siteUrl>
- URL of the site collection where the permission to remove is located
--appId [appId]
- App Id
-n, --appDisplayName [appDisplayName]
- App display name
-i, --permissionId [permissionId]
- ID of the permission to remove
--confirm
- Don't prompt for confirmation
-h, --help
- output usage information
--query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Example¶
Removes all application permissions for application with id 89ea5c94-7736-4e25-95ad-3fa95f62b66e on site https://contoso.sharepoint.com/sites/project-x
m365 spo site apppermission remove --siteUrl https://contoso.sharepoint.com/sites/project-x --appId 89ea5c94-7736-4e25-95ad-3fa95f62b66e
Removes all application permissions for application named Foo on site https://contoso.sharepoint.com/sites/project-x
m365 spo site apppermission remove --siteUrl https://contoso.sharepoint.com/sites/project-x --appDisplayName Foo
Removes the application permission with the specified ID on site https://contoso.sharepoint.com/sites/project-x
m365 spo site apppermission remove --siteUrl https://contoso.sharepoint.com/sites/project-x --permissionId aTowaS50fG1zLnNwLmV4dHw4OWVhNWM5NC03NzM2LTRlMjUtOTVhZC0zZmE5NWY2MmI2NmVAZGUzNDhiYzctMWFlYi00NDA2LThjYjMtOTdkYjAyMWNhZGI0