spe container permission remove
Removes permissions from a SharePoint Embedded Container
Usage
m365 spe container permission remove [options]
Options
-i, --id <id>ID of the permission to remove.
--containerId [containerId]ID of a SharePoint Embedded container. Specify either
containerIdorcontainerNamebut not both.-n, --containerName [containerName]Display name of the Container. Specify either
containerIdorcontainerNamebut not both.--containerTypeId [containerTypeId]The ID of the container type. Specify either
containerTypeIdorcontainerTypeNamewhen usingcontainerNamebut not both.--containerTypeName [containerTypeName]The name of the container type. Specify either
containerTypeIdorcontainerTypeNamewhen usingcontainerNamebut not both.-f, --force [force]Don't prompt for confirmation.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,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.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Permissions
- Delegated
- Application
| Resource | Permissions |
|---|---|
| Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
FileStorageContainerType.Manage.All is required only when using containerTypeName.
This command only supports application permissions when not using the containerTypeName option.
| Resource | Permissions |
|---|---|
| Microsoft Graph | FileStorageContainer.Selected |
Examples
Removes the specified permission from a container
m365 spe container permission remove --containerId "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --id "cmVhZGVyX2k6MCMuZnxtZW1iZXJzaGlwfHJvcnlicjExMUBvdXRsb29rLmNvbQ"
Removes the specified permission from a container and doesn't prompt for confirmation
m365 spe container permission remove --containerId "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --id "cmVhZGVyX2k6MCMuZnxtZW1iZXJzaGlwfHJvcnlicjExMUBvdXRsb29rLmNvbQ" --force
Response
The command won't return a response on success.