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