@pnp/cli-microsoft365 5.9.0-beta.5aade58 → 5.9.0-beta.60e454b

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 (99) hide show
  1. package/.eslintrc.js +17 -2
  2. package/README.md +5 -0
  3. package/dist/appInsights.js +2 -0
  4. package/dist/m365/outlook/commands/mail/mail-send.js +1 -1
  5. package/dist/m365/planner/commands/bucket/bucket-get.js +1 -1
  6. package/dist/m365/pp/commands/Environment.js +3 -0
  7. package/dist/m365/pp/commands/card/card-list.js +68 -0
  8. package/dist/m365/pp/commands/dataverse/dataverse-table-list.js +69 -0
  9. package/dist/m365/pp/commands/environment/environment-get.js +75 -0
  10. package/dist/m365/pp/commands/solution/Solution.js +3 -0
  11. package/dist/m365/pp/commands/solution/solution-list.js +87 -0
  12. package/dist/m365/pp/commands/tenant/tenant-settings-list.js +45 -0
  13. package/dist/m365/pp/commands.js +6 -1
  14. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +0 -2
  15. package/dist/m365/spfx/commands/spfx-doctor.js +52 -7
  16. package/dist/m365/spo/commands/eventreceiver/EventReceiver.js +3 -0
  17. package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +182 -0
  18. package/dist/m365/spo/commands/file/file-copy.js +25 -39
  19. package/dist/m365/spo/commands/file/file-move.js +24 -37
  20. package/dist/m365/spo/commands/file/file-rename.js +19 -16
  21. package/dist/m365/spo/commands/file/file-roleassignment-add.js +231 -0
  22. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +180 -0
  23. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +129 -0
  24. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +125 -0
  25. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +168 -0
  26. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +94 -0
  27. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +89 -0
  28. package/dist/m365/spo/commands/group/AssociatedGroupPropertiesCollection.js +3 -0
  29. package/dist/m365/spo/commands/group/group-list.js +49 -10
  30. package/dist/m365/spo/commands/list/list-contenttype-add.js +21 -18
  31. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +59 -47
  32. package/dist/m365/spo/commands/list/list-contenttype-list.js +16 -8
  33. package/dist/m365/spo/commands/list/list-contenttype-remove.js +16 -8
  34. package/dist/m365/spo/commands/list/list-roleassignment-add.js +10 -10
  35. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +8 -8
  36. package/dist/m365/spo/commands/list/list-webhook-add.js +19 -11
  37. package/dist/m365/spo/commands/list/list-webhook-get.js +17 -9
  38. package/dist/m365/spo/commands/list/list-webhook-list.js +23 -24
  39. package/dist/m365/spo/commands/list/list-webhook-remove.js +19 -11
  40. package/dist/m365/spo/commands/list/list-webhook-set.js +18 -10
  41. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +8 -8
  42. package/dist/m365/spo/commands/web/web-roleassignment-add.js +10 -10
  43. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +8 -8
  44. package/dist/m365/spo/commands.js +8 -0
  45. package/dist/m365/teams/commands/channel/channel-add.js +9 -9
  46. package/dist/m365/todo/commands/task/task-set.js +53 -1
  47. package/dist/utils/cache.js +81 -0
  48. package/dist/utils/pid.js +57 -0
  49. package/dist/utils/powerPlatform.js +42 -0
  50. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +1 -1
  51. package/docs/docs/cmd/aad/user/user-signin-list.md +1 -1
  52. package/docs/docs/cmd/onedrive/report/report-activityusercounts.md +1 -1
  53. package/docs/docs/cmd/planner/task/task-checklistitem-list.md +1 -1
  54. package/docs/docs/cmd/planner/task/task-reference-add.md +1 -1
  55. package/docs/docs/cmd/pp/card/card-list.md +33 -0
  56. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.md +33 -0
  57. package/docs/docs/cmd/pp/environment/environment-get.md +38 -0
  58. package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
  59. package/docs/docs/cmd/pp/solution/solution-list.md +33 -0
  60. package/docs/docs/cmd/pp/tenant/tenant-settings-list.md +26 -0
  61. package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +1 -1
  62. package/docs/docs/cmd/spfx/spfx-doctor.md +10 -1
  63. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.md +2 -2
  64. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.md +69 -0
  65. package/docs/docs/cmd/spo/file/file-roleassignment-add.md +57 -0
  66. package/docs/docs/cmd/spo/file/file-roleassignment-remove.md +54 -0
  67. package/docs/docs/cmd/spo/file/file-roleinheritance-break.md +54 -0
  68. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.md +39 -0
  69. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.md +57 -0
  70. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.md +39 -0
  71. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +36 -0
  72. package/docs/docs/cmd/spo/group/group-list.md +10 -1
  73. package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +1 -1
  74. package/docs/docs/cmd/spo/hubsite/hubsite-get.md +3 -3
  75. package/docs/docs/cmd/spo/list/list-contenttype-add.md +16 -7
  76. package/docs/docs/cmd/spo/list/list-contenttype-default-set.md +16 -7
  77. package/docs/docs/cmd/spo/list/list-contenttype-list.md +15 -6
  78. package/docs/docs/cmd/spo/list/list-contenttype-remove.md +17 -8
  79. package/docs/docs/cmd/spo/list/list-roleassignment-add.md +1 -1
  80. package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +1 -1
  81. package/docs/docs/cmd/spo/list/list-webhook-add.md +15 -16
  82. package/docs/docs/cmd/spo/list/list-webhook-get.md +15 -6
  83. package/docs/docs/cmd/spo/list/list-webhook-list.md +16 -7
  84. package/docs/docs/cmd/spo/list/list-webhook-remove.md +12 -10
  85. package/docs/docs/cmd/spo/list/list-webhook-set.md +13 -11
  86. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +1 -1
  87. package/docs/docs/cmd/spo/roledefinition/roledefinition-add.md +1 -1
  88. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +1 -1
  89. package/docs/docs/cmd/teams/cache/cache-remove.md +1 -1
  90. package/docs/docs/cmd/teams/channel/channel-add.md +5 -5
  91. package/docs/docs/cmd/teams/channel/channel-member-set.md +1 -1
  92. package/docs/docs/cmd/teams/funsettings/funsettings-set.md +6 -6
  93. package/docs/docs/cmd/tenant/security/security-alerts-list.md +1 -1
  94. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +1 -1
  95. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +1 -1
  96. package/docs/docs/cmd/todo/task/task-set.md +29 -2
  97. package/npm-shrinkwrap.json +342 -357
  98. package/package.json +25 -18
  99. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +0 -60
@@ -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
+ ```
@@ -11,46 +11,45 @@ m365 spo list webhook add [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list to add the webhook to is located
14
+ : URL of the site where the list is located.
15
15
 
16
16
  `-l, --listId [listId]`
17
- : ID of the list to which the webhook which should be added. Specify either `listId` or `listTitle` but not both
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 the webhook which should be added. Specify either `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
  `-n, --notificationUrl <notificationUrl>`
23
- : The notification url
26
+ : The notification URL.
24
27
 
25
28
  `-e, --expirationDateTime [expirationDateTime]`
26
- : The expiration date. Will be set to max (6 months from today) if not provided
29
+ : The expiration date. Will be set to max (6 months from today) if not provided.
27
30
 
28
31
  `-c, --clientState [clientState]`
29
- : A client state information that will be passed through notifications
32
+ : A client state information that will be passed through notifications.
30
33
 
31
34
  --8<-- "docs/cmd/_global.md"
32
35
 
33
36
  ## Examples
34
37
 
35
- Add a web hook to the list Documents located in site _https://contoso.sharepoint.com/sites/ninja_ with the notification url
36
- _https://contoso-funcions.azurewebsites.net/webhook_ and the default expiration
37
- date
38
+ Add a web hook to the list retrieved by Title located in a specific site with a specific notification url and the default expiration date
38
39
 
39
40
  ```sh
40
41
  m365 spo list webhook add --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --notificationUrl https://contoso-funcions.azurewebsites.net/webhook
41
42
  ```
42
43
 
43
- Add a web hook to the list Documents located in site _https://contoso.sharepoint.com/sites/ninja_ with the notification url
44
- _https://contoso-funcions.azurewebsites.net/webhook_ and an expiration date of _January 21st, 2019_
44
+ Add a web hook to the list retrieved by URL located in a specific site with a specific notification url and a specific expiration date
45
45
 
46
46
  ```sh
47
- m365 spo list webhook add --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --notificationUrl https://contoso-funcions.azurewebsites.net/webhook --expirationDateTime 2019-01-21
47
+ m365 spo list webhook add --webUrl https://contoso.sharepoint.com/sites/ninja --listUrl '/sites/ninja/Documents' --notificationUrl https://contoso-funcions.azurewebsites.net/webhook --expirationDateTime 2019-01-21
48
48
  ```
49
49
 
50
- Add a web hook to the list Documents located in site _https://contoso.sharepoint.com/sites/ninja_ with the notification url
51
- _https://contoso-funcions.azurewebsites.net/webhook_, a very specific expiration date of _6:15 PM on March 2nd, 2019_ and
52
- a client state
50
+ Add a web hook to the list retrieved by ID located in a specific site with a specific notification url, a specific expiration date and a client state
51
+
53
52
 
54
53
  ```sh
55
- m365 spo list webhook add --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --notificationUrl https://contoso-funcions.azurewebsites.net/webhook --expirationDateTime '2019-03-02T18:15' --clientState "Hello State!"
54
+ m365 spo list webhook add --webUrl https://contoso.sharepoint.com/sites/ninja --listId '3d6aefa0-f438-4789-b0cd-6e865f5d65b5' --notificationUrl https://contoso-funcions.azurewebsites.net/webhook --expirationDateTime '2019-03-02T18:15' --clientState "Hello State!"
56
55
  ```
@@ -11,16 +11,19 @@ m365 spo list webhook get [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list to retrieve the webhook info for is located
14
+ : URL of the site where the list is located.
15
15
 
16
16
  `-l, --listId [listId]`
17
- : ID of the list from which to retrieve the webhook. Specify either `listId` or `listTitle` but not both
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 retrieve the webhook. Specify either `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
  `-i, --id [id]`
23
- : ID of the webhook to retrieve
26
+ : ID of the webhook.
24
27
 
25
28
  --8<-- "docs/cmd/_global.md"
26
29
 
@@ -30,14 +33,20 @@ If the specified `id` doesn't refer to an existing webhook, you will get a `404
30
33
 
31
34
  ## Examples
32
35
 
33
- Return information about a webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e85_ which belongs to a list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
36
+ Return information about a specific webhook which belongs to a list retrieved by ID in a specific site
34
37
 
35
38
  ```sh
36
39
  m365 spo list webhook get --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --id cc27a922-8224-4296-90a5-ebbc54da2e85
37
40
  ```
38
41
 
39
- Return information about a webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e85_ which belongs to a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
42
+ Return information about a specific webhook which belongs to a list retrieved by Title in a specific site
40
43
 
41
44
  ```sh
42
45
  m365 spo list webhook get --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e85
43
46
  ```
47
+
48
+ Return information about a specific webhook which belongs to a list retrieved by URL in a specific site
49
+
50
+ ```sh
51
+ m365 spo list webhook get --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/Documents' --id cc27a922-8224-4296-90a5-ebbc54da2e85
52
+ ```
@@ -11,32 +11,41 @@ m365 spo list webhook list [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list to retrieve webhooks for is located
14
+ : URL of the site where the list is located.
15
15
 
16
16
  `-i, --listId [listId]`
17
- : ID of the list to retrieve all webhooks for. Specify either `listId` or `listTitle` but not both
17
+ : ID of the list. Specify either `id`, `title`, `listTitle`, `listId` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list to retrieve all webhooks for. Specify either `listId` or `listTitle` but not both
20
+ : Title of the list. Specify either `id`, `title`, `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `id`, `title`, `listTitle`, `listId` or `listUrl`.
21
24
 
22
25
  `--id [id]`
23
- : (deprecated. Use `listId` instead) ID of the list to retrieve all webhooks for. Specify either `id` or `title` but not both
26
+ : (deprecated. Use `listId` instead) ID of the list to retrieve all webhooks for. Specify either `id`, `title`, `listTitle`, `listId` or `listUrl`.
24
27
 
25
28
  `--title [title]`
26
- : (deprecated. Use `listTitle` instead) Title of the list to retrieve all webhooks for. Specify either `id` or `title` but not both
29
+ : (deprecated. Use `listTitle` instead) Title of the list to retrieve all webhooks for. Specify either `id`, `title`, `listTitle`, `listId` or `listUrl`.
27
30
 
28
31
  --8<-- "docs/cmd/_global.md"
29
32
 
30
33
  ## Examples
31
34
 
32
- List all webhooks for a list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
35
+ List all webhooks for a list with a specific ID in a specific site
33
36
 
34
37
  ```sh
35
38
  m365 spo list webhook list --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf
36
39
  ```
37
40
 
38
- List all webhooks for a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
41
+ List all webhooks for a list with a specific title in a specific site
39
42
 
40
43
  ```sh
41
44
  m365 spo list webhook list --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents
42
45
  ```
46
+
47
+ List all webhooks for a list with a specific URL in a specific site
48
+
49
+ ```sh
50
+ m365 spo list webhook list --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/Documents'
51
+ ```
@@ -11,19 +11,22 @@ m365 spo list webhook remove [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list to remove the webhook from is located
14
+ : URL of the site where the list is located.
15
15
 
16
16
  `-l, --listId [listId]`
17
- : ID of the list from which the webhook should be removed. Specify either `listId` or `listTitle` but not both
17
+ : ID of the list. Specify either `listId`, `listTitle` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list from which the webhook should be removed. Specify either `listId` or `listTitle` but not both
20
+ : Title of the list. Specify either `listId`, `listTitle` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `listId`, `listTitle` or `listUrl`.
21
24
 
22
25
  `-i, --id <id>`
23
- : ID of the webhook to remove
26
+ : ID of the webhook.
24
27
 
25
28
  `--confirm`
26
- : Don't prompt for confirming removing the webhook
29
+ : Don't prompt for confirmation.
27
30
 
28
31
  --8<-- "docs/cmd/_global.md"
29
32
 
@@ -33,20 +36,19 @@ If the specified id doesn't refer to an existing webhook, you will get a `404 -
33
36
 
34
37
  ## Examples
35
38
 
36
- Remove webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ from a list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/ninja_
39
+ Remove webhook with a specific ID from a list retrieved by ID in a specific site
37
40
 
38
41
  ```sh
39
42
  m365 spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listId 0cd891ef-afce-4e55-b836-fce03286cccf --id cc27a922-8224-4296-90a5-ebbc54da2e81
40
43
  ```
41
44
 
42
- Remove webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ from a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/ninja_
43
-
45
+ Remove webhook with a specific ID from a list retrieved by Title in a specific site
44
46
  ```sh
45
47
  m365 spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e81
46
48
  ```
47
49
 
48
- Remove webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ from a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/ninja_ without being asked for confirmation
50
+ Remove webhook with a specific ID from a list retrieved by URL in a specific site without being asked for confirmation
49
51
 
50
52
  ```sh
51
- m365 spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e81 --confirm
53
+ m365 spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listUrl '/sites/ninja/Documents' --id cc27a922-8224-4296-90a5-ebbc54da2e81 --confirm
52
54
  ```
@@ -11,22 +11,25 @@ m365 spo list webhook set [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list which contains the webhook is located
14
+ : URL of the site where the list is located.
15
15
 
16
16
  `-l, --listId [listId]`
17
- : ID of the list which contains the webhook which should be updated. Specify either `listId` or `listTitle` but not both
17
+ : ID of the list. Specify either `listId`, `listTitle` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list which contains the webhook which should be updated. Specify either `listId` or `listTitle` but not both
20
+ : Title of the list. Specify either `listId`, `listTitle` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `listId`, `listTitle` or `listUrl`.
21
24
 
22
25
  `-i, --id [id]`
23
- : ID of the webhook to update
26
+ : ID of the webhook to update.
24
27
 
25
28
  `-n, --notificationUrl [notificationUrl]`
26
- : The new notification url
29
+ : The new notification url.
27
30
 
28
31
  `-e, --expirationDateTime [expirationDateTime]`
29
- : The new expiration date
32
+ : The new expiration date.
30
33
 
31
34
  --8<-- "docs/cmd/_global.md"
32
35
 
@@ -36,21 +39,20 @@ If the specified `id` doesn't refer to an existing webhook, you will get a `404
36
39
 
37
40
  ## Examples
38
41
 
39
- Update the notification url of a webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ which belongs to a list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/ninja_ to _https://contoso-functions.azurewebsites.net/webhook_
42
+ Update the notification url of a webhook with a specific ID attached to a list with a specific ID in a specific site to a specific URL
40
43
 
41
44
  ```sh
42
45
  m365 spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listId 0cd891ef-afce-4e55-b836-fce03286cccf --id cc27a922-8224-4296-90a5-ebbc54da2e81 --notificationUrl https://contoso-functions.azurewebsites.net/webhook
43
46
  ```
44
47
 
45
- Update the expiration date of a webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ which belongs to a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/ninja_ to _October 9th, 2018 at 6:15 PM_
48
+ Update the expiration date of a webhook with a specific ID attached to a list with a specific title in a specific site to a specfic date
46
49
 
47
50
  ```sh
48
51
  m365 spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e81 --expirationDateTime 2018-10-09T18:15
49
52
  ```
50
53
 
51
- From the webhook with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ which belongs to a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/ninja_ update the notification url to _https://contoso-functions.azurewebsites.net/webhook_
52
- and the expiration date to _March 2nd, 2019_
54
+ Update the notification url of a webhook with a specific ID attached to a list with a specific URL in a specific site to a specific URL and the expiration date to a specific date
53
55
 
54
56
  ```sh
55
- m365 spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e81 --notificationUrl https://contoso-functions.azurewebsites.net/webhook --expirationDateTime 2019-03-02
57
+ m365 spo list webhook set --webUrl https://contoso.sharepoint.com/sites/ninja --listUrl '/sites/ninja/Documents' --id cc27a922-8224-4296-90a5-ebbc54da2e81 --notificationUrl https://contoso-functions.azurewebsites.net/webhook --expirationDateTime 2019-03-02
56
58
  ```
@@ -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
+ ```
@@ -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
+ ```
@@ -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
+ ```
@@ -1,11 +1,11 @@
1
- # graph teams funsettings set
1
+ # teams funsettings set
2
2
 
3
3
  Updates fun settings of a Microsoft Teams team
4
4
 
5
5
  ## Usage
6
6
 
7
7
  ```sh
8
- m365 graph teams funsettings set [options]
8
+ m365 teams funsettings set [options]
9
9
  ```
10
10
 
11
11
  ## Options
@@ -32,23 +32,23 @@ m365 graph teams funsettings set [options]
32
32
  Allow giphy usage within a given Microsoft Teams team, setting the content rating for giphy to Moderate
33
33
 
34
34
  ```sh
35
- m365 graph teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowGiphy true --giphyContentRating Moderate
35
+ m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowGiphy true --giphyContentRating Moderate
36
36
  ```
37
37
 
38
38
  Disable usage of giphy within a given Microsoft Teams team
39
39
 
40
40
  ```sh
41
- m365 graph teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowGiphy false
41
+ m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowGiphy false
42
42
  ```
43
43
 
44
44
  Allow usage of stickers and memes within a given Microsoft Teams team
45
45
 
46
46
  ```sh
47
- m365 graph teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowStickersAndMemes true
47
+ m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowStickersAndMemes true
48
48
  ```
49
49
 
50
50
  Disable usage custom memes within a given Microsoft Teams team
51
51
 
52
52
  ```sh
53
- m365 graph teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowCustomMemes false
53
+ m365 teams funsettings set --teamId 83cece1e-938d-44a1-8b86-918cf6151957 --allowCustomMemes false
54
54
  ```
@@ -27,4 +27,4 @@ Get security alerts for a vendor with name _Azure Sentinel_
27
27
 
28
28
  ```sh
29
29
  m365 tenant security alerts list --vendor "Azure Sentinel"
30
- ```
30
+ ```
@@ -1,4 +1,4 @@
1
- # tenant service announcement health get
1
+ # tenant serviceannouncement health get
2
2
 
3
3
  Get the health report of a specified service for a tenant
4
4
 
@@ -1,4 +1,4 @@
1
- # tenant service announcement health list
1
+ # tenant serviceannouncement health list
2
2
 
3
3
  Gets the health report of all subscribed services for a tenant
4
4
 
@@ -25,18 +25,45 @@ m365 todo task set [options]
25
25
  `--listId [listId]`
26
26
  : The id of the task list in which the task exists. Specify either `listName` or `listId`, not both
27
27
 
28
+ `--bodyContent [bodyContent]`
29
+ : The body content of the task. In the UI this is called 'notes'.
30
+
31
+ `--bodyContentType [bodyContentType]`
32
+ : The type of the body content. Possible values are `text` and `html`. Default is `text`.
33
+
34
+ `--importance [importance]`
35
+ : The importance of the task. Possible values are: `low`, `normal`, `high`.
36
+
37
+ `--dueDateTime [dueDateTime]`
38
+ : The date and time when the task is due. This should be defined as a valid ISO 8601 string in the UTC time zone. Only date value is needed, time value is always ignored.
39
+
40
+ `--reminderDateTime [reminderDateTime]`
41
+ : The date and time for a reminder alert of the task to occur. This should be defined as a valid ISO 8601 string in the UTC time zone.
42
+
28
43
  --8<-- "docs/cmd/_global.md"
29
44
 
30
45
  ## Examples
31
46
 
32
- Update a task with title _New task_ to _Update doco_ in Microsoft To Do tasks list with the name _My task list_
47
+ Update a task with title _New task_ to _Update doco_ in Microsoft To Do tasks list with a specific name
33
48
 
34
49
  ```sh
35
50
  m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --title "Update doco" --listName "My task list"
36
51
  ```
37
52
 
38
- Update a task with status from _notStarted_ to _inProgress_ in Microsoft To Do tasks list with the name _My task list_
53
+ Update a task with status from _notStarted_ to _inProgress_ in Microsoft To Do tasks list with a specific name
39
54
 
40
55
  ```sh
41
56
  m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --status "inProgress" --listName "My task list"
42
57
  ```
58
+
59
+ Update a task with bodyContent and reminder and flag it as important in Microsoft To Do tasks list with a specific name
60
+
61
+ ```sh
62
+ m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --listName "My task list" --bodyContent "I should not forget this" --reminderDateTime 2023-01-01T12:00:00Z --importance high
63
+ ```
64
+
65
+ Update a task with due date in Microsoft To Do tasks list with list id
66
+
67
+ ```sh
68
+ m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --listId "AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA==" --dueDateTime 2023-01-01
69
+ ```