Usage
m365 spe container permission set [options]
Description
Updates SharePoint Embedded Container permission
Options
| Option |
Description |
-i, --id <id> |
ID of the permission which will be modified. |
--containerId [containerId] |
ID of the 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. |
Examples
Adds a reader role for the specified user to the container
m365 spe container permission set --containerId "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --id "cmVhZGVyX2k6MCMuZnxtZW1iZXJzaGlwfHJvcnlicjExMUBvdXRsb29rLmNvbQ" --roles "reader"
Default properties
No response
Additional Info
we may use the following API:
https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-update-permissions?view=graph-rest-1.0&tabs=http
Usage
m365 spe container permission set [options]
Description
Updates SharePoint Embedded Container permission
Options
-i, --id <id>--containerId [containerId]containerIdorcontainerNamebut not both.-n, --containerName [containerName]containerIdorcontainerNamebut not both.--containerTypeId [containerTypeId]containerTypeIdorcontainerTypeNamewhen usingcontainerNamebut not both.--containerTypeName [containerTypeName]containerTypeIdorcontainerTypeNamewhen usingcontainerNamebut not both.-r, --roles <roles>reader,writer,manager,owner.Examples
Adds a reader role for the specified user to the container
Default properties
No response
Additional Info
we may use the following API:
https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-update-permissions?view=graph-rest-1.0&tabs=http