@pnp/cli-microsoft365 11.0.0-beta.1f852eb → 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.
Files changed (159) hide show
  1. package/.devproxy/api-specs/sharepoint.yaml +54 -0
  2. package/.eslintrc.cjs +2 -0
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/Command.js +4 -0
  6. package/dist/config.js +1 -0
  7. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +1 -1
  8. package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +13 -27
  9. package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +18 -43
  10. package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +10 -21
  11. package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +25 -49
  12. package/dist/m365/entra/commands/app/app-add.js +14 -2
  13. package/dist/m365/entra/commands/group/group-member-add.js +6 -27
  14. package/dist/m365/entra/commands/group/group-member-set.js +5 -26
  15. package/dist/m365/entra/commands/m365group/m365group-get.js +1 -7
  16. package/dist/m365/entra/commands/m365group/m365group-list.js +1 -7
  17. package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +1 -7
  18. package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +1 -7
  19. package/dist/m365/entra/commands/pim/pim-role-request-list.js +1 -7
  20. package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +146 -0
  21. package/dist/m365/entra/commands.js +1 -0
  22. package/dist/m365/flow/commands/environment/environment-get.js +19 -29
  23. package/dist/m365/flow/commands/flow-list.js +7 -14
  24. package/dist/m365/flow/commands/run/run-get.js +1 -7
  25. package/dist/m365/graph/commands/openextension/openextension-add.js +2 -2
  26. package/dist/m365/graph/commands/openextension/openextension-set.js +2 -6
  27. package/dist/m365/graph/commands/subscription/subscription-add.js +3 -10
  28. package/dist/m365/outlook/commands/mail/mail-searchfolder-add.js +85 -0
  29. package/dist/m365/outlook/commands.js +1 -0
  30. package/dist/m365/pa/commands/environment/environment-get.js +18 -23
  31. package/dist/m365/pp/commands/copilot/copilot-get.js +0 -4
  32. package/dist/m365/pp/commands/copilot/copilot-list.js +0 -4
  33. package/dist/m365/pp/commands/copilot/copilot-remove.js +0 -4
  34. package/dist/m365/pp/commands/environment/environment-get.js +19 -26
  35. package/dist/m365/pp/commands/solution/solution-publisher-list.js +1 -8
  36. package/dist/m365/pp/commands.js +0 -7
  37. package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +1 -7
  38. package/dist/m365/spe/commands/container/container-add.js +1 -3
  39. package/dist/m365/spe/commands/container/container-list.js +1 -3
  40. package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +1 -3
  41. package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +1 -3
  42. package/dist/m365/spe/commands/container/container-remove.js +1 -3
  43. package/dist/m365/spe/commands/containertype/containertype-add.js +67 -90
  44. package/dist/m365/spe/commands/containertype/containertype-get.js +53 -81
  45. package/dist/m365/spe/commands/containertype/containertype-list.js +8 -19
  46. package/dist/m365/spe/commands/containertype/containertype-remove.js +27 -5
  47. package/dist/m365/spfx/commands/project/project-upgrade.js +23 -66
  48. package/dist/m365/spo/commands/customaction/customaction-list.js +3 -10
  49. package/dist/m365/spo/commands/file/file-move.js +2 -8
  50. package/dist/m365/spo/commands/file/file-version-keep.js +78 -0
  51. package/dist/m365/spo/commands/homesite/homesite-add.js +26 -2
  52. package/dist/m365/spo/commands/homesite/homesite-get.js +28 -14
  53. package/dist/m365/spo/commands/homesite/homesite-list.js +1 -12
  54. package/dist/m365/spo/commands/homesite/homesite-remove.js +6 -34
  55. package/dist/m365/spo/commands/homesite/homesite-set.js +88 -44
  56. package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -13
  57. package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -8
  58. package/dist/m365/spo/commands/list/list-view-add.js +1 -1
  59. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +17 -25
  60. package/dist/m365/spo/commands/{tenant/tenant-site-archive.js → site/site-archive.js} +14 -14
  61. package/dist/m365/spo/commands/{tenant/tenant-site-list.js → site/site-list.js} +16 -27
  62. package/dist/m365/spo/commands/{tenant/tenant-site-membership-list.js → site/site-membership-list.js} +15 -15
  63. package/dist/m365/spo/commands/{tenant/tenant-site-rename.js → site/site-rename.js} +14 -14
  64. package/dist/m365/spo/commands/{tenant/tenant-site-unarchive.js → site/site-unarchive.js} +14 -14
  65. package/dist/m365/spo/commands/term/term-list.js +1 -7
  66. package/dist/m365/spo/commands.js +5 -7
  67. package/dist/m365/teams/commands/chat/chat-member-add.js +3 -9
  68. package/dist/m365/teams/commands/report/report-directroutingcalls.js +5 -12
  69. package/dist/m365/teams/commands/report/report-pstncalls.js +5 -12
  70. package/dist/m365/viva/commands/engage/engage-network-list.js +1 -7
  71. package/dist/m365/viva/commands.js +0 -3
  72. package/dist/utils/entraAdministrativeUnit.js +1 -1
  73. package/dist/utils/entraApp.js +15 -0
  74. package/dist/utils/spe.js +5 -39
  75. package/docs/docs/cmd/entra/app/app-add.mdx +7 -1
  76. package/docs/docs/cmd/entra/group/group-member-add.mdx +7 -26
  77. package/docs/docs/cmd/entra/group/group-member-set.mdx +5 -23
  78. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +0 -3
  79. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +0 -3
  80. package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +0 -3
  81. package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +0 -3
  82. package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +0 -3
  83. package/docs/docs/cmd/entra/roleassignment/roleassignment-add.mdx +163 -0
  84. package/docs/docs/cmd/flow/environment/environment-get.mdx +6 -5
  85. package/docs/docs/cmd/flow/flow-list.mdx +0 -3
  86. package/docs/docs/cmd/flow/run/run-get.mdx +0 -3
  87. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +0 -3
  88. package/docs/docs/cmd/outlook/mail/mail-searchfolder-add.mdx +147 -0
  89. package/docs/docs/cmd/pa/environment/environment-get.mdx +5 -2
  90. package/docs/docs/cmd/pp/copilot/copilot-get.mdx +0 -6
  91. package/docs/docs/cmd/pp/copilot/copilot-list.mdx +0 -6
  92. package/docs/docs/cmd/pp/copilot/copilot-remove.mdx +0 -6
  93. package/docs/docs/cmd/pp/environment/environment-get.mdx +5 -2
  94. package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +0 -3
  95. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +0 -3
  96. package/docs/docs/cmd/spe/container/container-activate.mdx +21 -0
  97. package/docs/docs/cmd/spe/container/container-add.mdx +29 -0
  98. package/docs/docs/cmd/spe/container/container-get.mdx +20 -1
  99. package/docs/docs/cmd/spe/container/container-list.mdx +29 -0
  100. package/docs/docs/cmd/spe/container/container-permission-list.mdx +19 -0
  101. package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +29 -0
  102. package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +31 -0
  103. package/docs/docs/cmd/spe/container/container-remove.mdx +31 -0
  104. package/docs/docs/cmd/spe/containertype/containertype-add.mdx +111 -55
  105. package/docs/docs/cmd/spe/containertype/containertype-get.mdx +69 -38
  106. package/docs/docs/cmd/spe/containertype/containertype-list.mdx +59 -31
  107. package/docs/docs/cmd/spe/containertype/containertype-remove.mdx +31 -4
  108. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +18 -5
  109. package/docs/docs/cmd/spo/file/file-move.mdx +0 -3
  110. package/docs/docs/cmd/spo/file/file-version-keep.mdx +68 -0
  111. package/docs/docs/cmd/spo/homesite/homesite-add.mdx +13 -4
  112. package/docs/docs/cmd/spo/homesite/homesite-get.mdx +44 -23
  113. package/docs/docs/cmd/spo/homesite/homesite-list.mdx +0 -6
  114. package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +10 -35
  115. package/docs/docs/cmd/spo/homesite/homesite-set.mdx +84 -44
  116. package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +0 -3
  117. package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +0 -3
  118. package/docs/docs/cmd/spo/list/list-view-add.mdx +11 -11
  119. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +18 -18
  120. package/docs/docs/cmd/spo/{tenant/tenant-site-archive.mdx → site/site-archive.mdx} +4 -4
  121. package/docs/docs/cmd/spo/{tenant/tenant-site-list.mdx → site/site-list.mdx} +7 -16
  122. package/docs/docs/cmd/spo/{tenant/tenant-site-membership-list.mdx → site/site-membership-list.mdx} +5 -5
  123. package/docs/docs/cmd/spo/{tenant/tenant-site-rename.mdx → site/site-rename.mdx} +7 -7
  124. package/docs/docs/cmd/spo/{tenant/tenant-site-unarchive.mdx → site/site-unarchive.mdx} +4 -4
  125. package/docs/docs/cmd/spo/term/term-list.mdx +0 -3
  126. package/docs/docs/cmd/teams/chat/chat-member-add.mdx +2 -5
  127. package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +25 -44
  128. package/docs/docs/cmd/teams/report/report-pstncalls.mdx +25 -48
  129. package/docs/docs/cmd/viva/engage/engage-community-list.mdx +19 -0
  130. package/docs/docs/cmd/viva/engage/engage-community-user-add.mdx +19 -0
  131. package/docs/docs/cmd/viva/engage/engage-community-user-remove.mdx +19 -0
  132. package/docs/docs/cmd/viva/engage/engage-network-list.mdx +0 -3
  133. package/npm-shrinkwrap.json +51 -51
  134. package/package.json +12 -12
  135. package/dist/m365/pp/commands/card/card-clone.js +0 -101
  136. package/dist/m365/pp/commands/card/card-get.js +0 -89
  137. package/dist/m365/pp/commands/card/card-list.js +0 -55
  138. package/dist/m365/pp/commands/card/card-remove.js +0 -105
  139. package/dist/m365/skype/commands/report/report-activitycounts.js +0 -15
  140. package/dist/m365/skype/commands/report/report-activityusercounts.js +0 -15
  141. package/dist/m365/skype/commands/report/report-activityuserdetail.js +0 -15
  142. package/dist/m365/skype/commands.js +0 -7
  143. package/dist/m365/spo/commands/mail/mail-send.js +0 -108
  144. package/dist/m365/spo/commands/tenant/SPOTenantSitePropertiesEnumerable.js +0 -2
  145. package/dist/m365/spo/commands/tenant/TenantSiteProperties.js +0 -2
  146. package/dist/m365/viva/commands/engage/engage-group-list.js +0 -93
  147. package/dist/m365/viva/commands/engage/engage-group-user-add.js +0 -73
  148. package/dist/m365/viva/commands/engage/engage-group-user-remove.js +0 -88
  149. package/docs/docs/cmd/pp/card/card-clone.mdx +0 -103
  150. package/docs/docs/cmd/pp/card/card-get.mdx +0 -212
  151. package/docs/docs/cmd/pp/card/card-list.mdx +0 -163
  152. package/docs/docs/cmd/pp/card/card-remove.mdx +0 -86
  153. package/docs/docs/cmd/skype/report/report-activitycounts.mdx +0 -96
  154. package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +0 -96
  155. package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +0 -134
  156. package/docs/docs/cmd/spo/mail/mail-send.mdx +0 -69
  157. package/docs/docs/cmd/viva/engage/engage-group-list.mdx +0 -174
  158. package/docs/docs/cmd/viva/engage/engage-group-user-add.mdx +0 -60
  159. package/docs/docs/cmd/viva/engage/engage-group-user-remove.mdx +0 -58
@@ -12,12 +12,6 @@ Lists Microsoft Power Platform copilots in the specified Power Platform environm
12
12
  m365 pp copilot list [options]
13
13
  ```
14
14
 
15
- ## Alias
16
-
17
- ```sh
18
- m365 pp chatbot list [options]
19
- ```
20
-
21
15
  ## Options
22
16
 
23
17
  ```md definition-list
@@ -10,12 +10,6 @@ Removes the specified copilot
10
10
  m365 pp copilot remove [options]
11
11
  ```
12
12
 
13
- ## Alias
14
-
15
- ```sh
16
- m365 pp chatbot remove [options]
17
- ```
18
-
19
13
  ## Options
20
14
 
21
15
  ```md definition-list
@@ -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 Container Type for your app
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
- `--applicationId <applicationId>`
22
- : Application ID of the Microsoft Entra ID app that will be the owner of the Container Type.
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
- `--trial`
25
- : Specify if the Container Type should be a trial.
24
+ `--billingType [billingType]`
25
+ : The billing type. The possible values are: `standard`, `trial`, `directToCustomer`, `unknownFutureValue`. The default value is `standard`.
26
26
 
27
- `--azureSubscriptionId [azureSubscriptionId]`
28
- : Azure Subscription Id. Required unless the `trial` option was specified.
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
- `--resourceGroup [resourceGroup]`
31
- : Azure Resource group for billing. Required unless the `trial` option was specified.
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
- `--region [region]`
34
- : Region. Required unless the `trial` option was specified.
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
- :::info
59
+ :::warning
42
60
 
43
- To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
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
- 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.
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 Container Type
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 'trial container' --applicationId '1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac' --trial
113
+ m365 spe containertype add --name 'standard container'
59
114
  ```
60
115
 
61
- Adds a new Container Type using a standard Container Type.
116
+ Adds a new container type with additional settings
62
117
 
63
118
  ```sh
64
- m365 spe containertype add --name 'standard container' --applicationId '1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac' --azureSubscriptionId 'f08575e2-36c4-407f-a891-eabae23f66bc' --region 'West Europe' --resourceGroup 'Standard group'
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
- "AzureSubscriptionId": "f08575e2-36c4-407f-a891-eabae23f66bc",
75
- "ContainerTypeId": "c33cfee5-c9b6-0a2a-02ee-060693a57f37",
76
- "CreationDate": "3/11/2024 2:38:56 PM",
77
- "DisplayName": "standard container",
78
- "ExpiryDate": null,
79
- "IsBillingProfileRequired": true,
80
- "OwningAppId": "1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac",
81
- "OwningTenantId": "e1dd4023-a656-480a-8a0e-c1b1eec51e1d",
82
- "Region": "West Europe",
83
- "ResourceGroup": "Standard group",
84
- "SPContainerTypeBillingClassification": "Standard"
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
- AzureSubscriptionId : f08575e2-36c4-407f-a891-eabae23f66bc
93
- ContainerTypeId : 331f3b15-b4f6-05e0-05de-2d8c370462b3
94
- CreationDate : 3/11/2024 2:47:16 PM
95
- DisplayName : Standard container
96
- ExpiryDate : null
97
- IsBillingProfileRequired : false
98
- OwningAppId : 1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac
99
- OwningTenantId : e1dd4023-a656-480a-8a0e-c1b1eec51e1d
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
- AzureSubscriptionId,ContainerTypeId,CreationDate,DisplayName,ExpiryDate,IsBillingProfileRequired,OwningAppId,OwningTenantId,Region,ResourceGroup,SPContainerTypeBillingClassification
110
- f08575e2-36c4-407f-a891-eabae23f66bc,331f3b15-b4f6-05e0-05de-2d8c370462b3,3/11/2024 2:48:13 PM,Standard container,,,1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac,e1dd4023-a656-480a-8a0e-c1b1eec51e1d,West Europe,Standard group,Standard
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 'Standard container' --applicationId '1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac' --azureSubscriptionId 'f08575e2-36c4-407f-a891-eabae23f66bc' --region 'West Europe' --resourceGroup 'Standard group'
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: 11/03/2024
178
+ Date: 28/08/2025
120
179
 
121
- ## Standard container
180
+ ## Contoso container types (ac8ac926-f924-4f89-bdc0-4e569c143a4d)
122
181
 
123
182
  Property | Value
124
183
  ---------|-------
125
- AzureSubscriptionId | f08575e2-36c4-407f-a891-eabae23f66bc
126
- ContainerTypeId | 331f3b15-b4f6-05e0-05de-2d8c370462b3
127
- CreationDate | 3/11/2024 2:49:16 PM
128
- DisplayName | Standard Container
129
- IsBillingProfileRequired | false
130
- OwningAppId | 1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac
131
- OwningTenantId | e1dd4023-a656-480a-8a0e-c1b1eec51e1d
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>