@pnp/cli-microsoft365 5.2.0 → 5.3.0-beta.4033f50

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 (87) hide show
  1. package/.eslintrc.js +1 -0
  2. package/dist/m365/aad/commands/app/app-add.js +1 -1
  3. package/dist/m365/aad/commands/app/app-role-list.js +1 -1
  4. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +55 -22
  5. package/dist/m365/aad/commands/group/group-list.js +1 -1
  6. package/dist/m365/aad/commands/groupsetting/groupsetting-list.js +1 -1
  7. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +1 -1
  8. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-list.js +1 -1
  9. package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +1 -1
  10. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +1 -1
  11. package/dist/m365/aad/commands/o365group/o365group-list.js +1 -1
  12. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +3 -3
  13. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +1 -1
  14. package/dist/m365/aad/commands/o365group/o365group-user-list.js +2 -2
  15. package/dist/m365/aad/commands/o365group/o365group-user-set.js +2 -2
  16. package/dist/m365/aad/commands/user/user-list.js +1 -1
  17. package/dist/m365/aad/commands/user/user-signin-list.js +1 -1
  18. package/dist/m365/aad/commands.js +1 -1
  19. package/dist/m365/app/commands/app-open.js +64 -0
  20. package/dist/m365/app/commands.js +1 -0
  21. package/dist/m365/file/commands/file-list.js +1 -1
  22. package/dist/m365/outlook/commands/message/message-list.js +1 -1
  23. package/dist/m365/outlook/commands/room/room-list.js +1 -1
  24. package/dist/m365/outlook/commands/roomlist/roomlist-list.js +1 -1
  25. package/dist/m365/planner/commands/bucket/bucket-add.js +8 -16
  26. package/dist/m365/planner/commands/bucket/bucket-get.js +186 -0
  27. package/dist/m365/planner/commands/bucket/bucket-list.js +10 -19
  28. package/dist/m365/planner/commands/bucket/bucket-remove.js +202 -0
  29. package/dist/m365/planner/commands/bucket/bucket-set.js +9 -21
  30. package/dist/m365/planner/commands/plan/plan-add.js +6 -1
  31. package/dist/m365/planner/commands/plan/plan-details-get.js +12 -15
  32. package/dist/m365/planner/commands/plan/plan-get.js +13 -18
  33. package/dist/m365/planner/commands/plan/plan-list.js +10 -13
  34. package/dist/m365/planner/commands/task/task-add.js +8 -16
  35. package/dist/m365/planner/commands/task/task-details-get.js +6 -0
  36. package/dist/m365/planner/commands/task/task-get.js +138 -7
  37. package/dist/m365/planner/commands/task/task-list.js +15 -24
  38. package/dist/m365/planner/commands/task/task-set.js +9 -18
  39. package/dist/m365/planner/commands.js +2 -0
  40. package/dist/m365/pp/commands/managementapp/managementapp-list.js +1 -1
  41. package/dist/m365/spo/commands/field/field-list.js +84 -0
  42. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +84 -0
  43. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +76 -0
  44. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +83 -0
  45. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +79 -0
  46. package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +49 -0
  47. package/dist/m365/spo/commands.js +6 -0
  48. package/dist/m365/teams/commands/app/app-list.js +1 -1
  49. package/dist/m365/teams/commands/channel/channel-list.js +1 -1
  50. package/dist/m365/teams/commands/channel/channel-member-list.js +1 -1
  51. package/dist/m365/teams/commands/chat/chat-get.js +8 -8
  52. package/dist/m365/teams/commands/chat/chat-list.js +1 -1
  53. package/dist/m365/teams/commands/chat/chat-member-list.js +1 -1
  54. package/dist/m365/teams/commands/chat/chat-message-list.js +1 -1
  55. package/dist/m365/teams/commands/chat/chat-message-send.js +6 -6
  56. package/dist/m365/teams/commands/chat/chatUtil.js +4 -4
  57. package/dist/m365/teams/commands/message/message-list.js +1 -1
  58. package/dist/m365/teams/commands/message/message-reply-list.js +1 -1
  59. package/dist/m365/teams/commands/tab/tab-list.js +1 -1
  60. package/dist/m365/teams/commands/team/team-list.js +1 -1
  61. package/dist/m365/teams/commands/user/user-app-list.js +1 -1
  62. package/dist/m365/teams/commands/user/user-list.js +2 -2
  63. package/dist/m365/tenant/commands/security/security-alerts-list.js +71 -0
  64. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +1 -1
  65. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +1 -1
  66. package/dist/m365/tenant/commands.js +1 -0
  67. package/dist/m365/todo/commands/list/list-list.js +1 -1
  68. package/dist/m365/todo/commands/task/task-list.js +1 -1
  69. package/dist/utils/accessToken.js +18 -0
  70. package/dist/utils/odata.js +2 -2
  71. package/dist/utils/planner.js +65 -0
  72. package/docs/docs/cmd/app/app-open.md +45 -0
  73. package/docs/docs/cmd/planner/bucket/bucket-get.md +57 -0
  74. package/docs/docs/cmd/planner/bucket/bucket-remove.md +60 -0
  75. package/docs/docs/cmd/planner/task/task-get.md +30 -3
  76. package/docs/docs/cmd/spo/field/field-list.md +51 -0
  77. package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +55 -0
  78. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +36 -0
  79. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +58 -0
  80. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +39 -0
  81. package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +24 -0
  82. package/docs/docs/cmd/teams/channel/channel-member-list.md +4 -4
  83. package/docs/docs/cmd/teams/channel/channel-member-remove.md +2 -2
  84. package/docs/docs/cmd/teams/channel/channel-member-set.md +2 -2
  85. package/docs/docs/cmd/tenant/security/security-alerts-list.md +30 -0
  86. package/npm-shrinkwrap.json +1517 -1284
  87. package/package.json +25 -25
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.odata = void 0;
13
13
  const request_1 = require("../request");
14
14
  exports.odata = {
15
- getAllItems(url, logger, metadata) {
15
+ getAllItems(url, metadata) {
16
16
  var _a;
17
17
  return __awaiter(this, void 0, void 0, function* () {
18
18
  let items = [];
@@ -27,7 +27,7 @@ exports.odata = {
27
27
  items = res.value;
28
28
  const nextLink = (_a = res['@odata.nextLink']) !== null && _a !== void 0 ? _a : res.nextLink;
29
29
  if (nextLink) {
30
- const nextPageItems = yield exports.odata.getAllItems(nextLink, logger, metadata);
30
+ const nextPageItems = yield exports.odata.getAllItems(nextLink, metadata);
31
31
  items = items.concat(nextPageItems);
32
32
  }
33
33
  return items;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.planner = void 0;
13
+ const request_1 = require("../request");
14
+ const odata_1 = require("./odata");
15
+ const graphResource = 'https://graph.microsoft.com';
16
+ const getRequestOptions = (url, metadata) => ({
17
+ url: url,
18
+ headers: {
19
+ accept: `application/json;odata.metadata=${metadata}`
20
+ },
21
+ responseType: 'json'
22
+ });
23
+ exports.planner = {
24
+ /**
25
+ * Get Planner plan by ID.
26
+ * @param id Planner ID.
27
+ */
28
+ getPlanById(id) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ const requestOptions = getRequestOptions(`${graphResource}/v1.0/planner/plans/${id}`, 'none');
31
+ try {
32
+ return yield request_1.default.get(requestOptions);
33
+ }
34
+ catch (ex) {
35
+ throw Error(`Planner plan with id '${id}' was not found.`);
36
+ }
37
+ });
38
+ },
39
+ /**
40
+ * Get all Planner plans for a specific group.
41
+ * @param groupId Group ID.
42
+ */
43
+ getPlansByGroupId(groupId) {
44
+ return odata_1.odata.getAllItems(`${graphResource}/v1.0/groups/${groupId}/planner/plans`, 'none');
45
+ },
46
+ /**
47
+ * Get Planner plan by name in a specific group.
48
+ * @param name Name of the Planner plan. Case insensitive.
49
+ * @param groupId Owner group ID .
50
+ */
51
+ getPlanByName(name, groupId) {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const plans = yield this.getPlansByGroupId(groupId);
54
+ const filteredPlans = plans.filter(p => p.title && p.title.toLowerCase() === name.toLowerCase());
55
+ if (!filteredPlans.length) {
56
+ throw Error(`The specified plan '${name}' does not exist.`);
57
+ }
58
+ if (filteredPlans.length > 1) {
59
+ throw Error(`Multiple plans with name '${name}' found: ${filteredPlans.map(x => x.id)}.`);
60
+ }
61
+ return filteredPlans[0];
62
+ });
63
+ }
64
+ };
65
+ //# sourceMappingURL=planner.js.map
@@ -0,0 +1,45 @@
1
+ # aad app open
2
+
3
+ Returns deep link of the current AD app to open the Azure portal on the Azure AD app registration management page.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 app open [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--appId [appId]`
14
+ : Optional Application (client) ID of the Azure AD application registration to open. Uses the app from the `.m365rc.json` file corresponding to the `appId`. If multiple apps are available, this will evade the prompt to choose an app. If the `appId` is not available in the list of apps, an error is thrown.
15
+
16
+ `--preview`
17
+ : Use to open the url of the Azure AD preview portal.
18
+
19
+ --8<-- "docs/cmd/_global.md"
20
+
21
+ ## Remarks
22
+
23
+ If config setting `autoOpenLinksInBrowser` is configured to true, the command will automatically open the link to the Azure Portal in the browser.
24
+
25
+ Gets the app from the `.m365rc.json` file in the current directory. If the `--appId` option is not used and multiple apps are available, it will prompt the user to choose one.
26
+
27
+ ## Examples
28
+
29
+ Prints the URL to the Azure AD application registration management page on the Azure Portal.
30
+
31
+ ```sh
32
+ m365 app open
33
+ ```
34
+
35
+ Prints the url of the Azure AD application registration management page on the preview Azure Portal.
36
+
37
+ ```sh
38
+ m365 app open --preview
39
+ ```
40
+
41
+ Prints the URL to the Azure AD application registration management page on the Azure Portal, evading a possible choice prompt in the case of multiple saved apps in the `.m365rc.json` file.
42
+
43
+ ```sh
44
+ m365 app open --appId d75be2e1-0204-4f95-857d-51a37cf40be8
45
+ ```
@@ -0,0 +1,57 @@
1
+ # planner bucket get
2
+
3
+ Gets the Microsoft Planner bucket in a plan
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 planner bucket get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --id [id]`
14
+ : ID of the bucket to retrieve details. Specify either `id` or `name` but not both.
15
+
16
+ `-name, --name [name]`
17
+ : Name of the bucket to retrieve details. Specify either `id` or `name` but not both.
18
+
19
+ `--planId [planId]`
20
+ : Plan ID to which the bucket belongs. Specify either `planId` or `planName` when using `name`.
21
+
22
+ `--planName [planName]`
23
+ : Plan Name to which the bucket belongs. Specify either `planId` or `planName` when using `name`.
24
+
25
+ `--ownerGroupId [ownerGroupId]`
26
+ : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
27
+
28
+ `--ownerGroupName [ownerGroupName]`
29
+ : Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
30
+
31
+ --8<-- "docs/cmd/_global.md"
32
+
33
+ ## Examples
34
+
35
+ Gets the specified Microsoft Planner bucket
36
+
37
+ ```sh
38
+ m365 planner bucket get --id "5h1uuYFk4kKQ0hfoTUkRLpgALtYi"
39
+ ```
40
+
41
+ Gets the Microsoft Planner bucket in the PlanId xqQg5FS2LkCp935s-FIFm2QAFkHM
42
+
43
+ ```sh
44
+ m365 planner bucket get --name "Planner Bucket A" --planId "xqQg5FS2LkCp935s-FIFm2QAFkHM"
45
+ ```
46
+
47
+ Gets the Microsoft Planner bucket in the Plan _My Plan_ owned by group _My Group_
48
+
49
+ ```sh
50
+ m365 planner bucket get --name "Planner Bucket A" --planName "My Plan" --ownerGroupName "My Group"
51
+ ```
52
+
53
+ Gets the Microsoft Planner bucket in the Plan _My Plan_ owned by groupId ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e
54
+
55
+ ```sh
56
+ m365 planner bucket get --name "Planner Bucket A" --planName "My Plan" --ownerGroupId "ee0f40fc-b2f7-45c7-b62d-11b90dd2ea8e"
57
+ ```
@@ -0,0 +1,60 @@
1
+ # planner bucket remove
2
+
3
+ Removes the Microsoft Planner bucket from a plan
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 planner bucket remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--id [id]`
14
+ : ID of the bucket to remove. Specify either `id` or `name` but not both.
15
+
16
+ `--name [name]`
17
+ : Name of the bucket to remove. Specify either `id` or `name` but not both.
18
+
19
+ `--planId [planId]`
20
+ : ID of the plan to which the bucket to remove belongs. Specify either `planId` or `planName` when using `name`.
21
+
22
+ `--planName [planName]`
23
+ : Name of the plan to which the bucket to remove belongs. Specify either `planId` or `planName` when using `name`.
24
+
25
+ `--ownerGroupId [ownerGroupId]`
26
+ : ID of the group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `planName`.
27
+
28
+ `--ownerGroupName [ownerGroupName]`
29
+ : Name of the group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `planName`.
30
+
31
+ `--confirm`
32
+ : Don't prompt for confirmation
33
+
34
+ --8<-- "docs/cmd/_global.md"
35
+
36
+ ## Examples
37
+
38
+ Removes the Microsoft Planner bucket by ID
39
+
40
+ ```sh
41
+ m365 planner bucket remove --id "vncYUXCRBke28qMLB-d4xJcACtNz"
42
+ ```
43
+
44
+ Removes the Microsoft Planner bucket by ID without confirmation
45
+
46
+ ```sh
47
+ m365 planner bucket remove --id "vncYUXCRBke28qMLB-d4xJcACtNz" --confirm
48
+ ```
49
+
50
+ Removes the Microsoft Planner bucket with name _My Bucket_ in the Plan with ID _oUHpnKBFekqfGE_PS6GGUZcAFY7b_
51
+
52
+ ```sh
53
+ m365 planner bucket remove --name "My Bucket" --planId "oUHpnKBFekqfGE_PS6GGUZcAFY7b"
54
+ ```
55
+
56
+ Removes the Microsoft Planner bucket with name _My Bucket_ in the Plan _My Plan_ owned by group _My Group_
57
+
58
+ ```sh
59
+ m365 planner bucket remove --name "My Bucket" --planName "My Plan" --ownerGroupName "My Group"
60
+ ```
@@ -10,8 +10,29 @@ m365 planner task get [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-i, --id <id>`
14
- : ID of the task to retrieve details from
13
+ `-i, --id [id]`
14
+ : ID of the task. Specify either `id` or `title` but not both. When you specify the task ID, you no longer need to provide the information for `bucket`, `plan`, and `ownerGroup`.
15
+
16
+ `-t, --title [title]`
17
+ : Title of the task. Specify either `id` or `title` but not both.
18
+
19
+ `--bucketId [bucketId]`
20
+ : Bucket ID to which the task belongs. Specify `bucketId` or `bucketName` when using `title`.
21
+
22
+ `--bucketName [bucketName]`
23
+ : Bucket Name to which the task belongs. Specify `bucketId` or `bucketName` when using `title`.
24
+
25
+ `--planId [planId]`
26
+ : Plan ID to which the task belongs. Specify `planId` or `planName` when using `bucketName`.
27
+
28
+ `--planName [planName]`
29
+ : Plan Name to which the task belongs. Specify `planId` or `planName` when using `bucketName`.
30
+
31
+ `--ownerGroupId [ownerGroupId]`
32
+ : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
33
+
34
+ `--ownerGroupName [ownerGroupName]`
35
+ : Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
15
36
 
16
37
  --8<-- "docs/cmd/_global.md"
17
38
 
@@ -22,8 +43,14 @@ m365 planner task get [options]
22
43
 
23
44
  ## Examples
24
45
 
25
- Retrieve the the specified planner task
46
+ Retrieve the the specified planner task by id.
26
47
 
27
48
  ```sh
28
49
  m365 planner task get --id 'vzCcZoOv-U27PwydxHB8opcADJo-'
29
50
  ```
51
+
52
+ Retrieve the the specified planner task with the title _My Planner Task_ from the bucket named _My Planner Bucket_. Based on the plan with the name _My Planner Plan_ owned by the group _My Planner Group_.
53
+
54
+ ```sh
55
+ m365 planner task get --title "My Planner Task" --bucketName "My Planner Bucket" --planName "My Planner Plan" --ownerGroupName "My Planner Group"
56
+ ```
@@ -0,0 +1,51 @@
1
+ # spo field list
2
+
3
+ Retrieves columns for the specified list or site
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo field list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : Absolute URL of the site where fields are located
15
+
16
+ `-t, --listTitle [listTitle]`
17
+ : Title of the list where fields are located. Specify `listTitle`, `listId` or `listUrl`
18
+
19
+ `-i --listId [listId]`
20
+ : ID of the list where fields are located. Specify `listTitle`, `listId` or `listUrl`
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or web-relative URL of the list where fields are located. Specify `listTitle`, `listId` or `listUrl`
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Examples
28
+
29
+ Retrieves site columns for site _https://contoso.sharepoint.com/sites/contoso-sales_.
30
+
31
+ ```sh
32
+ m365 spo field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales
33
+ ```
34
+
35
+ Retrieves list columns for list _Events_ in site _https://contoso.sharepoint.com/sites/contoso-sales_
36
+
37
+ ```sh
38
+ m365 spo field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events
39
+ ```
40
+
41
+ Retrieves list columns for list _202b8199-b9de-43fd-9737-7f213f51c991_ in site _https://contoso.sharepoint.com/sites/contoso-sales_
42
+
43
+ ```sh
44
+ m365 spo field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '202b8199-b9de-43fd-9737-7f213f51c991'
45
+ ```
46
+
47
+ Retrieves list columns for list _/sites/contoso-sales/lists/Events_ in site _https://contoso.sharepoint.com/sites/contoso-sales_
48
+
49
+ ```sh
50
+ m365 spo field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/sites/contoso-sales/lists/Events'
51
+ ```
@@ -0,0 +1,55 @@
1
+ # spo list roleinheritance break
2
+
3
+ Breaks role inheritance on list or library
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo list roleinheritance break [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the list to retrieve is located
15
+
16
+ `-i, --listId [listId]`
17
+ : ID of the list to retrieve information for. Specify either id or title but not both
18
+
19
+ `-t, --listTitle [listTitle]`
20
+ : Title of the list to retrieve information for. Specify either id or title but not both
21
+
22
+ `-c, --clearExistingPermissions`
23
+ : Flag if used clears all roles from the list
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Remarks
28
+
29
+ By default, when breaking permissions inheritance, the list will retain existing permissions. To remove existing permissions, use the `--clearExistingPermissions` option.
30
+
31
+ ## Examples
32
+
33
+ Break inheritance of list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_
34
+
35
+ ```sh
36
+ m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList"
37
+ ```
38
+
39
+ Break inheritance of list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_
40
+
41
+ ```sh
42
+ m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "202b8199-b9de-43fd-9737-7f213f51c991"
43
+ ```
44
+
45
+ Break inheritance of list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
46
+
47
+ ```sh
48
+ m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --clearExistingPermissions
49
+ ```
50
+
51
+ Break inheritance of list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
52
+
53
+ ```sh
54
+ m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "202b8199-b9de-43fd-9737-7f213f51c991" --clearExistingPermissions
55
+ ```
@@ -0,0 +1,36 @@
1
+ # spo list roleinheritance reset
2
+
3
+ Restores role inheritance on list or library
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo list roleinheritance reset [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the list is located
15
+
16
+ `-i, --listId [listId]`
17
+ : ID of the list. Specify either id or title but not both
18
+
19
+ `-t, --listTitle [listTitle]`
20
+ : Title of the list. Specify either id or title but not both
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Examples
25
+
26
+ Restore role inheritance of list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
27
+
28
+ ```sh
29
+ m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf
30
+ ```
31
+
32
+ Restore role inheritance of list with title _test_ located in site _https://contoso.sharepoint.com/sites/project-x_
33
+
34
+ ```sh
35
+ m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle test
36
+ ```
@@ -0,0 +1,58 @@
1
+ # spo listitem roleinheritance break
2
+
3
+ Break inheritance of list item.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem roleinheritance break [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the item for which to break role inheritance is located
15
+
16
+ `--listItemId <listItemId>`
17
+ : ID of the item for which to break role inheritance
18
+
19
+ `-l, --listId [listId]`
20
+ : ID of the list. Specify listId or listTitle but not both
21
+
22
+ `-t, --listTitle [listTitle]`
23
+ Title of the list. Specify listId or listTitle but not both
24
+
25
+ `-c, --clearExistingPermissions`
26
+ : Set to clear existing roles from the list item
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Remarks
31
+
32
+ By default, when breaking permissions inheritance, the list item will retain existing permissions. To remove existing permissions, use the `--clearExistingPermissions` option.
33
+
34
+ ## Examples
35
+
36
+ Break inheritance of list item _1_ in list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_
37
+
38
+ ```sh
39
+ m365 spo listitem roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "_someList_" --id 1
40
+ ```
41
+
42
+ Break inheritance of list item _1_ in list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_
43
+
44
+ ```sh
45
+ m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --id 1
46
+ ```
47
+
48
+ Break inheritance of list item _1_ in list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
49
+
50
+ ```sh
51
+ m365 spo listitem roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "_someList_" --id 1 --clearExistingPermissions
52
+ ```
53
+
54
+ Break inheritance of list item _1_ in list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
55
+
56
+ ```sh
57
+ m365 spo listitem roleinheritance break --webUrl https://contoso.sharepoint.com/sites/project-x --listId 202b8199-b9de-43fd-9737-7f213f51c991 --id 1 --clearExistingPermissions
58
+ ```
@@ -0,0 +1,39 @@
1
+ # spo listitem roleinheritance reset
2
+
3
+ Restores the role inheritance of list item, file, or folder
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem roleinheritance reset [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the item for which to reset role inheritance is located
15
+
16
+ `--listItemId <listItemId>`
17
+ : ID of the item for which to reset role inheritance
18
+
19
+ `--listId [listId]`
20
+ : ID of the list. Specify listId or listTitle but not both
21
+
22
+ `--listTitle [listTitle]`
23
+ : Title of the list. Specify listId or listTitle but not both
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Examples
28
+
29
+ Restore role inheritance of list item with id 8 from list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
30
+
31
+ ```sh
32
+ m365 spo listitem roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listItemId 8 --listId 0cd891ef-afce-4e55-b836-fce03286cccf
33
+ ```
34
+
35
+ Restore role inheritance of list item with id 8 from list with title _test_ located in site _https://contoso.sharepoint.com/sites/project-x_
36
+
37
+ ```sh
38
+ m365 spo listitem roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listItemId 8 --listTitle test
39
+ ```
@@ -0,0 +1,24 @@
1
+ # spo roledefinition list
2
+
3
+ Gets list of role definitions for the specified site
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo roledefinition list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site for which to retrieve role definitions
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Return list of role definitions for site _https://contoso.sharepoint.com/sites/project-x_
21
+
22
+ ```sh
23
+ m365 spo roledefinition list --webUrl https://contoso.sharepoint.com/sites/project-x
24
+ ```
@@ -35,10 +35,10 @@ m365 teams conversationmember list [options]
35
35
 
36
36
  ## Examples
37
37
 
38
- List the members of a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 00:00000000000000000000000000000000@thread.skype
38
+ List the members of a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
39
39
 
40
40
  ```sh
41
- m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId 00:00000000000000000000000000000000@thread.skype
41
+ m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype
42
42
  ```
43
43
 
44
44
  List the members of a specified Microsoft Teams team with name _Team Name_ and channel with name _Channel Name_
@@ -47,8 +47,8 @@ List the members of a specified Microsoft Teams team with name _Team Name_ and c
47
47
  m365 teams channel member list --teamName "Team Name" --channelName "Channel Name"
48
48
  ```
49
49
 
50
- List all owners of the specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 00:00000000000000000000000000000000@thread.skype
50
+ List all owners of the specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
51
51
 
52
52
  ```sh
53
- m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId 00:00000000000000000000000000000000@thread.skype --role owner
53
+ m365 teams channel member list --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --role owner
54
54
  ```
@@ -44,10 +44,10 @@ m365 teams conversationmember remove [options]
44
44
 
45
45
  ## Examples
46
46
 
47
- Remove the user _johndoe@example.com_ from the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 00:00000000000000000000000000000000@thread.skype
47
+ Remove the user _johndoe@example.com_ from the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
48
48
 
49
49
  ```sh
50
- m365 teams channel member remove --teamId 00000000-0000-0000-0000-000000000000 --channelId 00:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com"
50
+ m365 teams channel member remove --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com"
51
51
  ```
52
52
 
53
53
  Remove the user with id 00000000-0000-0000-0000-000000000000 from the Microsoft Teams team with name _Team Name_ and channel with name _Channel Name_
@@ -38,10 +38,10 @@ m365 teams channel member set [options]
38
38
 
39
39
  ## Examples
40
40
 
41
- Updates the role of the user _johndoe@example.com_ to owner in the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 00:00000000000000000000000000000000@thread.skype
41
+ Updates the role of the user _johndoe@example.com_ to owner in the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
42
42
 
43
43
  ```sh
44
- m365 teams channel member set --teamId 00000000-0000-0000-0000-000000000000 --channelId 00:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com" --role owner
44
+ m365 teams channel member set --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com" --role owner
45
45
  ```
46
46
 
47
47
  Updates the role of the user with id 00000000-0000-0000-0000-000000000000 to member in the Microsoft Teams team with name _Team Name_ and channel with name _Channel Name_
@@ -0,0 +1,30 @@
1
+ # tenant security alerts list
2
+
3
+ Gets the security alerts for a tenant
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 tenant security alerts list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--vendor [vendor]`
14
+ : The vendor to return alerts for. Possible values `Azure Advanced Threat Protection`, `Azure Security Center`, `Microsoft Cloud App Security`, `Azure Active Directory Identity Protection`, `Azure Sentinel`, `Microsoft Defender ATP`. If omitted, all alerts are returned
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Get all security alerts for a tenant
21
+
22
+ ```sh
23
+ m365 tenant security alerts list
24
+ ```
25
+
26
+ Get security alerts for a vendor with name _Azure Sentinel_
27
+
28
+ ```sh
29
+ m365 tenant security alerts list --vendor "Azure Sentinel"
30
+ ```