@pnp/cli-microsoft365 10.11.0 → 11.0.0-beta.3143306
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devproxy/api-specs/sharepoint.yaml +54 -0
- package/.eslintrc.cjs +2 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Command.js +4 -0
- package/dist/config.js +1 -0
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +1 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +13 -27
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +18 -43
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +10 -21
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +25 -49
- package/dist/m365/entra/commands/app/app-add.js +14 -2
- package/dist/m365/entra/commands/group/group-member-add.js +6 -27
- package/dist/m365/entra/commands/group/group-member-set.js +5 -26
- package/dist/m365/entra/commands/m365group/m365group-get.js +1 -7
- package/dist/m365/entra/commands/m365group/m365group-list.js +1 -7
- package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +1 -7
- package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +1 -7
- package/dist/m365/entra/commands/pim/pim-role-request-list.js +1 -7
- package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +146 -0
- package/dist/m365/entra/commands.js +1 -0
- package/dist/m365/flow/commands/environment/environment-get.js +19 -29
- package/dist/m365/flow/commands/flow-list.js +7 -14
- package/dist/m365/flow/commands/run/run-get.js +1 -7
- package/dist/m365/graph/commands/openextension/openextension-add.js +2 -2
- package/dist/m365/graph/commands/openextension/openextension-set.js +2 -6
- package/dist/m365/graph/commands/subscription/subscription-add.js +3 -10
- package/dist/m365/outlook/commands/mail/mail-searchfolder-add.js +85 -0
- package/dist/m365/outlook/commands.js +1 -0
- package/dist/m365/pa/commands/environment/environment-get.js +18 -23
- package/dist/m365/pp/commands/copilot/copilot-get.js +0 -4
- package/dist/m365/pp/commands/copilot/copilot-list.js +0 -4
- package/dist/m365/pp/commands/copilot/copilot-remove.js +0 -4
- package/dist/m365/pp/commands/environment/environment-get.js +19 -26
- package/dist/m365/pp/commands/solution/solution-publisher-list.js +1 -8
- package/dist/m365/pp/commands.js +0 -7
- package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +1 -7
- package/dist/m365/spe/commands/container/container-add.js +1 -3
- package/dist/m365/spe/commands/container/container-list.js +1 -3
- package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +1 -3
- package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +1 -3
- package/dist/m365/spe/commands/container/container-remove.js +1 -3
- package/dist/m365/spe/commands/containertype/containertype-add.js +67 -90
- package/dist/m365/spe/commands/containertype/containertype-get.js +53 -81
- package/dist/m365/spe/commands/containertype/containertype-list.js +8 -19
- package/dist/m365/spe/commands/containertype/containertype-remove.js +27 -5
- package/dist/m365/spfx/commands/project/project-upgrade.js +23 -66
- package/dist/m365/spo/commands/customaction/customaction-list.js +3 -10
- package/dist/m365/spo/commands/file/file-move.js +2 -8
- package/dist/m365/spo/commands/file/file-version-keep.js +78 -0
- package/dist/m365/spo/commands/homesite/homesite-add.js +26 -2
- package/dist/m365/spo/commands/homesite/homesite-get.js +28 -14
- package/dist/m365/spo/commands/homesite/homesite-list.js +1 -12
- package/dist/m365/spo/commands/homesite/homesite-remove.js +6 -34
- package/dist/m365/spo/commands/homesite/homesite-set.js +88 -44
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -13
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -8
- package/dist/m365/spo/commands/list/list-view-add.js +1 -1
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +17 -25
- package/dist/m365/spo/commands/{tenant/tenant-site-archive.js → site/site-archive.js} +14 -14
- package/dist/m365/spo/commands/{tenant/tenant-site-list.js → site/site-list.js} +16 -27
- package/dist/m365/spo/commands/{tenant/tenant-site-membership-list.js → site/site-membership-list.js} +15 -15
- package/dist/m365/spo/commands/{tenant/tenant-site-rename.js → site/site-rename.js} +14 -14
- package/dist/m365/spo/commands/{tenant/tenant-site-unarchive.js → site/site-unarchive.js} +14 -14
- package/dist/m365/spo/commands/term/term-list.js +1 -7
- package/dist/m365/spo/commands.js +5 -7
- package/dist/m365/teams/commands/chat/chat-member-add.js +3 -9
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +5 -12
- package/dist/m365/teams/commands/report/report-pstncalls.js +5 -12
- package/dist/m365/viva/commands/engage/engage-network-list.js +1 -7
- package/dist/m365/viva/commands.js +0 -3
- package/dist/utils/entraAdministrativeUnit.js +1 -1
- package/dist/utils/entraApp.js +15 -0
- package/dist/utils/spe.js +5 -39
- package/docs/docs/cmd/entra/app/app-add.mdx +7 -1
- package/docs/docs/cmd/entra/group/group-member-add.mdx +7 -26
- package/docs/docs/cmd/entra/group/group-member-set.mdx +5 -23
- package/docs/docs/cmd/entra/m365group/m365group-get.mdx +0 -3
- package/docs/docs/cmd/entra/m365group/m365group-list.mdx +0 -3
- package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +0 -3
- package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +0 -3
- package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +0 -3
- package/docs/docs/cmd/entra/roleassignment/roleassignment-add.mdx +163 -0
- package/docs/docs/cmd/flow/environment/environment-get.mdx +6 -5
- package/docs/docs/cmd/flow/flow-list.mdx +0 -3
- package/docs/docs/cmd/flow/run/run-get.mdx +0 -3
- package/docs/docs/cmd/graph/subscription/subscription-add.mdx +0 -3
- package/docs/docs/cmd/outlook/mail/mail-searchfolder-add.mdx +147 -0
- package/docs/docs/cmd/pa/environment/environment-get.mdx +5 -2
- package/docs/docs/cmd/pp/copilot/copilot-get.mdx +0 -6
- package/docs/docs/cmd/pp/copilot/copilot-list.mdx +0 -6
- package/docs/docs/cmd/pp/copilot/copilot-remove.mdx +0 -6
- package/docs/docs/cmd/pp/environment/environment-get.mdx +5 -2
- package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +0 -3
- package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +0 -3
- package/docs/docs/cmd/spe/container/container-activate.mdx +21 -0
- package/docs/docs/cmd/spe/container/container-add.mdx +29 -0
- package/docs/docs/cmd/spe/container/container-get.mdx +20 -1
- package/docs/docs/cmd/spe/container/container-list.mdx +29 -0
- package/docs/docs/cmd/spe/container/container-permission-list.mdx +19 -0
- package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +29 -0
- package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +31 -0
- package/docs/docs/cmd/spe/container/container-remove.mdx +31 -0
- package/docs/docs/cmd/spe/containertype/containertype-add.mdx +111 -55
- package/docs/docs/cmd/spe/containertype/containertype-get.mdx +69 -38
- package/docs/docs/cmd/spe/containertype/containertype-list.mdx +59 -31
- package/docs/docs/cmd/spe/containertype/containertype-remove.mdx +31 -4
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +18 -5
- package/docs/docs/cmd/spo/file/file-move.mdx +0 -3
- package/docs/docs/cmd/spo/file/file-version-keep.mdx +68 -0
- package/docs/docs/cmd/spo/homesite/homesite-add.mdx +13 -4
- package/docs/docs/cmd/spo/homesite/homesite-get.mdx +44 -23
- package/docs/docs/cmd/spo/homesite/homesite-list.mdx +0 -6
- package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +10 -35
- package/docs/docs/cmd/spo/homesite/homesite-set.mdx +84 -44
- package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +0 -3
- package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +0 -3
- package/docs/docs/cmd/spo/list/list-view-add.mdx +11 -11
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +18 -18
- package/docs/docs/cmd/spo/{tenant/tenant-site-archive.mdx → site/site-archive.mdx} +4 -4
- package/docs/docs/cmd/spo/{tenant/tenant-site-list.mdx → site/site-list.mdx} +7 -16
- package/docs/docs/cmd/spo/{tenant/tenant-site-membership-list.mdx → site/site-membership-list.mdx} +5 -5
- package/docs/docs/cmd/spo/{tenant/tenant-site-rename.mdx → site/site-rename.mdx} +7 -7
- package/docs/docs/cmd/spo/{tenant/tenant-site-unarchive.mdx → site/site-unarchive.mdx} +4 -4
- package/docs/docs/cmd/spo/term/term-list.mdx +0 -3
- package/docs/docs/cmd/teams/chat/chat-member-add.mdx +2 -5
- package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +25 -44
- package/docs/docs/cmd/teams/report/report-pstncalls.mdx +25 -48
- package/docs/docs/cmd/viva/engage/engage-community-list.mdx +19 -0
- package/docs/docs/cmd/viva/engage/engage-community-user-add.mdx +19 -0
- package/docs/docs/cmd/viva/engage/engage-community-user-remove.mdx +19 -0
- package/docs/docs/cmd/viva/engage/engage-network-list.mdx +0 -3
- package/npm-shrinkwrap.json +53 -53
- package/package.json +13 -13
- package/dist/m365/pp/commands/card/card-clone.js +0 -101
- package/dist/m365/pp/commands/card/card-get.js +0 -89
- package/dist/m365/pp/commands/card/card-list.js +0 -55
- package/dist/m365/pp/commands/card/card-remove.js +0 -105
- package/dist/m365/skype/commands/report/report-activitycounts.js +0 -15
- package/dist/m365/skype/commands/report/report-activityusercounts.js +0 -15
- package/dist/m365/skype/commands/report/report-activityuserdetail.js +0 -15
- package/dist/m365/skype/commands.js +0 -7
- package/dist/m365/spo/commands/mail/mail-send.js +0 -108
- package/dist/m365/spo/commands/tenant/SPOTenantSitePropertiesEnumerable.js +0 -2
- package/dist/m365/spo/commands/tenant/TenantSiteProperties.js +0 -2
- package/dist/m365/viva/commands/engage/engage-group-list.js +0 -93
- package/dist/m365/viva/commands/engage/engage-group-user-add.js +0 -73
- package/dist/m365/viva/commands/engage/engage-group-user-remove.js +0 -88
- package/docs/docs/cmd/pp/card/card-clone.mdx +0 -103
- package/docs/docs/cmd/pp/card/card-get.mdx +0 -212
- package/docs/docs/cmd/pp/card/card-list.mdx +0 -163
- package/docs/docs/cmd/pp/card/card-remove.mdx +0 -86
- package/docs/docs/cmd/skype/report/report-activitycounts.mdx +0 -96
- package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +0 -96
- package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +0 -134
- package/docs/docs/cmd/spo/mail/mail-send.mdx +0 -69
- package/docs/docs/cmd/viva/engage/engage-group-list.mdx +0 -174
- package/docs/docs/cmd/viva/engage/engage-group-user-add.mdx +0 -60
- package/docs/docs/cmd/viva/engage/engage-group-user-remove.mdx +0 -58
|
@@ -16,7 +16,10 @@ m365 pp environment get [options]
|
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`-n, --name [name]`
|
|
19
|
-
: The name of the environment. When not specified, the default environment is retrieved.
|
|
19
|
+
: The name of the environment. When not specified, the default environment is retrieved. Specify either `name` or `default`, but not both.
|
|
20
|
+
|
|
21
|
+
`--default`
|
|
22
|
+
: Indicates that the default environment should be retrieved. Specify either `name` or `default`, but not both.
|
|
20
23
|
|
|
21
24
|
`--asAdmin`
|
|
22
25
|
: Run the command as admin and retrieve details of environments you do not have explicitly assigned permissions to.
|
|
@@ -53,7 +56,7 @@ m365 pp environment get --name Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --as
|
|
|
53
56
|
Get information about the default Power Platform environment.
|
|
54
57
|
|
|
55
58
|
```sh
|
|
56
|
-
m365 pp environment get
|
|
59
|
+
m365 pp environment get --default
|
|
57
60
|
```
|
|
58
61
|
|
|
59
62
|
## Response
|
|
@@ -18,9 +18,6 @@ m365 pp solution publisher list [options]
|
|
|
18
18
|
`-e, --environmentName <environmentName>`
|
|
19
19
|
: The name of the environment.
|
|
20
20
|
|
|
21
|
-
`--includeMicrosoftPublishers`
|
|
22
|
-
: (deprecated. Use option `withMicrosoftPublishers` instead) Include the Microsoft Publishers.
|
|
23
|
-
|
|
24
21
|
`--withMicrosoftPublishers`
|
|
25
22
|
: Include the Microsoft Publishers.
|
|
26
23
|
|
|
@@ -18,9 +18,6 @@ m365 purview threatassessment get [options]
|
|
|
18
18
|
`-i, --id <id>`
|
|
19
19
|
: The Id of the threat assessment.
|
|
20
20
|
|
|
21
|
-
`--includeResults`
|
|
22
|
-
: (deprecated. Use option `withResults` instead) Include the threat assessment results.
|
|
23
|
-
|
|
24
21
|
`--withResults`
|
|
25
22
|
: Include the threat assessment results.
|
|
26
23
|
```
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spe container activate
|
|
4
6
|
|
|
@@ -19,6 +21,25 @@ m365 spe container activate [options]
|
|
|
19
21
|
|
|
20
22
|
<Global />
|
|
21
23
|
|
|
24
|
+
## Permissions
|
|
25
|
+
|
|
26
|
+
<Tabs>
|
|
27
|
+
<TabItem value="Delegated">
|
|
28
|
+
|
|
29
|
+
| Resource | Permissions |
|
|
30
|
+
|-----------------|-------------------------------|
|
|
31
|
+
| Microsoft Graph | FileStorageContainer.Selected |
|
|
32
|
+
|
|
33
|
+
</TabItem>
|
|
34
|
+
<TabItem value="Application">
|
|
35
|
+
|
|
36
|
+
| Resource | Permissions |
|
|
37
|
+
|-----------------|-------------------------------|
|
|
38
|
+
| Microsoft Graph | FileStorageContainer.Selected |
|
|
39
|
+
|
|
40
|
+
</TabItem>
|
|
41
|
+
</Tabs>
|
|
42
|
+
|
|
22
43
|
## Examples
|
|
23
44
|
|
|
24
45
|
Activates a container.
|
|
@@ -39,6 +39,35 @@ m365 spe container add [options]
|
|
|
39
39
|
|
|
40
40
|
<Global />
|
|
41
41
|
|
|
42
|
+
## Remarks
|
|
43
|
+
|
|
44
|
+
:::warning
|
|
45
|
+
|
|
46
|
+
The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
|
|
47
|
+
|
|
48
|
+
:::
|
|
49
|
+
|
|
50
|
+
## Permissions
|
|
51
|
+
|
|
52
|
+
<Tabs>
|
|
53
|
+
<TabItem value="Delegated">
|
|
54
|
+
|
|
55
|
+
| Resource | Permissions |
|
|
56
|
+
|-----------------|--------------------------------------------------------------------|
|
|
57
|
+
| Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
|
|
58
|
+
|
|
59
|
+
</TabItem>
|
|
60
|
+
<TabItem value="Application">
|
|
61
|
+
|
|
62
|
+
This command only supports application permissions when using the `containerTypeId` option.
|
|
63
|
+
|
|
64
|
+
| Resource | Permissions |
|
|
65
|
+
|-----------------|-------------------------------|
|
|
66
|
+
| Microsoft Graph | FileStorageContainer.Selected |
|
|
67
|
+
|
|
68
|
+
</TabItem>
|
|
69
|
+
</Tabs>
|
|
70
|
+
|
|
42
71
|
## Examples
|
|
43
72
|
|
|
44
73
|
Creates a new container by specifying the container type ID
|
|
@@ -21,6 +21,25 @@ m365 spe container get [options]
|
|
|
21
21
|
|
|
22
22
|
<Global />
|
|
23
23
|
|
|
24
|
+
## Permissions
|
|
25
|
+
|
|
26
|
+
<Tabs>
|
|
27
|
+
<TabItem value="Delegated">
|
|
28
|
+
|
|
29
|
+
| Resource | Permissions |
|
|
30
|
+
|-----------------|-------------------------------|
|
|
31
|
+
| Microsoft Graph | FileStorageContainer.Selected |
|
|
32
|
+
|
|
33
|
+
</TabItem>
|
|
34
|
+
<TabItem value="Application">
|
|
35
|
+
|
|
36
|
+
| Resource | Permissions |
|
|
37
|
+
|-----------------|-------------------------------|
|
|
38
|
+
| Microsoft Graph | FileStorageContainer.Selected |
|
|
39
|
+
|
|
40
|
+
</TabItem>
|
|
41
|
+
</Tabs>
|
|
42
|
+
|
|
24
43
|
## Examples
|
|
25
44
|
|
|
26
45
|
Gets a container of a specific type.
|
|
@@ -89,4 +108,4 @@ m365 spe container get --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDE
|
|
|
89
108
|
```
|
|
90
109
|
|
|
91
110
|
</TabItem>
|
|
92
|
-
</Tabs>
|
|
111
|
+
</Tabs>
|
|
@@ -24,6 +24,35 @@ m365 spe container list [options]
|
|
|
24
24
|
|
|
25
25
|
<Global />
|
|
26
26
|
|
|
27
|
+
## Remarks
|
|
28
|
+
|
|
29
|
+
:::warning
|
|
30
|
+
|
|
31
|
+
The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
|
|
32
|
+
|
|
33
|
+
:::
|
|
34
|
+
|
|
35
|
+
## Permissions
|
|
36
|
+
|
|
37
|
+
<Tabs>
|
|
38
|
+
<TabItem value="Delegated">
|
|
39
|
+
|
|
40
|
+
| Resource | Permissions |
|
|
41
|
+
|-----------------|--------------------------------------------------------------------|
|
|
42
|
+
| Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
|
|
43
|
+
|
|
44
|
+
</TabItem>
|
|
45
|
+
<TabItem value="Application">
|
|
46
|
+
|
|
47
|
+
This command only supports application permissions when using the `containerTypeId` option.
|
|
48
|
+
|
|
49
|
+
| Resource | Permissions |
|
|
50
|
+
|-----------------|-------------------------------|
|
|
51
|
+
| Microsoft Graph | FileStorageContainer.Selected |
|
|
52
|
+
|
|
53
|
+
</TabItem>
|
|
54
|
+
</Tabs>
|
|
55
|
+
|
|
27
56
|
## Examples
|
|
28
57
|
|
|
29
58
|
List containers of a specific type by id.
|
|
@@ -21,6 +21,25 @@ m365 spe container permission list [options]
|
|
|
21
21
|
|
|
22
22
|
<Global />
|
|
23
23
|
|
|
24
|
+
## Permissions
|
|
25
|
+
|
|
26
|
+
<Tabs>
|
|
27
|
+
<TabItem value="Delegated">
|
|
28
|
+
|
|
29
|
+
| Resource | Permissions |
|
|
30
|
+
|-----------------|-------------------------------|
|
|
31
|
+
| Microsoft Graph | FileStorageContainer.Selected |
|
|
32
|
+
|
|
33
|
+
</TabItem>
|
|
34
|
+
<TabItem value="Application">
|
|
35
|
+
|
|
36
|
+
| Resource | Permissions |
|
|
37
|
+
|-----------------|-------------------------------|
|
|
38
|
+
| Microsoft Graph | FileStorageContainer.Selected |
|
|
39
|
+
|
|
40
|
+
</TabItem>
|
|
41
|
+
</Tabs>
|
|
42
|
+
|
|
24
43
|
## Examples
|
|
25
44
|
|
|
26
45
|
Lists Container permissions.
|
|
@@ -24,6 +24,35 @@ m365 spe container recyclebinitem list [options]
|
|
|
24
24
|
|
|
25
25
|
<Global />
|
|
26
26
|
|
|
27
|
+
## Remarks
|
|
28
|
+
|
|
29
|
+
:::warning
|
|
30
|
+
|
|
31
|
+
The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
|
|
32
|
+
|
|
33
|
+
:::
|
|
34
|
+
|
|
35
|
+
## Permissions
|
|
36
|
+
|
|
37
|
+
<Tabs>
|
|
38
|
+
<TabItem value="Delegated">
|
|
39
|
+
|
|
40
|
+
| Resource | Permissions |
|
|
41
|
+
|-----------------|--------------------------------------------------------------------|
|
|
42
|
+
| Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
|
|
43
|
+
|
|
44
|
+
</TabItem>
|
|
45
|
+
<TabItem value="Application">
|
|
46
|
+
|
|
47
|
+
This command only supports application permissions when using the `containerTypeId` option.
|
|
48
|
+
|
|
49
|
+
| Resource | Permissions |
|
|
50
|
+
|-----------------|-------------------------------|
|
|
51
|
+
| Microsoft Graph | FileStorageContainer.Selected |
|
|
52
|
+
|
|
53
|
+
</TabItem>
|
|
54
|
+
</Tabs>
|
|
55
|
+
|
|
27
56
|
## Examples
|
|
28
57
|
|
|
29
58
|
List deleted containers of a specific container type specified by id.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spe container recyclebinitem restore
|
|
4
6
|
|
|
@@ -28,6 +30,35 @@ m365 spe container recyclebinitem restore [options]
|
|
|
28
30
|
|
|
29
31
|
<Global />
|
|
30
32
|
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
:::warning
|
|
36
|
+
|
|
37
|
+
The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
|
|
38
|
+
|
|
39
|
+
:::
|
|
40
|
+
|
|
41
|
+
## Permissions
|
|
42
|
+
|
|
43
|
+
<Tabs>
|
|
44
|
+
<TabItem value="Delegated">
|
|
45
|
+
|
|
46
|
+
| Resource | Permissions |
|
|
47
|
+
|-----------------|--------------------------------------------------------------------|
|
|
48
|
+
| Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
|
|
49
|
+
|
|
50
|
+
</TabItem>
|
|
51
|
+
<TabItem value="Application">
|
|
52
|
+
|
|
53
|
+
This command only supports application permissions when using the `containerTypeId` option.
|
|
54
|
+
|
|
55
|
+
| Resource | Permissions |
|
|
56
|
+
|-----------------|-------------------------------|
|
|
57
|
+
| Microsoft Graph | FileStorageContainer.Selected |
|
|
58
|
+
|
|
59
|
+
</TabItem>
|
|
60
|
+
</Tabs>
|
|
61
|
+
|
|
31
62
|
## Examples
|
|
32
63
|
|
|
33
64
|
Restore a deleted container by ID.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spe container remove
|
|
4
6
|
|
|
@@ -34,6 +36,35 @@ m365 spe container remove [options]
|
|
|
34
36
|
|
|
35
37
|
<Global />
|
|
36
38
|
|
|
39
|
+
## Remarks
|
|
40
|
+
|
|
41
|
+
:::warning
|
|
42
|
+
|
|
43
|
+
The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
|
|
44
|
+
|
|
45
|
+
:::
|
|
46
|
+
|
|
47
|
+
## Permissions
|
|
48
|
+
|
|
49
|
+
<Tabs>
|
|
50
|
+
<TabItem value="Delegated">
|
|
51
|
+
|
|
52
|
+
| Resource | Permissions |
|
|
53
|
+
|-----------------|--------------------------------------------------------------------|
|
|
54
|
+
| Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
|
|
55
|
+
|
|
56
|
+
</TabItem>
|
|
57
|
+
<TabItem value="Application">
|
|
58
|
+
|
|
59
|
+
This command only supports application permissions when **not** using the `containerTypeName` option.
|
|
60
|
+
|
|
61
|
+
| Resource | Permissions |
|
|
62
|
+
|-----------------|-------------------------------|
|
|
63
|
+
| Microsoft Graph | FileStorageContainer.Selected |
|
|
64
|
+
|
|
65
|
+
</TabItem>
|
|
66
|
+
</Tabs>
|
|
67
|
+
|
|
37
68
|
## Examples
|
|
38
69
|
|
|
39
70
|
Remove a container by ID.
|
|
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
|
|
|
4
4
|
|
|
5
5
|
# spe containertype add
|
|
6
6
|
|
|
7
|
-
Creates a new
|
|
7
|
+
Creates a new container type
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -18,50 +18,105 @@ m365 spe containertype add [options]
|
|
|
18
18
|
`-n, --name <name>`
|
|
19
19
|
: Container type name.
|
|
20
20
|
|
|
21
|
-
`--
|
|
22
|
-
: Application ID of the Microsoft Entra ID app that will be the owner of the
|
|
21
|
+
`--appId [appId]`
|
|
22
|
+
: Application ID of the Microsoft Entra ID app that will be the owner of the container type. By default, the current app is used.
|
|
23
23
|
|
|
24
|
-
`--
|
|
25
|
-
:
|
|
24
|
+
`--billingType [billingType]`
|
|
25
|
+
: The billing type. The possible values are: `standard`, `trial`, `directToCustomer`, `unknownFutureValue`. The default value is `standard`.
|
|
26
26
|
|
|
27
|
-
`--
|
|
28
|
-
:
|
|
27
|
+
`--consumingTenantOverridables [consumingTenantOverridables]`
|
|
28
|
+
: A comma-separated list of settings that can be overridden in the consuming tenant. The possible values are: `urlTemplate`, `isDiscoverabilityEnabled`, `isSearchEnabled`, `isItemVersioningEnabled`, `itemMajorVersionLimit`, `maxStoragePerContainerInBytes`.
|
|
29
29
|
|
|
30
|
-
`--
|
|
31
|
-
:
|
|
30
|
+
`--isDiscoverabilityEnabled [isDiscoverabilityEnabled]`
|
|
31
|
+
: Indicates whether items from containers are surfaced in experiences such as My Activity or Microsoft 365. Valid values: `true`, `false`. The default value is `false`.
|
|
32
32
|
|
|
33
|
-
`--
|
|
34
|
-
:
|
|
33
|
+
`--isItemVersioningEnabled [isItemVersioningEnabled]`
|
|
34
|
+
: Indicates whether item versioning is enabled for the container. Valid values: `true`, `false`. The default value is `true`.
|
|
35
|
+
|
|
36
|
+
`--itemMajorVersionLimit [itemMajorVersionLimit]`
|
|
37
|
+
: Maximum number of versions. `isItemVersioningEnabled` must be enabled. Default value is `500`.
|
|
38
|
+
|
|
39
|
+
`--isSearchEnabled [isSearchEnabled]`
|
|
40
|
+
: Indicates whether search is enabled. Valid values: `true`, `false`. The default value is `true`.
|
|
41
|
+
|
|
42
|
+
`--isSharingRestricted [isSharingRestricted]`
|
|
43
|
+
: Only the manager and owner can share files in the container if restricted sharing is enabled. Valid values: `true`, `false`. The default value is `false`.
|
|
44
|
+
|
|
45
|
+
`--maxStoragePerContainerInBytes [maxStoragePerContainerInBytes]`
|
|
46
|
+
: Controls maximum storage in bytes.
|
|
47
|
+
|
|
48
|
+
`--sharingCapability [sharingCapability]`
|
|
49
|
+
: Sharing capabilities permitted for containers. The possible values are: `disabled`, `externalUserSharingOnly`, `externalUserAndGuestSharing`, `existingExternalUserSharingOnly`.
|
|
50
|
+
|
|
51
|
+
`--urlTemplate [urlTemplate]`
|
|
52
|
+
: Pattern used to redirect files.
|
|
35
53
|
```
|
|
36
54
|
|
|
37
55
|
<Global />
|
|
38
56
|
|
|
39
57
|
## Remarks
|
|
40
58
|
|
|
41
|
-
:::
|
|
59
|
+
:::warning
|
|
42
60
|
|
|
43
|
-
|
|
61
|
+
The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
|
|
44
62
|
|
|
45
63
|
:::
|
|
46
64
|
|
|
47
65
|
:::note
|
|
48
66
|
|
|
49
|
-
|
|
67
|
+
The tenant must own the application that is assigned as the owner of the container type.
|
|
50
68
|
|
|
51
69
|
:::
|
|
52
70
|
|
|
71
|
+
:::note
|
|
72
|
+
|
|
73
|
+
You can only create **one** Trial container type per tenant, a single application registration can only contain **one** container type and a tenant can contain a maximum of **five** containers types in total.
|
|
74
|
+
|
|
75
|
+
:::
|
|
76
|
+
|
|
77
|
+
The registration of a container type in a newly created tenant can fail if the tenant isn't yet fully ready. You might need to wait at least an hour before you can register a container type in a new tenant.
|
|
78
|
+
|
|
79
|
+
## Permissions
|
|
80
|
+
|
|
81
|
+
<Tabs>
|
|
82
|
+
<TabItem value="Delegated">
|
|
83
|
+
|
|
84
|
+
| Resource | Permissions |
|
|
85
|
+
|-----------------|-------------------------------------|
|
|
86
|
+
| Microsoft Graph | FileStorageContainerType.Manage.All |
|
|
87
|
+
|
|
88
|
+
:::info
|
|
89
|
+
|
|
90
|
+
To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
|
|
91
|
+
|
|
92
|
+
:::
|
|
93
|
+
|
|
94
|
+
</TabItem>
|
|
95
|
+
<TabItem value="Application">
|
|
96
|
+
|
|
97
|
+
This command does not support application permissions.
|
|
98
|
+
|
|
99
|
+
</TabItem>
|
|
100
|
+
</Tabs>
|
|
101
|
+
|
|
53
102
|
## Examples
|
|
54
103
|
|
|
55
|
-
Adds a new trial
|
|
104
|
+
Adds a new trial container type.
|
|
105
|
+
|
|
106
|
+
```sh
|
|
107
|
+
m365 spe containertype add --name 'trial container' --applicationId '1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac' --billingType trial
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Adds a new container type using a standard billing type for the current application.
|
|
56
111
|
|
|
57
112
|
```sh
|
|
58
|
-
m365 spe containertype add --name '
|
|
113
|
+
m365 spe containertype add --name 'standard container'
|
|
59
114
|
```
|
|
60
115
|
|
|
61
|
-
Adds a new
|
|
116
|
+
Adds a new container type with additional settings
|
|
62
117
|
|
|
63
118
|
```sh
|
|
64
|
-
m365 spe containertype add --name '
|
|
119
|
+
m365 spe containertype add --name 'Contoso container type' --appId 5181cccf-7a36-44c1-a00d-62581ca4d14a --billingType directToCustomer --consumingTenantOverridables "isDiscoverabilityEnabled, isSearchEnabled" --isDiscoverabilityEnabled true --isItemVersioningEnabled true --isSearchEnabled false --itemMajorVersionLimit 25 --isSharingRestricted true --maxStoragePerContainerInBytes 102030 --sharingCapability externalUserSharingOnly --urlTemplate "https://app.contoso.com/redirect?item={item-id}"
|
|
65
120
|
```
|
|
66
121
|
|
|
67
122
|
## Response
|
|
@@ -71,17 +126,24 @@ m365 spe containertype add --name 'standard container' --applicationId '1b3b8660
|
|
|
71
126
|
|
|
72
127
|
```json
|
|
73
128
|
{
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
129
|
+
"id": "ac8ac926-f924-4f89-bdc0-4e569c143a4d",
|
|
130
|
+
"name": "Contoso container types",
|
|
131
|
+
"owningAppId": "0e083c20-ad1c-4b45-93a6-6dd58fe4d694",
|
|
132
|
+
"billingClassification": "trial",
|
|
133
|
+
"billingStatus": "valid",
|
|
134
|
+
"createdDateTime": "2025-08-28T06:13:12.0080609Z",
|
|
135
|
+
"etag": "MC4wLjAuMA==",
|
|
136
|
+
"settings": {
|
|
137
|
+
"sharingCapability": "externalUserSharingOnly",
|
|
138
|
+
"urlTemplate": "https://app.contoso.com/redirect?tenant={tenant-id}&drive={drive-id}&folder={folder-id}&item={item-id}",
|
|
139
|
+
"isDiscoverabilityEnabled": false,
|
|
140
|
+
"isSearchEnabled": true,
|
|
141
|
+
"isItemVersioningEnabled": true,
|
|
142
|
+
"itemMajorVersionLimit": 500,
|
|
143
|
+
"maxStoragePerContainerInBytes": 27487790694400,
|
|
144
|
+
"isSharingRestricted": false,
|
|
145
|
+
"consumingTenantOverridables": "isSearchEnabled,itemMajorVersionLimit"
|
|
146
|
+
}
|
|
85
147
|
}
|
|
86
148
|
```
|
|
87
149
|
|
|
@@ -89,49 +151,43 @@ m365 spe containertype add --name 'standard container' --applicationId '1b3b8660
|
|
|
89
151
|
<TabItem value="Text">
|
|
90
152
|
|
|
91
153
|
```text
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
Region : West Europe
|
|
101
|
-
ResourceGroup : Standard group
|
|
102
|
-
SPContainerTypeBillingClassification: Standard
|
|
154
|
+
billingClassification: trial
|
|
155
|
+
billingStatus : valid
|
|
156
|
+
createdDateTime : 2025-08-28T06:13:12.0080609Z
|
|
157
|
+
etag : MC4wLjAuMA==
|
|
158
|
+
id : ac8ac926-f924-4f89-bdc0-4e569c143a4d
|
|
159
|
+
name : Contoso container types
|
|
160
|
+
owningAppId : 0e083c20-ad1c-4b45-93a6-6dd58fe4d694
|
|
161
|
+
settings : {"sharingCapability":"externalUserSharingOnly","urlTemplate":"https://app.contoso.com/redirect?tenant={tenant-id}&drive={drive-id}&folder={folder-id}&item={item-id}","isDiscoverabilityEnabled":false,"isSearchEnabled":true,"isItemVersioningEnabled":true,"itemMajorVersionLimit":500,"maxStoragePerContainerInBytes":27487790694400,"isSharingRestricted":false,"consumingTenantOverridables":"isSearchEnabled,itemMajorVersionLimit"}
|
|
103
162
|
```
|
|
104
163
|
|
|
105
164
|
</TabItem>
|
|
106
165
|
<TabItem value="CSV">
|
|
107
166
|
|
|
108
167
|
```csv
|
|
109
|
-
|
|
110
|
-
|
|
168
|
+
id,name,owningAppId,billingClassification,billingStatus,createdDateTime,etag
|
|
169
|
+
ac8ac926-f924-4f89-bdc0-4e569c143a4d,Contoso container types,0e083c20-ad1c-4b45-93a6-6dd58fe4d694,trial,valid,2025-08-28T06:13:12.0080609Z,MC4wLjAuMA==
|
|
111
170
|
```
|
|
112
171
|
|
|
113
172
|
</TabItem>
|
|
114
173
|
<TabItem value="Markdown">
|
|
115
174
|
|
|
116
175
|
```md
|
|
117
|
-
# spe containertype add --name
|
|
176
|
+
# spe containertype add --name "Contoso container types" --billingType "trial" --consumingTenantOverridables "isSearchEnabled,itemMajorVersionLimit" --sharingCapability "externalUserSharingOnly" --urlTemplate "https://app.contoso.com/redirect?tenant={tenant-id}&drive={drive-id}&folder={folder-id}&item={item-id}"
|
|
118
177
|
|
|
119
|
-
Date:
|
|
178
|
+
Date: 28/08/2025
|
|
120
179
|
|
|
121
|
-
##
|
|
180
|
+
## Contoso container types (ac8ac926-f924-4f89-bdc0-4e569c143a4d)
|
|
122
181
|
|
|
123
182
|
Property | Value
|
|
124
183
|
---------|-------
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
Region | West Europe
|
|
133
|
-
ResourceGroup | Standard group
|
|
134
|
-
SPContainerTypeBillingClassification | Standard
|
|
184
|
+
id | ac8ac926-f924-4f89-bdc0-4e569c143a4d
|
|
185
|
+
name | Contoso container types
|
|
186
|
+
owningAppId | 0e083c20-ad1c-4b45-93a6-6dd58fe4d694
|
|
187
|
+
billingClassification | trial
|
|
188
|
+
billingStatus | valid
|
|
189
|
+
createdDateTime | 2025-08-28T06:13:12.0080609Z
|
|
190
|
+
etag | MC4wLjAuMA==
|
|
135
191
|
```
|
|
136
192
|
|
|
137
193
|
</TabItem>
|