Skip to main content

spe container permission set

Updates SharePoint Embedded Container permission

Usage​

m365 spe container permission set [options]

Options​

-i, --id <id>

ID of the permission which will be modified.

--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.

-r, --roles <roles>

Comma separated list of permissions. Possible values are reader, writer, manager, owner.

-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​

Updates role for the specified container

m365 spe container permission set --containerId "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --id "cmVhZGVyX2k6MCMuZnxtZW1iZXJzaGlwfHJvcnlicjExMUBvdXRsb29rLmNvbQ" --roles "reader"

Updates multiple roles for the specified container

m365 spe container permission set --containerId "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --id "cmVhZGVyX2k6MCMuZnxtZW1iZXJzaGlwfHJvcnlicjExMUBvdXRsb29rLmNvbQ" --roles "reader,writer"

Response​

The command won't return a response on success.