Skip to main content

spe container permission list

Lists permissions of a SharePoint Embedded Container

Usage

m365 spe container permission list [options]

Options

-i, --containerId [id]

The ID of the SharePoint Embedded Container. Specify either containerId or containerName but not both.

-n, --containerName [containerName]

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

--containerTypeId [containerTypeId]

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

--containerTypeName [containerTypeName]

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

-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

Examples

Lists Container permissions by id.

m365 spe container permission list --containerId "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"

Lists Container permissions by display name.

m365 spe container permission list --containerName "My Application Storage Container" --containerTypeId "91710488-5756-407f-9046-fbe5f0b4de73"

Lists Container permissions by display name and container type name.

m365 spe container permission list --containerName "My Application Storage Container" --containerTypeName "My container type name"

Response

[
{
"id": "X2k6MCMuZnxtZW1iZXJzaGlwfGRlYnJhYkBuYWNoYW4zNjUub25taWNyb3NvZnQuY29t",
"roles": [
"owner"
],
"grantedToV2": {
"user": {
"displayName": "John Doe",
"email": "john.doe@contoso.onmicrosoft.com",
"userPrincipalName": "john.doe@contoso.onmicrosoft.com"
}
}
}
]