@pnp/cli-microsoft365 11.0.0-beta.88d51e6 → 11.0.0

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 (107) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/Command.js +4 -0
  4. package/dist/config.js +1 -0
  5. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +1 -1
  6. package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +13 -27
  7. package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +18 -43
  8. package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +10 -21
  9. package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +25 -49
  10. package/dist/m365/entra/commands/group/group-member-add.js +6 -27
  11. package/dist/m365/entra/commands/group/group-member-set.js +5 -26
  12. package/dist/m365/entra/commands/m365group/m365group-get.js +1 -7
  13. package/dist/m365/entra/commands/m365group/m365group-list.js +1 -7
  14. package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +1 -7
  15. package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +1 -7
  16. package/dist/m365/entra/commands/pim/pim-role-request-list.js +1 -7
  17. package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +146 -0
  18. package/dist/m365/entra/commands.js +1 -0
  19. package/dist/m365/flow/commands/flow-list.js +7 -14
  20. package/dist/m365/flow/commands/run/run-get.js +1 -7
  21. package/dist/m365/graph/commands/openextension/openextension-add.js +2 -2
  22. package/dist/m365/graph/commands/openextension/openextension-set.js +2 -6
  23. package/dist/m365/graph/commands/subscription/subscription-add.js +3 -10
  24. package/dist/m365/pp/commands/copilot/copilot-get.js +0 -4
  25. package/dist/m365/pp/commands/copilot/copilot-list.js +0 -4
  26. package/dist/m365/pp/commands/copilot/copilot-remove.js +0 -4
  27. package/dist/m365/pp/commands/solution/solution-publisher-list.js +1 -8
  28. package/dist/m365/pp/commands.js +0 -3
  29. package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +1 -7
  30. package/dist/m365/spe/commands/container/container-add.js +1 -3
  31. package/dist/m365/spe/commands/container/container-list.js +1 -3
  32. package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +1 -3
  33. package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +1 -3
  34. package/dist/m365/spe/commands/container/container-remove.js +1 -3
  35. package/dist/m365/spe/commands/containertype/containertype-add.js +67 -90
  36. package/dist/m365/spe/commands/containertype/containertype-get.js +53 -81
  37. package/dist/m365/spe/commands/containertype/containertype-list.js +8 -19
  38. package/dist/m365/spe/commands/containertype/containertype-remove.js +27 -5
  39. package/dist/m365/spfx/commands/project/project-upgrade.js +23 -66
  40. package/dist/m365/spo/commands/file/file-move.js +2 -8
  41. package/dist/m365/spo/commands/homesite/homesite-add.js +26 -2
  42. package/dist/m365/spo/commands/homesite/homesite-get.js +28 -14
  43. package/dist/m365/spo/commands/homesite/homesite-list.js +1 -12
  44. package/dist/m365/spo/commands/homesite/homesite-remove.js +6 -34
  45. package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -13
  46. package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -8
  47. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +17 -25
  48. package/dist/m365/spo/commands/{tenant/tenant-site-archive.js → site/site-archive.js} +14 -14
  49. package/dist/m365/spo/commands/{tenant/tenant-site-list.js → site/site-list.js} +16 -27
  50. package/dist/m365/spo/commands/{tenant/tenant-site-membership-list.js → site/site-membership-list.js} +15 -15
  51. package/dist/m365/spo/commands/{tenant/tenant-site-rename.js → site/site-rename.js} +14 -14
  52. package/dist/m365/spo/commands/{tenant/tenant-site-unarchive.js → site/site-unarchive.js} +14 -14
  53. package/dist/m365/spo/commands/term/term-list.js +1 -7
  54. package/dist/m365/spo/commands.js +4 -6
  55. package/dist/m365/teams/commands/chat/chat-member-add.js +3 -9
  56. package/dist/m365/viva/commands/engage/engage-network-list.js +1 -7
  57. package/dist/utils/entraAdministrativeUnit.js +1 -1
  58. package/dist/utils/spe.js +5 -39
  59. package/docs/docs/cmd/entra/group/group-member-add.mdx +7 -26
  60. package/docs/docs/cmd/entra/group/group-member-set.mdx +5 -23
  61. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +0 -3
  62. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +0 -3
  63. package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +0 -3
  64. package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +0 -3
  65. package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +0 -3
  66. package/docs/docs/cmd/entra/roleassignment/roleassignment-add.mdx +163 -0
  67. package/docs/docs/cmd/flow/flow-list.mdx +0 -3
  68. package/docs/docs/cmd/flow/run/run-get.mdx +0 -3
  69. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +0 -3
  70. package/docs/docs/cmd/pp/copilot/copilot-get.mdx +0 -6
  71. package/docs/docs/cmd/pp/copilot/copilot-list.mdx +0 -6
  72. package/docs/docs/cmd/pp/copilot/copilot-remove.mdx +0 -6
  73. package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +0 -3
  74. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +0 -3
  75. package/docs/docs/cmd/spe/container/container-activate.mdx +21 -0
  76. package/docs/docs/cmd/spe/container/container-add.mdx +29 -0
  77. package/docs/docs/cmd/spe/container/container-get.mdx +20 -1
  78. package/docs/docs/cmd/spe/container/container-list.mdx +29 -0
  79. package/docs/docs/cmd/spe/container/container-permission-list.mdx +19 -0
  80. package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +29 -0
  81. package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +31 -0
  82. package/docs/docs/cmd/spe/container/container-remove.mdx +31 -0
  83. package/docs/docs/cmd/spe/containertype/containertype-add.mdx +111 -55
  84. package/docs/docs/cmd/spe/containertype/containertype-get.mdx +69 -38
  85. package/docs/docs/cmd/spe/containertype/containertype-list.mdx +59 -31
  86. package/docs/docs/cmd/spe/containertype/containertype-remove.mdx +31 -4
  87. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +18 -5
  88. package/docs/docs/cmd/spo/file/file-move.mdx +0 -3
  89. package/docs/docs/cmd/spo/homesite/homesite-add.mdx +13 -4
  90. package/docs/docs/cmd/spo/homesite/homesite-get.mdx +44 -23
  91. package/docs/docs/cmd/spo/homesite/homesite-list.mdx +0 -6
  92. package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +10 -35
  93. package/docs/docs/cmd/spo/homesite/homesite-set.mdx +1 -1
  94. package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +0 -3
  95. package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +0 -3
  96. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +18 -18
  97. package/docs/docs/cmd/spo/{tenant/tenant-site-archive.mdx → site/site-archive.mdx} +4 -4
  98. package/docs/docs/cmd/spo/{tenant/tenant-site-list.mdx → site/site-list.mdx} +7 -16
  99. package/docs/docs/cmd/spo/{tenant/tenant-site-membership-list.mdx → site/site-membership-list.mdx} +5 -5
  100. package/docs/docs/cmd/spo/{tenant/tenant-site-rename.mdx → site/site-rename.mdx} +7 -7
  101. package/docs/docs/cmd/spo/{tenant/tenant-site-unarchive.mdx → site/site-unarchive.mdx} +4 -4
  102. package/docs/docs/cmd/spo/term/term-list.mdx +0 -3
  103. package/docs/docs/cmd/teams/chat/chat-member-add.mdx +2 -5
  104. package/docs/docs/cmd/viva/engage/engage-network-list.mdx +0 -3
  105. package/package.json +2 -2
  106. package/dist/m365/spo/commands/tenant/SPOTenantSitePropertiesEnumerable.js +0 -2
  107. package/dist/m365/spo/commands/tenant/TenantSiteProperties.js +0 -2
@@ -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>
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
4
4
 
5
5
  # spe containertype get
6
6
 
7
- Get a specific Container Type
7
+ Gets a specific container type
8
8
 
9
9
  ## Usage
10
10
 
@@ -16,34 +16,57 @@ m365 containertype get [options]
16
16
 
17
17
  ```md definition-list
18
18
  `-i, --id [id]`
19
- : The Id of the Container Type. Specify either id or name but not both.
19
+ : The ID of the container type. Specify either id or name but not both.
20
20
 
21
21
  `-n, --name [name]`
22
- : The Container Type name. Specify either id or name but not both.
22
+ : The container type name. Specify either id or name but not both.
23
23
  ```
24
24
 
25
25
  <Global />
26
26
 
27
27
  ## Remarks
28
28
 
29
- :::info
29
+ :::warning
30
30
 
31
- To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
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
32
 
33
33
  :::
34
34
 
35
+ ## Permissions
36
+
37
+ <Tabs>
38
+ <TabItem value="Delegated">
39
+
40
+ | Resource | Permissions |
41
+ |-----------------|-------------------------------------|
42
+ | Microsoft Graph | FileStorageContainerType.Manage.All |
43
+
44
+ :::info
45
+
46
+ To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
47
+
48
+ :::
49
+
50
+ </TabItem>
51
+ <TabItem value="Application">
52
+
53
+ This command does not support application permissions.
54
+
55
+ </TabItem>
56
+ </Tabs>
57
+
35
58
  ## Examples
36
59
 
37
- Gets Container Type by id
60
+ Gets container type by ID
38
61
 
39
62
  ```sh
40
- m365 spe containertype get --id '4ec4aefd-4fa3-0e4a-20c3-6e68389e7138'
63
+ m365 spe containertype get --id 5de5c251-61c2-40f5-8947-5a719c1c0b71
41
64
  ```
42
65
 
43
- Gets Container Type by name
66
+ Gets container type by name
44
67
 
45
68
  ```sh
46
- m365 spe containertype get --name 'test container'
69
+ m365 spe containertype get --name 'Container Type 1'
47
70
  ```
48
71
 
49
72
  ## Response
@@ -53,19 +76,23 @@ m365 spe containertype get --name 'test container'
53
76
 
54
77
  ```json
55
78
  {
56
- "_ObjectType_": "Microsoft.Online.SharePoint.TenantAdministration.SPContainerTypeProperties",
57
- "ApplicationRedirectUrl": null,
58
- "AzureSubscriptionId": "/Guid(00000000-0000-0000-0000-000000000000)/",
59
- "ContainerTypeId": "/Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/",
60
- "CreationDate": null,
61
- "DisplayName": "test1",
62
- "ExpiryDate": null,
63
- "IsBillingProfileRequired": true,
64
- "OwningAppId": "/Guid(df4085cc-9a38-4255-badc-5c5225610475)/",
65
- "OwningTenantId": "/Guid(00000000-0000-0000-0000-000000000000)/",
66
- "Region": null,
67
- "ResourceGroup": null,
68
- "SPContainerTypeBillingClassification": 0
79
+ "id": "5de5c251-61c2-40f5-8947-5a719c1c0b71",
80
+ "name": "Container Type 1",
81
+ "owningAppId": "a6f79b17-a0f5-47d1-bfde-9995caebc2a3",
82
+ "billingClassification": "standard",
83
+ "billingStatus": "invalid",
84
+ "createdDateTime": "2025-06-19T05:17:32.0760075Z",
85
+ "etag": "MC4wLjAuMA==",
86
+ "settings": {
87
+ "urlTemplate": "",
88
+ "isDiscoverabilityEnabled": false,
89
+ "isSearchEnabled": true,
90
+ "isItemVersioningEnabled": true,
91
+ "itemMajorVersionLimit": 500,
92
+ "maxStoragePerContainerInBytes": 27487790694400,
93
+ "isSharingRestricted": false,
94
+ "consumingTenantOverridables": ""
95
+ }
69
96
  }
70
97
  ```
71
98
 
@@ -73,39 +100,43 @@ m365 spe containertype get --name 'test container'
73
100
  <TabItem value="Text">
74
101
 
75
102
  ```text
76
- ContainerTypeId DisplayName OwningAppId
77
- -------------------------------------------- --------------------------------------------- --------------------------------------------
78
- /Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/ test1 /Guid(df4085cc-9a38-4255-badc-5c5225610475)/
103
+ billingClassification: standard
104
+ billingStatus : invalid
105
+ createdDateTime : 2025-06-19T05:17:32.0760075Z
106
+ etag : MC4wLjAuMA==
107
+ id : 5de5c251-61c2-40f5-8947-5a719c1c0b71
108
+ name : Container Type 1
109
+ owningAppId : a6f79b17-a0f5-47d1-bfde-9995caebc2a3
110
+ settings : {"urlTemplate":"","isDiscoverabilityEnabled":false,"isSearchEnabled":true,"isItemVersioningEnabled":true,"itemMajorVersionLimit":500,"maxStoragePerContainerInBytes":27487790694400,"isSharingRestricted":false,"consumingTenantOverridables":""}
79
111
  ```
80
112
 
81
113
  </TabItem>
82
114
  <TabItem value="CSV">
83
115
 
84
116
  ```csv
85
- _ObjectType_,ApplicationRedirectUrl,AzureSubscriptionId,ContainerTypeId,CreationDate,DisplayName,ExpiryDate,IsBillingProfileRequired,OwningAppId,OwningTenantId,Region,ResourceGroup,SPContainerTypeBillingClassification
86
- Microsoft.Online.SharePoint.TenantAdministration.SPContainerTypeProperties,,/Guid(00000000-0000-0000-0000-000000000000)/,/Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/,,test1,,1,/Guid(df4085cc-9a38-4255-badc-5c5225610475)/,/Guid(00000000-0000-0000-0000-000000000000)/,,,0
117
+ id,name,owningAppId,billingClassification,billingStatus,createdDateTime,etag
118
+ 5de5c251-61c2-40f5-8947-5a719c1c0b71,Container Type 1,a6f79b17-a0f5-47d1-bfde-9995caebc2a3,standard,invalid,2025-06-19T05:17:32.0760075Z,MC4wLjAuMA==
87
119
  ```
88
120
 
89
121
  </TabItem>
90
122
  <TabItem value="Markdown">
91
123
 
92
124
  ```md
93
- # spe containertype list
125
+ # spe containertype get --id "5de5c251-61c2-40f5-8947-5a719c1c0b71"
94
126
 
95
- Date: 5/11/2024
127
+ Date: 27/08/2025
96
128
 
97
- ## test1
129
+ ## Container Type 1 (5de5c251-61c2-40f5-8947-5a719c1c0b71)
98
130
 
99
131
  Property | Value
100
132
  ---------|-------
101
- \_ObjectType\_ | Microsoft.Online.SharePoint.TenantAdministration.SPContainerTypeProperties
102
- AzureSubscriptionId | /Guid(00000000-0000-0000-0000-000000000000)/
103
- ContainerTypeId | /Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/
104
- DisplayName | test1
105
- IsBillingProfileRequired | true
106
- OwningAppId | /Guid(df4085cc-9a38-4255-badc-5c5225610475)/
107
- OwningTenantId | /Guid(00000000-0000-0000-0000-000000000000)/
108
- SPContainerTypeBillingClassification | 0
133
+ id | 5de5c251-61c2-40f5-8947-5a719c1c0b71
134
+ name | Container Type 1
135
+ owningAppId | a6f79b17-a0f5-47d1-bfde-9995caebc2a3
136
+ billingClassification | standard
137
+ billingStatus | invalid
138
+ createdDateTime | 2025-06-19T05:17:32.0760075Z
139
+ etag | MC4wLjAuMA==
109
140
  ```
110
141
 
111
142
  </TabItem>
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
4
4
 
5
5
  # spe containertype list
6
6
 
7
- Lists all Container Types
7
+ Lists all container types
8
8
 
9
9
  ## Usage
10
10
 
@@ -18,12 +18,35 @@ m365 spe containertype list [options]
18
18
 
19
19
  ## Remarks
20
20
 
21
- :::info
21
+ :::warning
22
22
 
23
- To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
23
+ The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
24
24
 
25
25
  :::
26
26
 
27
+ ## Permissions
28
+
29
+ <Tabs>
30
+ <TabItem value="Delegated">
31
+
32
+ | Resource | Permissions |
33
+ |-----------------|-------------------------------------|
34
+ | Microsoft Graph | FileStorageContainerType.Manage.All |
35
+
36
+ :::info
37
+
38
+ To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
39
+
40
+ :::
41
+
42
+ </TabItem>
43
+ <TabItem value="Application">
44
+
45
+ This command does not support application permissions.
46
+
47
+ </TabItem>
48
+ </Tabs>
49
+
27
50
  ## Examples
28
51
 
29
52
  Retrieves a list of Container Types created for a SharePoint Embedded Application from the tenant.
@@ -40,19 +63,24 @@ m365 spe containertype list
40
63
  ```json
41
64
  [
42
65
  {
43
- "_ObjectType_": "Microsoft.Online.SharePoint.TenantAdministration.SPContainerTypeProperties",
44
- "ApplicationRedirectUrl": null,
45
- "AzureSubscriptionId": "/Guid(00000000-0000-0000-0000-000000000000)/",
46
- "ContainerTypeId": "/Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/",
47
- "CreationDate": null,
48
- "DisplayName": "test1",
49
- "ExpiryDate": null,
50
- "IsBillingProfileRequired": true,
51
- "OwningAppId": "/Guid(df4085cc-9a38-4255-badc-5c5225610475)/",
52
- "OwningTenantId": "/Guid(00000000-0000-0000-0000-000000000000)/",
53
- "Region": null,
54
- "ResourceGroup": null,
55
- "SPContainerTypeBillingClassification": 0
66
+ "id": "5de5c251-61c2-40f5-8947-5a719c1c0b71",
67
+ "name": "Container Type 1",
68
+ "owningAppId": "a6f79b17-a0f5-47d1-bfde-9995caebc2a3",
69
+ "billingClassification": "trial",
70
+ "billingStatus": "valid",
71
+ "createdDateTime": "2025-04-15T17:50:26.9411866Z",
72
+ "expirationDateTime": "2025-05-15T17:50:26.8161883Z",
73
+ "etag": "MC4wLjAuMA==",
74
+ "settings": {
75
+ "urlTemplate": "",
76
+ "isDiscoverabilityEnabled": false,
77
+ "isSearchEnabled": true,
78
+ "isItemVersioningEnabled": true,
79
+ "itemMajorVersionLimit": 500,
80
+ "maxStoragePerContainerInBytes": 209715200,
81
+ "isSharingRestricted": false,
82
+ "consumingTenantOverridables": ""
83
+ }
56
84
  }
57
85
  ]
58
86
  ```
@@ -61,17 +89,17 @@ m365 spe containertype list
61
89
  <TabItem value="Text">
62
90
 
63
91
  ```text
64
- ContainerTypeId DisplayName OwningAppId
65
- -------------------------------------------- --------------------------------------------- --------------------------------------------
66
- /Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/ test1 /Guid(df4085cc-9a38-4255-badc-5c5225610475)/
92
+ id name owningAppId
93
+ ------------------------------------ --------------------------- ------------------------------------
94
+ 5de5c251-61c2-40f5-8947-5a719c1c0b71 Container Type 1 a6f79b17-a0f5-47d1-bfde-9995caebc2a3
67
95
  ```
68
96
 
69
97
  </TabItem>
70
98
  <TabItem value="CSV">
71
99
 
72
100
  ```csv
73
- _ObjectType_,ApplicationRedirectUrl,AzureSubscriptionId,ContainerTypeId,CreationDate,DisplayName,ExpiryDate,IsBillingProfileRequired,OwningAppId,OwningTenantId,Region,ResourceGroup,SPContainerTypeBillingClassification
74
- Microsoft.Online.SharePoint.TenantAdministration.SPContainerTypeProperties,,/Guid(00000000-0000-0000-0000-000000000000)/,/Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/,,test1,,1,/Guid(df4085cc-9a38-4255-badc-5c5225610475)/,/Guid(00000000-0000-0000-0000-000000000000)/,,,0
101
+ id,name,owningAppId,billingClassification,billingStatus,createdDateTime,etag
102
+ 5de5c251-61c2-40f5-8947-5a719c1c0b71,Container Type 1,a6f79b17-a0f5-47d1-bfde-9995caebc2a3,trial,valid,2025-04-15T17:50:26.9411866Z,MC4wLjAuMA==
75
103
  ```
76
104
 
77
105
  </TabItem>
@@ -82,18 +110,18 @@ m365 spe containertype list
82
110
 
83
111
  Date: 5/11/2024
84
112
 
85
- ## test1
113
+ ## Container Type 1
86
114
 
87
115
  Property | Value
88
116
  ---------|-------
89
- \_ObjectType\_ | Microsoft.Online.SharePoint.TenantAdministration.SPContainerTypeProperties
90
- AzureSubscriptionId | /Guid(00000000-0000-0000-0000-000000000000)/
91
- ContainerTypeId | /Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/
92
- DisplayName | test1
93
- IsBillingProfileRequired | true
94
- OwningAppId | /Guid(df4085cc-9a38-4255-badc-5c5225610475)/
95
- OwningTenantId | /Guid(00000000-0000-0000-0000-000000000000)/
96
- SPContainerTypeBillingClassification | 0
117
+ id | 5de5c251-61c2-40f5-8947-5a719c1c0b71
118
+ name | Container Type 1
119
+ owningAppId | a6f79b17-a0f5-47d1-bfde-9995caebc2a3
120
+ billingClassification | trial
121
+ billingStatus | valid
122
+ createdDateTime | 2025-04-15T17:50:26.9411866Z
123
+ expirationDateTime | 2025-05-15T17:50:26.8161883Z
124
+ etag | MC4wLjAuMA==
97
125
  ```
98
126
 
99
127
  </TabItem>
@@ -107,4 +135,4 @@ Container Type is a property stamped on every Container instance. Each Container
107
135
 
108
136
  The primary function of a Container Type is to manage the application workload that can access the Containers. Container Type defines the access permissions an Application has towards all Containers of that type, including create, read, write, delete containers; manage container permissions, etc.
109
137
 
110
- More information about SharePoint Embedded and the limits can be found at the following location: [SharePoint Embedded](https://learn.microsoft.com/en-us/sharepoint/dev/embedded/concepts/app-concepts/containertypes#sharepoint-embedded-trial-container-types)
138
+ More information about SharePoint Embedded and the limits can be found at the following location: [SharePoint Embedded](https://learn.microsoft.com/sharepoint/dev/embedded/concepts/app-concepts/containertypes#sharepoint-embedded-trial-container-types)
@@ -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 containertype remove
4
6
 
@@ -27,21 +29,46 @@ m365 spe containertype remove [options]
27
29
 
28
30
  ## Remarks
29
31
 
30
- :::info
32
+ :::danger[Important]
31
33
 
32
- To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
34
+ This command relies on a different API endpoint due to current API limitations. As a result, it requires different permissions than other `spe containertype` commands. We plan to align the permissions in the future once these limitations are resolved.
33
35
 
34
36
  :::
35
37
 
38
+ ## Permissions
39
+
40
+ <Tabs>
41
+ <TabItem value="Delegated">
42
+
43
+ | Resource | Permissions |
44
+ |------------|--------------------|
45
+ | SharePoint | Container.Selected |
46
+
47
+ :::info
48
+
49
+ To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
50
+
51
+ :::
52
+
53
+ </TabItem>
54
+ <TabItem value="Application">
55
+
56
+ | Resource | Permissions |
57
+ |------------|--------------------|
58
+ | SharePoint | Container.Selected |
59
+
60
+ </TabItem>
61
+ </Tabs>
62
+
36
63
  ## Examples
37
64
 
38
- Removes a container type by ID
65
+ Removes a container type by ID.
39
66
 
40
67
  ```sh
41
68
  m365 spe containertype remove --id 4ec4aefd-4fa3-0e4a-20c3-6e68389e7138
42
69
  ```
43
70
 
44
- Removes a container type by name
71
+ Removes a container type by name.
45
72
 
46
73
  ```sh
47
74
  m365 spe containertype remove --name 'My container type'