Skip to main content

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 containerId or containerName but not both.

-n, --containerName [containerName]

Display name of the Container. Specify either containerId or containerName but not both.

--containerTypeId [containerTypeId]

The ID of the container type. Specify either containerTypeId or containerTypeName when using containerName but not both.

--containerTypeName [containerTypeName]

The name of the container type. Specify either containerTypeId or containerTypeName when using containerName but 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 is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Permissions​

ResourcePermissions
Microsoft GraphFileStorageContainer.Selected, FileStorageContainerType.Manage.All

FileStorageContainerType.Manage.All is required only when using containerTypeName.

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.