@pnp/cli-microsoft365 11.0.0-beta.677f8d3 → 11.0.0-beta.d3d8993

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 (86) 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/flow/commands/flow-list.js +7 -14
  18. package/dist/m365/flow/commands/run/run-get.js +1 -7
  19. package/dist/m365/graph/commands/openextension/openextension-add.js +2 -2
  20. package/dist/m365/graph/commands/openextension/openextension-set.js +2 -6
  21. package/dist/m365/graph/commands/subscription/subscription-add.js +3 -10
  22. package/dist/m365/pp/commands/solution/solution-publisher-list.js +1 -8
  23. package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +1 -7
  24. package/dist/m365/spe/commands/container/container-add.js +1 -3
  25. package/dist/m365/spe/commands/container/container-list.js +1 -3
  26. package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +1 -3
  27. package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +1 -3
  28. package/dist/m365/spe/commands/container/container-remove.js +1 -3
  29. package/dist/m365/spe/commands/containertype/containertype-add.js +67 -90
  30. package/dist/m365/spe/commands/containertype/containertype-get.js +53 -81
  31. package/dist/m365/spe/commands/containertype/containertype-list.js +8 -19
  32. package/dist/m365/spe/commands/containertype/containertype-remove.js +27 -5
  33. package/dist/m365/spo/commands/file/file-move.js +2 -8
  34. package/dist/m365/spo/commands/homesite/homesite-add.js +26 -2
  35. package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -13
  36. package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -8
  37. package/dist/m365/spo/commands/{tenant/tenant-site-archive.js → site/site-archive.js} +14 -14
  38. package/dist/m365/spo/commands/{tenant/tenant-site-list.js → site/site-list.js} +16 -27
  39. package/dist/m365/spo/commands/{tenant/tenant-site-membership-list.js → site/site-membership-list.js} +15 -15
  40. package/dist/m365/spo/commands/{tenant/tenant-site-rename.js → site/site-rename.js} +14 -14
  41. package/dist/m365/spo/commands/{tenant/tenant-site-unarchive.js → site/site-unarchive.js} +14 -14
  42. package/dist/m365/spo/commands/term/term-list.js +1 -7
  43. package/dist/m365/spo/commands.js +4 -5
  44. package/dist/m365/teams/commands/chat/chat-member-add.js +3 -9
  45. package/dist/m365/viva/commands/engage/engage-network-list.js +1 -7
  46. package/dist/utils/spe.js +5 -39
  47. package/docs/docs/cmd/entra/group/group-member-add.mdx +7 -26
  48. package/docs/docs/cmd/entra/group/group-member-set.mdx +5 -23
  49. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +0 -3
  50. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +0 -3
  51. package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +0 -3
  52. package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +0 -3
  53. package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +0 -3
  54. package/docs/docs/cmd/flow/flow-list.mdx +0 -3
  55. package/docs/docs/cmd/flow/run/run-get.mdx +0 -3
  56. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +0 -3
  57. package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +0 -3
  58. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +0 -3
  59. package/docs/docs/cmd/spe/container/container-activate.mdx +21 -0
  60. package/docs/docs/cmd/spe/container/container-add.mdx +29 -0
  61. package/docs/docs/cmd/spe/container/container-get.mdx +20 -1
  62. package/docs/docs/cmd/spe/container/container-list.mdx +29 -0
  63. package/docs/docs/cmd/spe/container/container-permission-list.mdx +19 -0
  64. package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +29 -0
  65. package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +31 -0
  66. package/docs/docs/cmd/spe/container/container-remove.mdx +31 -0
  67. package/docs/docs/cmd/spe/containertype/containertype-add.mdx +111 -55
  68. package/docs/docs/cmd/spe/containertype/containertype-get.mdx +69 -38
  69. package/docs/docs/cmd/spe/containertype/containertype-list.mdx +59 -31
  70. package/docs/docs/cmd/spe/containertype/containertype-remove.mdx +31 -4
  71. package/docs/docs/cmd/spo/file/file-move.mdx +0 -3
  72. package/docs/docs/cmd/spo/homesite/homesite-add.mdx +13 -4
  73. package/docs/docs/cmd/spo/homesite/homesite-set.mdx +1 -1
  74. package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +0 -3
  75. package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +0 -3
  76. package/docs/docs/cmd/spo/{tenant/tenant-site-archive.mdx → site/site-archive.mdx} +4 -4
  77. package/docs/docs/cmd/spo/{tenant/tenant-site-list.mdx → site/site-list.mdx} +7 -16
  78. package/docs/docs/cmd/spo/{tenant/tenant-site-membership-list.mdx → site/site-membership-list.mdx} +5 -5
  79. package/docs/docs/cmd/spo/{tenant/tenant-site-rename.mdx → site/site-rename.mdx} +7 -7
  80. package/docs/docs/cmd/spo/{tenant/tenant-site-unarchive.mdx → site/site-unarchive.mdx} +4 -4
  81. package/docs/docs/cmd/spo/term/term-list.mdx +0 -3
  82. package/docs/docs/cmd/teams/chat/chat-member-add.mdx +2 -5
  83. package/docs/docs/cmd/viva/engage/engage-network-list.mdx +0 -3
  84. package/package.json +1 -1
  85. package/dist/m365/spo/commands/tenant/SPOTenantSitePropertiesEnumerable.js +0 -2
  86. 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 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'
@@ -33,9 +33,6 @@ m365 spo file move [options]
33
33
  `--nameConflictBehavior [nameConflictBehavior]`
34
34
  : Behavior when a file or folder with the same name is already present at the destination. Allowed values: `fail`, `replace`, `rename`. Defaults to `fail`.
35
35
 
36
- `--includeItemPermissions`
37
- : (deprecated. Use option `withItemPermissions` instead) Ensure that item-level permissions are preserved during the move.
38
-
39
36
  `--withItemPermissions`
40
37
  : Ensure that item-level permissions are preserved during the move.
41
38
 
@@ -24,8 +24,11 @@ m365 spo homesite add [options]
24
24
  `--vivaConnectionsDefaultStart [vivaConnectionsDefaultStart]`
25
25
  : Specifies whether the home site is the default start for Viva Connections. Accepts `true` or `false`. Default is `true`.
26
26
 
27
- `--audiences [audiences]`
28
- : Comma-separated list of Microsoft Entra group IDs that will be used as audience.
27
+ `--audienceIds [audienceIds]`
28
+ : Comma-separated list of Microsoft Entra group IDs to be used as audiences. Specify either `audienceIds` or `audienceNames`, but not both.
29
+
30
+ `--audienceNames [audienceNames]`
31
+ : Comma-separated list of Microsoft Entra group names to be used as audiences. You must use either `audienceIds` or `audienceNames`, but not both.
29
32
 
30
33
  `--order [order]`
31
34
  : Order of the home site. Must be a positive integer.
@@ -41,10 +44,16 @@ Add a home site
41
44
  m365 spo homesite add --url "https://contoso.sharepoint.com/sites/testcomms"
42
45
  ```
43
46
 
44
- Add a home site with additional options
47
+ Add a home site with audiences specified by their groups ids and with additional options
48
+
49
+ ```sh
50
+ m365 spo homesite add --url "https://contoso.sharepoint.com/sites/testcomms" --isInDraftMode true --vivaConnectionsDefaultStart false --audienceIds "af8c0bc8-7b1b-44b4-b087-ffcc8df70d16,754ff15c-76b1-44cb-88c7-0065a4d3cfb7" --order 2
51
+ ```
52
+
53
+ Add a home site with audiences specified by their groups names and with additional options
45
54
 
46
55
  ```sh
47
- m365 spo homesite add --url "https://contoso.sharepoint.com/sites/testcomms" --isInDraftMode true --vivaConnectionsDefaultStart false --audiences "af8c0bc8-7b1b-44b4-b087-ffcc8df70d16,754ff15c-76b1-44cb-88c7-0065a4d3cfb7" --order 2
56
+ m365 spo homesite add --url "https://contoso.sharepoint.com/sites/testcomms" --isInDraftMode true --vivaConnectionsDefaultStart false --audienceNames "Marketing, IT department" --order 2
48
57
  ```
49
58
 
50
59
  ## Response
@@ -16,7 +16,7 @@ m365 spo homesite set [options]
16
16
 
17
17
  ```md definition-list
18
18
  `-u, --url <url>`
19
- : The URL of the home site
19
+ : The URL of the site to set as Home site.
20
20
 
21
21
  `--draftMode [draftMode]`
22
22
  : Set draft status. Valid values are: `true`, `false`.
@@ -24,9 +24,6 @@ m365 spo hubsite get [options]
24
24
  `-u, --url [url]`
25
25
  : URL of the hub site. Specify either `id`, `title`, or `url` but not multiple.
26
26
 
27
- `--includeAssociatedSites`
28
- : (deprecated. Use option `withAssociatedSites` instead) Include the associated sites in the result (only in JSON output).
29
-
30
27
  `--withAssociatedSites`
31
28
  : Include the associated sites in the result (only in JSON output)
32
29
  ```
@@ -15,9 +15,6 @@ m365 spo hubsite list [options]
15
15
  ## Options
16
16
 
17
17
  ```md definition-list
18
- `-i, --includeAssociatedSites`
19
- : (deprecated. Use option `withAssociatedSites` instead) Include the associated sites in the result (only in JSON output).
20
-
21
18
  `--withAssociatedSites`
22
19
  : Include the associated sites in the result (only in JSON output).
23
20
  ```
@@ -2,14 +2,14 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # spo tenant site archive
5
+ # spo site archive
6
6
 
7
7
  Archives a site collection
8
8
 
9
9
  ## Usage
10
10
 
11
11
  ```sh
12
- m365 spo tenant site archive [options]
12
+ m365 spo site archive [options]
13
13
  ```
14
14
 
15
15
  ## Options
@@ -44,13 +44,13 @@ After running this command, it may take a few minutes for the site to be fully a
44
44
  Archive a specific SharePoint site collection
45
45
 
46
46
  ```sh
47
- m365 spo tenant site archive --url "https://contoso.sharepoint.com/sites/Marketing"
47
+ m365 spo site archive --url "https://contoso.sharepoint.com/sites/Marketing"
48
48
  ```
49
49
 
50
50
  Archive a specific SharePoint site collection without confirmation prompt
51
51
 
52
52
  ```sh
53
- m365 spo tenant site archive --url "https://contoso.sharepoint.com/sites/Marketing" --force
53
+ m365 spo site archive --url "https://contoso.sharepoint.com/sites/Marketing" --force
54
54
  ```
55
55
 
56
56
  ## Response
@@ -2,20 +2,14 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # spo tenant site list
5
+ # spo site list
6
6
 
7
7
  Lists modern sites of the given type
8
8
 
9
9
  ## Usage
10
10
 
11
11
  ```sh
12
- m365 spo tenant site list [options]
13
- ```
14
-
15
- ## Alias
16
-
17
- ```sh
18
- m365 spo site list
12
+ m365 spo site list [options]
19
13
  ```
20
14
 
21
15
  ## Options
@@ -30,9 +24,6 @@ m365 spo site list
30
24
  `--filter [filter]`
31
25
  : filter to apply when retrieving sites.
32
26
 
33
- `--includeOneDriveSites`
34
- : (deprecated. Use option `withOneDriveSites` instead) use this switch to include OneDrive sites in the result when retrieving sites. Do not specify the `type` or `webTemplate` options when using this.
35
-
36
27
  `--withOneDriveSites`
37
28
  : use this switch to include OneDrive sites in the result when retrieving sites. Do not specify the `type` or `webTemplate` options when using this.
38
29
  ```
@@ -58,31 +49,31 @@ To use this command you have to have permissions to access the tenant admin site
58
49
  List all sites in the currently connected tenant.
59
50
 
60
51
  ```sh
61
- m365 spo tenant site list
52
+ m365 spo site list
62
53
  ```
63
54
 
64
55
  List all group connected team sites in the currently connected tenant.
65
56
 
66
57
  ```sh
67
- m365 spo tenant site list --type TeamSite
58
+ m365 spo site list --type TeamSite
68
59
  ```
69
60
 
70
61
  List all communication sites in the currently connected tenant.
71
62
 
72
63
  ```sh
73
- m365 spo tenant site list --type CommunicationSite
64
+ m365 spo site list --type CommunicationSite
74
65
  ```
75
66
 
76
67
  List all group connected team sites that contain _project_ in the URL.
77
68
 
78
69
  ```sh
79
- m365 spo tenant site list --type TeamSite --filter "Url -like 'project'"
70
+ m365 spo site list --type TeamSite --filter "Url -like 'project'"
80
71
  ```
81
72
 
82
73
  List all sites in the currently connected tenant including OneDrive sites.
83
74
 
84
75
  ```sh
85
- m365 spo tenant site list --withOneDriveSites
76
+ m365 spo site list --withOneDriveSites
86
77
  ```
87
78
 
88
79
  ## Response
@@ -2,14 +2,14 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # spo tenant site membership list
5
+ # spo site membership list
6
6
 
7
7
  Retrieves information about default site groups' membership
8
8
 
9
9
  ## Usage
10
10
 
11
11
  ```sh
12
- m365 spo tenant site membership list [options]
12
+ m365 spo site membership list [options]
13
13
  ```
14
14
 
15
15
  ## Options
@@ -39,13 +39,13 @@ For other scenarios, refer to the [spo web get --withGroups](../web/web-get.mdx)
39
39
  Retrieve information about default site groups' owners, members, and visitors of the site.
40
40
 
41
41
  ```sh
42
- m365 spo tenant site membership list --siteUrl https://contoso.sharepoint.com
42
+ m365 spo site membership list --siteUrl https://contoso.sharepoint.com
43
43
  ```
44
44
 
45
45
  Retrieve information about site owners.
46
46
 
47
47
  ```sh
48
- m365 spo tenant site membership list --siteUrl https://contoso.sharepoint.com --role Owner
48
+ m365 spo site membership list --siteUrl https://contoso.sharepoint.com --role Owner
49
49
  ```
50
50
 
51
51
  ## Response
@@ -102,7 +102,7 @@ m365 spo tenant site membership list --siteUrl https://contoso.sharepoint.com --
102
102
  <TabItem value="Markdown">
103
103
 
104
104
  ```md
105
- # spo tenant site membership list --siteUrl "https://contoso.sharepoint.com/sites/AudienceTest"
105
+ # spo site membership list --siteUrl "https://contoso.sharepoint.com/sites/AudienceTest"
106
106
 
107
107
  Date: 11/08/2024
108
108
 
@@ -2,14 +2,14 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # spo tenant site rename
5
+ # spo site rename
6
6
 
7
7
  Renames the URL and title of a site collection
8
8
 
9
9
  ## Usage
10
10
 
11
11
  ```sh
12
- m365 spo tenant site rename [options]
12
+ m365 spo site rename [options]
13
13
  ```
14
14
 
15
15
  ## Options
@@ -38,7 +38,7 @@ m365 spo tenant site rename [options]
38
38
 
39
39
  ## Remarks
40
40
 
41
- Renaming site collections is by default asynchronous and depending on the current state of Microsoft 365, might take up to few minutes. If you're building a script with steps that require the operation to complete fully, you should use the `--wait` flag. When using this flag, the `spo tenant site rename` command will keep running until it receives confirmation from Microsoft 365 that the site rename operation has completed.
41
+ Renaming site collections is by default asynchronous and depending on the current state of Microsoft 365, might take up to few minutes. If you're building a script with steps that require the operation to complete fully, you should use the `--wait` flag. When using this flag, the `spo site rename` command will keep running until it receives confirmation from Microsoft 365 that the site rename operation has completed.
42
42
 
43
43
  :::info
44
44
 
@@ -51,19 +51,19 @@ To use this command you must have permissions to access the tenant admin site.
51
51
  Starts the rename of the site collection with name "samplesite" to "renamed" without modifying the title
52
52
 
53
53
  ```sh
54
- m365 spo tenant site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed
54
+ m365 spo site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed
55
55
  ```
56
56
 
57
57
  Starts the rename of the site collection with name "samplesite" to "renamed" modifying the title of the site to "New Title"
58
58
 
59
59
  ```sh
60
- m365 spo tenant site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title"
60
+ m365 spo site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title"
61
61
  ```
62
62
 
63
63
  Renames the specified site collection and waits for the operation to complete
64
64
 
65
65
  ```sh
66
- m365 spo tenant site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title" --wait
66
+ m365 spo site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title" --wait
67
67
  ```
68
68
 
69
69
  ## Response
@@ -130,7 +130,7 @@ m365 spo tenant site rename --url http://contoso.sharepoint.com/samplesite --new
130
130
  <TabItem value="Markdown">
131
131
 
132
132
  ```md
133
- # spo tenant site rename --url "https://contoso.sharepoint.com/sites/team1" --newUrl "https://contoso.sharepoint.com/sites/team2"
133
+ # spo site rename --url "https://contoso.sharepoint.com/sites/team1" --newUrl "https://contoso.sharepoint.com/sites/team2"
134
134
 
135
135
  Date: 2023-06-21
136
136