@pnp/cli-microsoft365 5.9.0-beta.21a8d94 → 5.9.0-beta.37c90df

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 (90) hide show
  1. package/.eslintrc.js +13 -0
  2. package/README.md +5 -0
  3. package/dist/appInsights.js +2 -0
  4. package/dist/m365/pp/commands/Environment.js +3 -0
  5. package/dist/m365/pp/commands/card/card-list.js +68 -0
  6. package/dist/m365/pp/commands/dataverse/dataverse-table-list.js +69 -0
  7. package/dist/m365/pp/commands/environment/environment-get.js +75 -0
  8. package/dist/m365/pp/commands/solution/Solution.js +3 -0
  9. package/dist/m365/pp/commands/solution/solution-list.js +87 -0
  10. package/dist/m365/pp/commands/tenant/tenant-settings-list.js +45 -0
  11. package/dist/m365/pp/commands.js +6 -1
  12. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +0 -2
  13. package/dist/m365/spfx/commands/spfx-doctor.js +52 -7
  14. package/dist/m365/spo/commands/eventreceiver/EventReceiver.js +3 -0
  15. package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +182 -0
  16. package/dist/m365/spo/commands/file/file-copy.js +25 -39
  17. package/dist/m365/spo/commands/file/file-move.js +24 -37
  18. package/dist/m365/spo/commands/file/file-rename.js +19 -16
  19. package/dist/m365/spo/commands/file/file-roleassignment-add.js +231 -0
  20. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +180 -0
  21. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +129 -0
  22. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +125 -0
  23. package/dist/m365/spo/commands/folder/folder-get.js +36 -6
  24. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +168 -0
  25. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +94 -0
  26. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +89 -0
  27. package/dist/m365/spo/commands/group/AssociatedGroupPropertiesCollection.js +3 -0
  28. package/dist/m365/spo/commands/group/group-list.js +49 -10
  29. package/dist/m365/spo/commands/list/list-contenttype-add.js +21 -18
  30. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +59 -47
  31. package/dist/m365/spo/commands/list/list-contenttype-list.js +16 -8
  32. package/dist/m365/spo/commands/list/list-contenttype-remove.js +16 -8
  33. package/dist/m365/spo/commands/list/list-roleassignment-add.js +10 -10
  34. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +8 -8
  35. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +8 -8
  36. package/dist/m365/spo/commands/web/web-roleassignment-add.js +10 -10
  37. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +8 -8
  38. package/dist/m365/spo/commands.js +8 -0
  39. package/dist/m365/teams/commands/channel/channel-add.js +9 -9
  40. package/dist/m365/teams/commands/channel/channel-list.js +3 -3
  41. package/dist/utils/cache.js +81 -0
  42. package/dist/utils/pid.js +57 -0
  43. package/dist/utils/powerPlatform.js +42 -0
  44. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +1 -1
  45. package/docs/docs/cmd/aad/user/user-signin-list.md +1 -1
  46. package/docs/docs/cmd/onedrive/report/report-activityusercounts.md +1 -1
  47. package/docs/docs/cmd/planner/task/task-checklistitem-list.md +1 -1
  48. package/docs/docs/cmd/planner/task/task-reference-add.md +1 -1
  49. package/docs/docs/cmd/pp/card/card-list.md +33 -0
  50. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.md +33 -0
  51. package/docs/docs/cmd/pp/environment/environment-get.md +38 -0
  52. package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
  53. package/docs/docs/cmd/pp/solution/solution-list.md +33 -0
  54. package/docs/docs/cmd/pp/tenant/tenant-settings-list.md +26 -0
  55. package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +1 -1
  56. package/docs/docs/cmd/spfx/spfx-doctor.md +10 -1
  57. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.md +69 -0
  58. package/docs/docs/cmd/spo/file/file-roleassignment-add.md +57 -0
  59. package/docs/docs/cmd/spo/file/file-roleassignment-remove.md +54 -0
  60. package/docs/docs/cmd/spo/file/file-roleinheritance-break.md +54 -0
  61. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.md +39 -0
  62. package/docs/docs/cmd/spo/folder/folder-get.md +13 -4
  63. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.md +57 -0
  64. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.md +39 -0
  65. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +36 -0
  66. package/docs/docs/cmd/spo/group/group-list.md +10 -1
  67. package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +1 -1
  68. package/docs/docs/cmd/spo/hubsite/hubsite-get.md +3 -3
  69. package/docs/docs/cmd/spo/list/list-contenttype-add.md +16 -7
  70. package/docs/docs/cmd/spo/list/list-contenttype-default-set.md +16 -7
  71. package/docs/docs/cmd/spo/list/list-contenttype-list.md +15 -6
  72. package/docs/docs/cmd/spo/list/list-contenttype-remove.md +17 -8
  73. package/docs/docs/cmd/spo/list/list-roleassignment-add.md +1 -1
  74. package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +1 -1
  75. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +1 -1
  76. package/docs/docs/cmd/spo/roledefinition/roledefinition-add.md +1 -1
  77. package/docs/docs/cmd/spo/web/web-roleassignment-add.md +5 -5
  78. package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +5 -5
  79. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +1 -1
  80. package/docs/docs/cmd/teams/cache/cache-remove.md +1 -1
  81. package/docs/docs/cmd/teams/channel/channel-add.md +5 -5
  82. package/docs/docs/cmd/teams/channel/channel-list.md +1 -1
  83. package/docs/docs/cmd/teams/channel/channel-member-set.md +1 -1
  84. package/docs/docs/cmd/teams/funsettings/funsettings-set.md +6 -6
  85. package/docs/docs/cmd/tenant/security/security-alerts-list.md +1 -1
  86. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +1 -1
  87. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +1 -1
  88. package/npm-shrinkwrap.json +342 -357
  89. package/package.json +22 -18
  90. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +0 -60
@@ -0,0 +1,54 @@
1
+ # spo file roleinheritance break
2
+
3
+ Breaks inheritance of a file. Keeping existing permissions is the default behavior.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo file roleinheritance break [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the file is located
15
+
16
+ `--fileUrl [fileUrl]`
17
+ : The server-relative URL of the file. Specify either `fileUrl` or `fileId` but not both
18
+
19
+ `i, --fileId [fileId]`
20
+ : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both
21
+
22
+ `-c, --clearExistingPermissions`
23
+ : Clear all existing permissions from the file
24
+
25
+ `--confirm`
26
+ : Don't prompt for confirmation
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ Break the inheritance of a file with a specific id (UniqueId).
33
+
34
+ ```sh
35
+ m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6"
36
+ ```
37
+
38
+ Break the inheritance of a file with a specific id (UniqueId) and clear all existing permissions.
39
+
40
+ ```sh
41
+ m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6" --clearExistingPermissions
42
+ ```
43
+
44
+ Break the inheritance of a file with a specific server-relative URL.
45
+
46
+ ```sh
47
+ m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx"
48
+ ```
49
+
50
+ Break the inheritance of a file with a specific server-relative URL and clear all existing permissions.
51
+
52
+ ```sh
53
+ m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx" --clearExistingPermissions
54
+ ```
@@ -0,0 +1,39 @@
1
+ # spo file roleinheritance reset
2
+
3
+ Restores the role inheritance of a file
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo file roleinheritance reset [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the file is located
15
+
16
+ `--fileUrl [fileUrl]`
17
+ : The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
18
+
19
+ `i, --fileId [fileId]`
20
+ : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
21
+
22
+ `--confirm`
23
+ : Don't prompt for confirmation
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Examples
28
+
29
+ Reset inheritance of file with id (UniqueId) _b2307a39-e878-458b-bc90-03bc578531d6_ located in site _https://contoso.sharepoint.com/sites/project-x_
30
+
31
+ ```sh
32
+ m365 spo file roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6"
33
+ ```
34
+
35
+ Reset inheritance of file with server-relative url _/sites/project-x/documents/Test1_.docx located in site _https://contoso.sharepoint.com/sites/project-x_. It will **not** prompt for confirmation before resetting.
36
+
37
+ ```sh
38
+ m365 spo file roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx" --confirm
39
+ ```
@@ -13,8 +13,11 @@ m365 spo folder get [options]
13
13
  `-u, --webUrl <webUrl>`
14
14
  : The URL of the site where the folder is located
15
15
 
16
- `-f, --folderUrl <folderUrl>`
17
- : Site-relative URL of the folder
16
+ `-f, --folderUrl [folderUrl]`
17
+ : The server-relative URL of the folder to retrieve. Specify either `folderUrl` or `id` but not both
18
+
19
+ `-i, --id [id]`
20
+ : The UniqueId (GUID) of the folder to retrieve. Specify either `folderUrl` or `id` but not both
18
21
 
19
22
  --8<-- "docs/cmd/_global.md"
20
23
 
@@ -24,8 +27,14 @@ If no folder exists at the specified URL, you will get a `Please check the folde
24
27
 
25
28
  ## Examples
26
29
 
27
- Get folder properties for folder with site-relative url _'/Shared Documents'_ located in site _https://contoso.sharepoint.com/sites/project-x_
30
+ Get folder properties for folder with server-relative url _'/Shared Documents'_ located in site _https://contoso.sharepoint.com/sites/project-x_
31
+
32
+ ```sh
33
+ m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl "/Shared Documents"
34
+ ```
35
+
36
+ Get folder properties for folder with id (UniqueId) _b2307a39-e878-458b-bc90-03bc578531d6_ located in site _https://contoso.sharepoint.com/sites/project-x_
28
37
 
29
38
  ```sh
30
- m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl '/Shared Documents'
39
+ m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --id "b2307a39-e878-458b-bc90-03bc578531d6"
31
40
  ```
@@ -0,0 +1,57 @@
1
+ # spo folder roleassignment remove
2
+
3
+ Removes a role assignment from the specified folder.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo folder roleassignment remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : The URL of the site where the folder is located.
15
+
16
+ `-f, --folderUrl <folderUrl>`
17
+ : The server- or site-relative URL of the folder.
18
+
19
+ `--principalId [principalId]`
20
+ : The SharePoint principal id. It may be either an user id or group id for which the role assignment will be removed. Specify either upn, groupName or principalId but not multiple.
21
+
22
+ `--upn [upn]`
23
+ : The upn/email of the user. Specify either upn, groupName or principalId but not multiple.
24
+
25
+ `--groupName [groupName]`
26
+ : The Azure AD or SharePoint group name. Specify either upn, groupName or principalId but not multiple.
27
+
28
+ `--confirm`
29
+ : Don't prompt for confirmation when removing the role assignment.
30
+
31
+ --8<-- "docs/cmd/_global.md"
32
+
33
+ ## Examples
34
+
35
+ Remove roleassignment from folder based on group name
36
+
37
+ ```sh
38
+ m365 spo folder roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --folderUrl "/Shared Documents/FolderPermission" --groupName "saleGroup"
39
+ ```
40
+
41
+ Remove the role assignment from the specified folder based on the principal id.
42
+
43
+ ```sh
44
+ m365 spo folder roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --folderUrl "/Shared Documents/FolderPermission" --principalId 2
45
+ ```
46
+
47
+ Remove the role assignment from the specified folder based on the principal id without prompting for removal confirmation.
48
+
49
+ ```sh
50
+ m365 spo folder roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --folderUrl "/Shared Documents/FolderPermission" --principalId 2 --confirm
51
+ ```
52
+
53
+ Remove the role assignment from the specified folder based on the upn.
54
+
55
+ ```sh
56
+ m365 spo folder roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --folderUrl "/Shared Documents/FolderPermission" --upn "test@contoso.onmicrosoft.com"
57
+ ```
@@ -0,0 +1,39 @@
1
+ # spo folder roleinheritance break
2
+
3
+ Breaks the role inheritance of a folder.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo folder roleinheritance break [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the folder is located.
15
+
16
+ `-f, --folderUrl <folderUrl>`
17
+ : The site-relative URL or server-relative URL of the folder.
18
+
19
+ `-c, --clearExistingPermissions`
20
+ : Clear all existing permissions from the folder.
21
+
22
+ `--confirm`
23
+ : Don't prompt for confirmation to breaking role inheritance of the folder.
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Examples
28
+
29
+ Break the inheritance of a folder with a specified site-relative URL.
30
+
31
+ ```sh
32
+ m365 spo folder roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "Shared Documents/TestFolder"
33
+ ```
34
+
35
+ Break the inheritance of a folder with a specified server-relative URL. It will clear the existing permissions of the folder. It will **not** prompt for confirmation before breaking the inheritance.
36
+
37
+ ```sh
38
+ m365 spo folder roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "/sites/project-x/Shared Documents/TestFolder" --clearExistingPermissions --confirm
39
+ ```
@@ -0,0 +1,36 @@
1
+ # spo folder roleinheritance reset
2
+
3
+ Restores the role inheritance of a folder.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo folder roleinheritance reset [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the folder is located.
15
+
16
+ `-f, --folderUrl <folderUrl>`
17
+ : The site-relative URL of the folder.
18
+
19
+ `--confirm`
20
+ : Don't prompt for confirmation to reset role inheritance of the folder.
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Examples
25
+
26
+ Reset inheritance of folder with site-relative url _Shared Documents/TestFolder_ located in site _https://contoso.sharepoint.com/sites/project-x_.
27
+
28
+ ```sh
29
+ m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "Shared Documents/TestFolder"
30
+ ```
31
+
32
+ Reset inheritance of folder with server-relative url _/sites/project-x/Shared Documents/TestFolder_ located in site _https://contoso.sharepoint.com/sites/project-x_. It will **not** prompt for confirmation before resetting.
33
+
34
+ ```sh
35
+ m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "/sites/project-x/Shared Documents/TestFolder" --confirm
36
+ ```
@@ -13,12 +13,21 @@ m365 spo group list [options]
13
13
  `-u, --webUrl <webUrl>`
14
14
  : Url of the web to list the group within
15
15
 
16
+ `--associatedGroupsOnly`
17
+ : Get only the associated visitor, member and owner groups of the site.
18
+
16
19
  --8<-- "docs/cmd/_global.md"
17
20
 
18
21
  ## Examples
19
22
 
20
- Lists all the groups within specific web _https://contoso.sharepoint.com/sites/contoso_
23
+ Lists all the groups within a specific web
21
24
 
22
25
  ```sh
23
26
  m365 spo group list --webUrl "https://contoso.sharepoint.com/sites/contoso"
24
27
  ```
28
+
29
+ Lists the associated groups within a specific web
30
+
31
+ ```sh
32
+ m365 spo group list --webUrl "https://contoso.sharepoint.com/sites/contoso" --associatedGroupsOnly
33
+ ```
@@ -1,6 +1,6 @@
1
1
  # spo hubsite disconnect
2
2
 
3
- Disconnects the specifies site collection from its hub site
3
+ Disconnects the specified site collection from its hub site
4
4
 
5
5
  ## Usage
6
6
 
@@ -11,13 +11,13 @@ m365 spo hubsite get [options]
11
11
  ## Options
12
12
 
13
13
  `-i, --id [id]`
14
- : ID of the hubsite. Specify either `id`, `title` or `url` but not multiple.
14
+ : ID of the hub site. Specify either `id`, `title` or `url` but not multiple.
15
15
 
16
16
  `-t, --title [title]`
17
- : Title of the hubsite. Specify either `id`, `title` or `url` but not multiple.
17
+ : Title of the hub site. Specify either `id`, `title` or `url` but not multiple.
18
18
 
19
19
  `-u, --url [url]`
20
- : URL of the hubsite. Specify either `id`, `title` or `url` but not multiple.
20
+ : URL of the hub site. Specify either `id`, `title` or `url` but not multiple.
21
21
 
22
22
  `--includeAssociatedSites`
23
23
  : Include the associated sites in the result (only in JSON output)
@@ -11,29 +11,38 @@ m365 spo list contenttype add [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list is located
14
+ : URL of the site where the list is located.
15
15
 
16
- `-l, --listId [listId]`
17
- : ID of the list to which to add the content type. Specify `listId` or `listTitle` but not both
16
+ `-i, --listId [listId]`
17
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list to which to add the content type. Specify `listId` or `listTitle` but not both
20
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
24
 
22
25
  `-c, --contentTypeId <contentTypeId>`
23
- : ID of the content type to add to the list
26
+ : ID of the content type
24
27
 
25
28
  --8<-- "docs/cmd/_global.md"
26
29
 
27
30
  ## Examples
28
31
 
29
- Add existing content type with ID _0x0120_ to the list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
32
+ Adds a specific existing content type to a list retrieved by id in a specific site.
30
33
 
31
34
  ```sh
32
35
  m365 spo list contenttype add --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --contentTypeId 0x0120
33
36
  ```
34
37
 
35
- Add existing content type with ID _0x0120_ to the list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
38
+ Adds a specific existing content type to a list retrieved by title in a specific site.
36
39
 
37
40
  ```sh
38
41
  m365 spo list contenttype add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents --contentTypeId 0x0120
39
42
  ```
43
+
44
+ Adds a specific existing content type to a list retrieved by server relative URL in a specific site.
45
+
46
+ ```sh
47
+ m365 spo list contenttype add --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'sites/project-x/Documents' --contentTypeId 0x0120
48
+ ```
@@ -11,29 +11,38 @@ m365 spo list contenttype default set [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list is located
14
+ : URL of the site where the list is located.
15
15
 
16
- `-l, --listId [listId]`
17
- : ID of the list on which to set default content type, specify `listId` or `listTitle` but not both
16
+ `-i, --listId [listId]`
17
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list on which to set default content type, specify `listId` or `listTitle` but not both
20
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
24
 
22
25
  `-c, --contentTypeId <contentTypeId>`
23
- : ID of the content type to set as default on the list
26
+ : ID of the content type
24
27
 
25
28
  --8<-- "docs/cmd/_global.md"
26
29
 
27
30
  ## Examples
28
31
 
29
- Set content type with ID _0x0120_ as default in the list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
32
+ Set a content type with a specific id as default a list retrieved by id located in a specific site.
30
33
 
31
34
  ```sh
32
35
  m365 spo list contenttype default set --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --contentTypeId 0x0120
33
36
  ```
34
37
 
35
- Set content type with ID _0x0120_ as default in the list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
38
+ Set a content type with a specific id as default a list retrieved by title located in a specific site.
36
39
 
37
40
  ```sh
38
41
  m365 spo list contenttype default set --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents --contentTypeId 0x0120
39
42
  ```
43
+
44
+ Set a content type with a specific id as default a list retrieved by server relative URL located in a specific site.
45
+
46
+ ```sh
47
+ m365 spo list contenttype default set --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'sites/project-x/Documents' --contentTypeId 0x0120
48
+ ```
@@ -11,26 +11,35 @@ m365 spo list contenttype list [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list is located
14
+ : URL of the site where the list is located.
15
15
 
16
- `-l, --listId [listId]`
17
- : ID of the list for which to list configured content types. Specify `listId` or `listTitle` but not both
16
+ `-i, --listId [listId]`
17
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list for which to list configured content types. Specify `listId` or `listTitle` but not both
20
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
24
 
22
25
  --8<-- "docs/cmd/_global.md"
23
26
 
24
27
  ## Examples
25
28
 
26
- List all content types configured on the list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
29
+ List all content types configured on a specific list retrieved by id in a specific site.
27
30
 
28
31
  ```sh
29
32
  m365 spo list contenttype list --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf
30
33
  ```
31
34
 
32
- List all content types configured on the list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
35
+ List all content types configured on a specific list retrieved by title in a specific site.
33
36
 
34
37
  ```sh
35
38
  m365 spo list contenttype list --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents
36
39
  ```
40
+
41
+ List all content types configured on a specific list retrieved by server relative URL in a specific site.
42
+
43
+ ```sh
44
+ m365 spo list contenttype list --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'sites/project-x/Documents'
45
+ ```
@@ -11,32 +11,41 @@ m365 spo list contenttype remove [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list is located
14
+ : URL of the site where the list is located.
15
15
 
16
- `-l, --listId [listId]`
17
- : ID of the list from which to remove the content type, specify `listId` or `listTitle` but not both
16
+ `-i, --listId [listId]`
17
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list from which to remove the content type, specify `listId` or `listTitle` but not both
20
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
24
 
22
25
  `-c, --contentTypeId <contentTypeId>`
23
- : ID of the content type to remove from the list
26
+ : ID of the content type
24
27
 
25
28
  `--confirm`
26
- : Don't prompt for confirming removing the content type from the list
29
+ : Don't prompt for confirmation
27
30
 
28
31
  --8<-- "docs/cmd/_global.md"
29
32
 
30
33
  ## Examples
31
34
 
32
- Remove content type with ID _0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A_ from the list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
35
+ Remove content type with a specific id from the list retrieved by id in a specific site.
33
36
 
34
37
  ```sh
35
38
  m365 spo list contenttype remove --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --contentTypeId 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A
36
39
  ```
37
40
 
38
- Remove content type with ID _0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A_ from the list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
41
+ Remove content type with a specific id from the list retrieved by title in a specific site.
39
42
 
40
43
  ```sh
41
44
  m365 spo list contenttype remove --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents --contentTypeId 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A
42
45
  ```
46
+
47
+ Remove content type with a specific id from the list retrieved by server relative URL in a specific site. This will not prompt for confirmation.
48
+
49
+ ```sh
50
+ m365 spo list contenttype remove --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'sites/project-x/Documents' --contentTypeId 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A --confirm
51
+ ```
@@ -75,4 +75,4 @@ add role assignment to list _someList_ located in site _https://contoso.sharepoi
75
75
 
76
76
  ```sh
77
77
  m365 spo list roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --principalId 11 --roleDefinitionName "Full Control"
78
- ```
78
+ ```
@@ -54,4 +54,4 @@ Remove roleassignment from list by url based on principal Id
54
54
 
55
55
  ```sh
56
56
  m365 spo list roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --listUrl '/sites/contoso-sales/lists/Events' --principalId 2
57
- ```
57
+ ```
@@ -64,4 +64,4 @@ Remove roleassignment from listitem getting list by url based on principal Id wi
64
64
 
65
65
  ```sh
66
66
  m365 spo listitem roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --listUrl '/sites/contoso-sales/lists/Events' --listItemId 1 --principalId 2 --confirm
67
- ```
67
+ ```
@@ -40,4 +40,4 @@ Adds the role definition for site _https://contoso.sharepoint.com/sites/project-
40
40
 
41
41
  ```sh
42
42
  m365 spo roledefinition add --webUrl https://contoso.sharepoint.com/sites/project-x --name test --description "test description" --rights "ViewListItems,AddListItems,EditListItems,DeleteListItems"
43
- ```
43
+ ```
@@ -35,23 +35,23 @@ m365 spo web roleassignment add [options]
35
35
  add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for principal id _11_ and role definition id _1073741829_
36
36
 
37
37
  ```sh
38
- m365 spo list roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --principalId 11 --roleDefinitionId 1073741829
38
+ m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --principalId 11 --roleDefinitionId 1073741829
39
39
  ```
40
40
 
41
41
  add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for upn _someaccount@tenant.onmicrosoft.com_ and role definition id _1073741829_
42
42
 
43
43
  ```sh
44
- m365 spo list roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --upn "someaccount@tenant.onmicrosoft.com" --roleDefinitionId 1073741829
44
+ m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --upn "someaccount@tenant.onmicrosoft.com" --roleDefinitionId 1073741829
45
45
  ```
46
46
 
47
47
  add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for group _someGroup_ and role definition id _1073741829_
48
48
 
49
49
  ```sh
50
- m365 spo list roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --groupName "someGroup" --roleDefinitionId 1073741829
50
+ m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --groupName "someGroup" --roleDefinitionId 1073741829
51
51
  ```
52
52
 
53
53
  add role assignment to site _https://contoso.sharepoint.com/sites/project-x_for principal id _11_ and role definition name _Full Control_
54
54
 
55
55
  ```sh
56
- m365 spo list roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --principalId 11 --roleDefinitionName "Full Control"
57
- ```
56
+ m365 spo web roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --principalId 11 --roleDefinitionName "Full Control"
57
+ ```
@@ -32,23 +32,23 @@ m365 spo web roleassignment remove [options]
32
32
  Remove roleassignment from web based on group name
33
33
 
34
34
  ```sh
35
- m365 spo list roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --groupName "saleGroup"
35
+ m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --groupName "saleGroup"
36
36
  ```
37
37
 
38
38
  Remove roleassignment from web based on principal Id
39
39
 
40
40
  ```sh
41
- m365 spo list roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --principalId 2
41
+ m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --principalId 2
42
42
  ```
43
43
 
44
44
  Remove roleassignment from web based on upn
45
45
 
46
46
  ```sh
47
- m365 spo list roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --upn "someaccount@tenant.onmicrosoft.com"
47
+ m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --upn "someaccount@tenant.onmicrosoft.com"
48
48
  ```
49
49
 
50
50
  Remove roleassignment from web based on principal Id without prompting for confirmation
51
51
 
52
52
  ```sh
53
- m365 spo list roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --principalId 2 --confirm
54
- ```
53
+ m365 spo web roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --principalId 2 --confirm
54
+ ```
@@ -21,4 +21,4 @@ Restore role inheritance of subsite _https://contoso.sharepoint.com/sites/projec
21
21
 
22
22
  ```sh
23
23
  m365 spo web roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x
24
- ```
24
+ ```
@@ -43,4 +43,4 @@ m365 teams cache remove
43
43
 
44
44
  ## More information
45
45
 
46
- - [Clear the Teams client cache guidance](https://docs.microsoft.com/microsoftteams/troubleshoot/teams-administration/clear-teams-cache)
46
+ - [Clear the Teams client cache guidance](https://docs.microsoft.com/microsoftteams/troubleshoot/teams-administration/clear-teams-cache)
@@ -23,10 +23,10 @@ m365 teams channel add [options]
23
23
  : The description of the channel to add
24
24
 
25
25
  `--type [type]`
26
- : Type of channel to create: `standard,private`. Default `standard`.
26
+ : Type of channel to create: `standard`, `private`, `shared`. Default `standard`.
27
27
 
28
28
  `--owner [owner]`
29
- : User with this ID or UPN will be added as owner of the private channel. This option is required when type is `private`.
29
+ : User with this ID or UPN will be added as owner of the channel. This option is required when type is `private` or `shared`.
30
30
 
31
31
  --8<-- "docs/cmd/_global.md"
32
32
 
@@ -54,8 +54,8 @@ Add private channel to the specified Microsoft Teams team with owner UPN
54
54
  m365 teams channel add --teamName "Team Name" --name climicrosoft365 --type private --owner john.doe@contoso.com
55
55
  ```
56
56
 
57
- Add private channel to the specified Microsoft Teams team with owner ID
57
+ Add shared channel to the specified Microsoft Teams team with owner ID
58
58
 
59
59
  ```sh
60
- m365 teams channel add --teamId 6703ac8a-c49b-4fd4-8223-28f0ac3a6402 --name climicrosoft365 --type private --owner cc693a7d-4833-4911-a89a-f0fe6e49bf69
61
- ```
60
+ m365 teams channel add --teamId 6703ac8a-c49b-4fd4-8223-28f0ac3a6402 --name climicrosoft365 --type shared --owner cc693a7d-4833-4911-a89a-f0fe6e49bf69
61
+ ```
@@ -17,7 +17,7 @@ m365 teams channel list [options]
17
17
  : The display name of the team to list the channels of. Specify either `teamId` or `teamName` but not both
18
18
 
19
19
  `--type [type]`
20
- : Filter the results to only channels of a given type: `standard, private`. By default all channels are listed.
20
+ : Filter the results to only channels of a given type: `standard`, `private`, `shared`. By default all channels are listed.
21
21
 
22
22
  --8<-- "docs/cmd/_global.md"
23
23
 
@@ -48,4 +48,4 @@ Updates the role of the user with id 00000000-0000-0000-0000-000000000000 to mem
48
48
 
49
49
  ```sh
50
50
  m365 teams channel member set --teamName "Team Name" --channelName "Channel Name" --userId 00000000-0000-0000-0000-000000000000 --role member
51
- ```
51
+ ```