@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
@@ -22,13 +22,26 @@ m365 spfx project upgrade [options]
22
22
  : The package manager you use. Supported managers `npm`, `pnpm`, `yarn`. Default `npm`
23
23
 
24
24
  `--shell [shell]`
25
- : The shell you use. Supported shells `bash`, `powershell`, `cmd`. Default `bash`
25
+ : The shell you use. Supported shells `bash`, `powershell`, `cmd`. Default `powershell`
26
26
 
27
27
  `--preview`
28
28
  : Upgrade project to the latest SPFx preview version
29
- ```
30
29
 
31
- <Global />
30
+ `-h, --help [help]`
31
+ : Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are `options`, `examples`, `remarks`, `permissions`, `response`, `full`. Default is `options`.
32
+
33
+ `--query [query]`
34
+ : JMESPath query string. See [http://jmespath.org/](http://jmespath.org/) for more information and examples.
35
+
36
+ `-o, --output [output]`
37
+ : Output type. `json`, `text`, `csv`, `md`, `tour`, `none`. Default `json`.
38
+
39
+ `--verbose`
40
+ : Runs command with verbose logging.
41
+
42
+ `--debug`
43
+ : Runs command with debug logging.
44
+ ```
32
45
 
33
46
  ## Remarks
34
47
 
@@ -83,7 +96,7 @@ m365 spfx project upgrade --output text
83
96
  Get instructions to upgrade the current SharePoint Framework project to the latest SharePoint Framework version supported by the CLI for Microsoft 365 using PowerShell
84
97
 
85
98
  ```sh
86
- m365 spfx project upgrade --shell powershell --output text
99
+ m365 spfx project upgrade --output text
87
100
  ```
88
101
 
89
102
  Get instructions to upgrade the current SharePoint Framework project to the latest version of SharePoint Framework and save the findings in a [CodeTour](https://aka.ms/codetour) file
@@ -134,7 +147,7 @@ When upgrading an SPFx project built using version 1.15.0 to SPFx version 1.15.2
134
147
  <TabItem value="Text">
135
148
 
136
149
  ```text
137
- Execute in bash
150
+ Execute in powershell
138
151
  -----------------------
139
152
  npm i -SE @microsoft/sp-core-library@1.15.2
140
153
 
@@ -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
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
4
4
 
5
5
  # spo homesite get
6
6
 
7
- Gets information about the Home Site
7
+ Gets information about a home site
8
8
 
9
9
  ## Usage
10
10
 
@@ -14,14 +14,19 @@ m365 spo homesite get [options]
14
14
 
15
15
  ## Options
16
16
 
17
+ ```md definition-list
18
+ `-u, --url <url>`
19
+ : URL of the home site.
20
+ ```
21
+
17
22
  <Global />
18
23
 
19
24
  ## Examples
20
25
 
21
- Get information about the Home Site.
26
+ Get information about a home site.
22
27
 
23
28
  ```sh
24
- m365 spo homesite get
29
+ m365 spo homesite get --url https://contoso.sharepoint.com/sites/Home
25
30
  ```
26
31
 
27
32
  ## Response
@@ -31,11 +36,21 @@ m365 spo homesite get
31
36
 
32
37
  ```json
33
38
  {
34
- "SiteId": "af80c11f-0138-4d72-bb37-514542c3aabb",
35
- "WebId": "6f90666d-b0e7-40c3-991f-4ab051d00a70",
36
- "LogoUrl": "https://contoso.sharepoint.com/sites/intra/siteassets/work.png",
37
- "Title": "Intranet",
38
- "Url": "https://contoso.sharepoint.com/sites/intra"
39
+ "Audiences": [
40
+ {
41
+ "Email": "Marketing@contoso.onmicrosoft.com",
42
+ "Id": "contoso73155a8f-4db7-42e7-baf4-c724d24bf373",
43
+ "Title": "Marketing Members"
44
+ }
45
+ ],
46
+ "IsInDraftMode": false,
47
+ "IsVivaBackendSite": false,
48
+ "SiteId": "e16a5a81-67fb-4a5e-a959-1f33ae44c69f",
49
+ "TargetedLicenseType": 0,
50
+ "Title": "Home",
51
+ "Url": "https://contoso.sharepoint.com/",
52
+ "VivaConnectionsDefaultStart": false,
53
+ "WebId": "2779dcbb-fae0-4b0c-a845-89ab4c941fab"
39
54
  }
40
55
  ```
41
56
 
@@ -43,39 +58,45 @@ m365 spo homesite get
43
58
  <TabItem value="Text">
44
59
 
45
60
  ```text
46
- LogoUrl: https://contoso.sharepoint.com/sites/intra/siteassets/work.png
47
- SiteId : af80c11f-0138-4d72-bb37-514542c3aabb
48
- Title : Intranet
49
- Url : https://contoso.sharepoint.com/sites/intra
50
- WebId : 6f90666d-b0e7-40c3-991f-4ab051d00a70
61
+ Audiences : [{"Email":"Marketing@contoso.onmicrosoft.com","Id":"contoso73155a8f-4db7-42e7-baf4-c724d24bf373","Title":"Marketing Members"}]
62
+ IsInDraftMode : false
63
+ IsVivaBackendSite : false
64
+ SiteId : e16a5a81-67fb-4a5e-a959-1f33ae44c69f
65
+ TargetedLicenseType : 0
66
+ Title : Home
67
+ Url : https://contoso.sharepoint.com/
68
+ VivaConnectionsDefaultStart: false
69
+ WebId : 2779dcbb-fae0-4b0c-a845-89ab4c941fab
51
70
  ```
52
71
 
53
72
  </TabItem>
54
73
  <TabItem value="CSV">
55
74
 
56
75
  ```csv
57
- SiteId,WebId,LogoUrl,Title,Url
58
- af80c11f-0138-4d72-bb37-514542c3aabb,6f90666d-b0e7-40c3-991f-4ab051d00a70,https://contoso.sharepoint.com/sites/intra/siteassets/work.png,Intranet,https://contoso.sharepoint.com/sites/intra
76
+ IsInDraftMode,IsVivaBackendSite,SiteId,TargetedLicenseType,Title,Url,VivaConnectionsDefaultStart,WebId
77
+ 0,0,e16a5a81-67fb-4a5e-a959-1f33ae44c69f,0,Home,https://contoso.sharepoint.com/,0,2779dcbb-fae0-4b0c-a845-89ab4c941fab
59
78
  ```
60
79
 
61
80
  </TabItem>
62
81
  <TabItem value="Markdown">
63
82
 
64
83
  ```md
65
- # spo homesite get
84
+ # spo homesite get --url "https://contoso.sharepoint.com"
66
85
 
67
- Date: 2/20/2023
86
+ Date: 23/08/2025
68
87
 
69
- ## Intranet (https://contoso.sharepoint.com/sites/intra)
88
+ ## Home (https://contoso.sharepoint.com/)
70
89
 
71
90
  Property | Value
72
91
  ---------|-------
73
92
  IsInDraftMode | false
74
- SiteId | af80c11f-0138-4d72-bb37-514542c3aabb
75
- WebId |6f90666d-b0e7-40c3-991f-4ab051d00a70
76
- LogoUrl | https://contoso.sharepoint.com/sites/intra/siteassets/work.png
77
- Title | Intranet
78
- Url | https://contoso.sharepoint.com/sites/intra
93
+ IsVivaBackendSite | false
94
+ SiteId | e16a5a81-67fb-4a5e-a959-1f33ae44c69f
95
+ TargetedLicenseType | 0
96
+ Title | Home
97
+ Url | https://contoso.sharepoint.com/
98
+ VivaConnectionsDefaultStart | false
99
+ WebId | 2779dcbb-fae0-4b0c-a845-89ab4c941fab
79
100
  ```
80
101
 
81
102
  </TabItem>
@@ -12,12 +12,6 @@ Lists all home sites
12
12
  m365 spo homesite list [options]
13
13
  ```
14
14
 
15
- ## Alias
16
-
17
- ```sh
18
- m365 spo tenant homesite list [options]
19
- ```
20
-
21
15
  ## Options
22
16
 
23
17
  <Global />
@@ -1,6 +1,4 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
- import Tabs from '@theme/Tabs';
3
- import TabItem from '@theme/TabItem';
4
2
 
5
3
  # spo homesite remove
6
4
 
@@ -15,11 +13,11 @@ m365 spo homesite remove [options]
15
13
  ## Options
16
14
 
17
15
  ```md definition-list
18
- `-u, --url [url]`
16
+ `-u, --url <url>`
19
17
  : URL of the home site to remove.
20
18
 
21
19
  `-f, --force`
22
- : Do not prompt for confirmation before removing the Home Site.
20
+ : Do not prompt for confirmation.
23
21
  ```
24
22
 
25
23
  <Global />
@@ -34,44 +32,21 @@ To use this command you must be either **SharePoint Administrator** or **Global
34
32
 
35
33
  ## Examples
36
34
 
37
- Removes a Home site specified by URL without prompting for confirmation.
35
+ Removes a Home site specified by URL.
38
36
 
39
37
  ```sh
40
- m365 spo homesite remove --url "https://contoso.sharepoint.com/sites/testcomms" --force
38
+ m365 spo homesite remove --url "https://contoso.sharepoint.com/sites/Europe"
41
39
  ```
42
40
 
43
- ## Response
44
-
45
- <Tabs>
46
- <TabItem value="JSON">
47
-
48
- ```json
49
- "https://contoso.sharepoint.com has been removed as a Home site. It may take some time for the change to apply. Check aka.ms/homesites for details."
50
- ```
51
-
52
- </TabItem>
53
- <TabItem value="Text">
54
-
55
- ```text
56
- https://contoso.sharepoint.com has been removed as a Home site. It may take some time for the change to apply. Check aka.ms/homesites for details.
57
- ```
58
-
59
- </TabItem>
60
- <TabItem value="CSV">
61
-
62
- ```csv
63
- https://contoso.sharepoint.com has been removed as a Home site. It may take some time for the change to apply. Check aka.ms/homesites for details.
64
- ```
41
+ Removes a Home site specified by URL without prompting for confirmation.
65
42
 
66
- </TabItem>
67
- <TabItem value="Markdown">
43
+ ```sh
44
+ m365 spo homesite remove --url "https://contoso.sharepoint.com/sites/Europe" --force
45
+ ```
68
46
 
69
- ```md
70
- https://contoso.sharepoint.com has been removed as a Home site. It may take some time for the change to apply. Check aka.ms/homesites for details.
71
- ```
47
+ ## Response
72
48
 
73
- </TabItem>
74
- </Tabs>
49
+ The command won't return a response on success.
75
50
 
76
51
  ## More information
77
52
 
@@ -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
  ```
@@ -46,12 +46,12 @@ m365 spo serviceprincipal grant list
46
46
  ```json
47
47
  [
48
48
  {
49
- "IsDomainIsolated": false,
50
- "ObjectId": "QqYEYFwYmkeZKhXRwj4iKV5QwbD60RVCo6xeMUG407E",
51
- "PackageName": null,
52
- "Resource": "Windows Azure Active Directory",
53
- "ResourceId": "b0c1505e-d1fa-4215-a3ac-5e3141b8d3b1",
54
- "Scope": "User.Read"
49
+ "clientId": "1e551032-3e2d-4d6b-9392-9b25451313a0",
50
+ "consentType": "AllPrincipals",
51
+ "id": "MhBVHi0-a02TkpslRRMToFw7FM2TduxCifs3fo6XqP8",
52
+ "principalId": null,
53
+ "resourceId": "cd143b5c-7693-42ec-89fb-377e8e97a8ff",
54
+ "scope": "User.Read"
55
55
  }
56
56
  ]
57
57
  ```
@@ -60,17 +60,17 @@ m365 spo serviceprincipal grant list
60
60
  <TabItem value="Text">
61
61
 
62
62
  ```text
63
- IsDomainIsolated ObjectId PackageName Resource ResourceId Scope
64
- ---------------- ------------------------------------------- ----------- ------------------------------ ------------------------------------ --------------------------
65
- false QqYEYFwYmkeZKhXRwj4iKV5QwbD60RVCo6xeMUG407E null Windows Azure Active Directory b0c1505e-d1fa-4215-a3ac-5e3141b8d3b1 User.Read
63
+ clientId consentType id principalId resourceId scope
64
+ ------------------------------------ ------------- ------------------------------------------- ----------- ------------------------------------ ----------
65
+ 1e551032-3e2d-4d6b-9392-9b25451313a0 AllPrincipals MhBVHi0-a02TkpslRRMToFw7FM2TduxCifs3fo6XqP8 null cd143b5c-7693-42ec-89fb-377e8e97a8ff User.Read
66
66
  ```
67
67
 
68
68
  </TabItem>
69
69
  <TabItem value="CSV">
70
70
 
71
71
  ```csv
72
- IsDomainIsolated,ObjectId,PackageName,Resource,ResourceId,Scope
73
- ,QqYEYFwYmkeZKhXRwj4iKV5QwbD60RVCo6xeMUG407E,,Windows Azure Active Directory,b0c1505e-d1fa-4215-a3ac-5e3141b8d3b1,User.Read
72
+ clientId,consentType,id,principalId,resourceId,scope
73
+ 1e551032-3e2d-4d6b-9392-9b25451313a0,AllPrincipals,MhBVHi0-a02TkpslRRMToFw7FM2TduxCifs3fo6XqP8,,cd143b5c-7693-42ec-89fb-377e8e97a8ff,User.Read
74
74
  ```
75
75
 
76
76
  </TabItem>
@@ -79,17 +79,17 @@ m365 spo serviceprincipal grant list
79
79
  ```md
80
80
  # spo serviceprincipal grant list
81
81
 
82
- Date: 5/7/2023
82
+ Date: 7/8/2025
83
83
 
84
- ## 4WtBzD8u5kW-sYuikIWL_8ZYTP5mJB1LnC6OT4Ibr94
84
+ ## MhBVHi0-a02TkpslRRMToFw7FM2TduxCifs3fo6XqP8
85
85
 
86
86
  Property | Value
87
87
  ---------|-------
88
- IsDomainIsolated | false
89
- ObjectId | 4WtBzD8u5kW-sYuikIWL\_8ZYTP5mJB1LnC6OT4Ibr94
90
- Resource | Microsoft Graph
91
- ResourceId | fe4c58c6-2466-4b1d-9c2e-8e4f821bafde
92
- Scope | Mail.Read
88
+ clientId | 1e551032-3e2d-4d6b-9392-9b25451313a0
89
+ consentType | AllPrincipals
90
+ id | MhBVHi0-a02TkpslRRMToFw7FM2TduxCifs3fo6XqP8
91
+ resourceId | cd143b5c-7693-42ec-89fb-377e8e97a8ff
92
+ scope | User.Read
93
93
  ```
94
94
 
95
95
  </TabItem>
@@ -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
 
@@ -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 unarchive
5
+ # spo site unarchive
6
6
 
7
7
  Unarchives a site collection
8
8
 
9
9
  ## Usage
10
10
 
11
11
  ```sh
12
- m365 spo tenant site unarchive [options]
12
+ m365 spo site unarchive [options]
13
13
  ```
14
14
 
15
15
  ## Options
@@ -49,13 +49,13 @@ After running this command, it may take a few minutes for the site to be fully r
49
49
  Unarchive a specific site collection.
50
50
 
51
51
  ```sh
52
- m365 spo tenant site unarchive --url "https://contoso.sharepoint.com/sites/Marketing"
52
+ m365 spo site unarchive --url "https://contoso.sharepoint.com/sites/Marketing"
53
53
  ```
54
54
 
55
55
  Unarchive a specific site collection without confirmation prompt.
56
56
 
57
57
  ```sh
58
- m365 spo tenant site unarchive --url "https://contoso.sharepoint.com/sites/Marketing" --force
58
+ m365 spo site unarchive --url "https://contoso.sharepoint.com/sites/Marketing" --force
59
59
  ```
60
60
 
61
61
  ## Response
@@ -30,9 +30,6 @@ m365 spo term list [options]
30
30
  `--termSetName [termSetName]`
31
31
  : Name of the term set for which to retrieve terms. Specify `termSetId` or `termSetName` but not both.
32
32
 
33
- `--includeChildTerms`
34
- : (deprecated. Use option `withChildTerms` instead) If specified, child terms are loaded as well.
35
-
36
33
  `--withChildTerms`
37
34
  : If specified, child terms are loaded as well.
38
35
  ```
@@ -26,13 +26,10 @@ m365 teams chat member add [options]
26
26
  : The role for the user to add. Valid values are: `owner`, `guest`. Defaults to `owner`.
27
27
 
28
28
  `--visibleHistoryStartDateTime [visibleHistoryStartDateTime]`
29
- : Include chat history until a certain point in time. Specify either `visibleHistoryStartDateTime`, `includeAllHistory`, `withAllHistory` or neither.
30
-
31
- `--includeAllHistory`
32
- : (deprecated. Use option `withChildTerms` instead) Include all chat history. Specify either `visibleHistoryStartDateTime`, `includeAllHistory`, `withAllHistory` or neither.
29
+ : Include chat history until a certain point in time. Specify either `visibleHistoryStartDateTime`, `withAllHistory` or neither.
33
30
 
34
31
  `--withAllHistory`
35
- : Include all chat history. Specify either `visibleHistoryStartDateTime`, `includeAllHistory`, `withAllHistory` or neither.
32
+ : Include all chat history. Specify either `visibleHistoryStartDateTime`, `withAllHistory` or neither.
36
33
  ```
37
34
 
38
35
  <Global />