@pnp/cli-microsoft365 9.0.0-beta.e69e8d0 → 10.0.0-beta.48e9f7d

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 (47) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/Command.js +1 -3
  4. package/dist/cli/cli.js +54 -14
  5. package/dist/m365/cli/commands/cli-consent.js +3 -7
  6. package/dist/m365/commands/login.js +10 -5
  7. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-remove.js +123 -0
  8. package/dist/m365/entra/commands/group/group-set.js +256 -0
  9. package/dist/m365/entra/commands.js +3 -0
  10. package/dist/m365/onenote/commands/notebook/notebook-add.js +132 -0
  11. package/dist/m365/onenote/commands.js +1 -0
  12. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +0 -1
  13. package/dist/m365/spo/commands/site/site-get.js +12 -16
  14. package/dist/m365/teams/commands/message/message-restore.js +106 -0
  15. package/dist/m365/teams/commands.js +1 -0
  16. package/dist/m365/viva/commands/engage/engage-group-list.js +0 -5
  17. package/dist/m365/viva/commands/engage/engage-group-user-add.js +0 -5
  18. package/dist/m365/viva/commands/engage/engage-group-user-remove.js +0 -5
  19. package/dist/m365/viva/commands/engage/engage-message-add.js +0 -5
  20. package/dist/m365/viva/commands/engage/engage-message-get.js +0 -5
  21. package/dist/m365/viva/commands/engage/engage-message-like-set.js +0 -5
  22. package/dist/m365/viva/commands/engage/engage-message-list.js +0 -5
  23. package/dist/m365/viva/commands/engage/engage-message-remove.js +0 -5
  24. package/dist/m365/viva/commands/engage/engage-network-list.js +0 -5
  25. package/dist/m365/viva/commands/engage/engage-report-activitycounts.js +0 -8
  26. package/dist/m365/viva/commands/engage/engage-report-activityusercounts.js +0 -8
  27. package/dist/m365/viva/commands/engage/engage-report-activityuserdetail.js +0 -8
  28. package/dist/m365/viva/commands/engage/engage-report-deviceusagedistributionusercounts.js +0 -8
  29. package/dist/m365/viva/commands/engage/engage-report-deviceusageusercounts.js +0 -8
  30. package/dist/m365/viva/commands/engage/engage-report-deviceusageuserdetail.js +0 -8
  31. package/dist/m365/viva/commands/engage/engage-report-groupsactivitycounts.js +0 -8
  32. package/dist/m365/viva/commands/engage/engage-report-groupsactivitydetail.js +0 -8
  33. package/dist/m365/viva/commands/engage/engage-report-groupsactivitygroupcounts.js +0 -8
  34. package/dist/m365/viva/commands/engage/engage-search.js +0 -5
  35. package/dist/m365/viva/commands/engage/engage-user-get.js +0 -5
  36. package/dist/m365/viva/commands/engage/engage-user-list.js +0 -5
  37. package/docs/docs/cmd/cli/cli-consent.mdx +1 -1
  38. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx +65 -0
  39. package/docs/docs/cmd/entra/group/group-add.mdx +0 -4
  40. package/docs/docs/cmd/entra/group/group-set.mdx +89 -0
  41. package/docs/docs/cmd/onenote/notebook/notebook-add.mdx +169 -0
  42. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +6 -5
  43. package/docs/docs/cmd/teams/message/message-remove.mdx +2 -1
  44. package/docs/docs/cmd/teams/message/message-restore.mdx +62 -0
  45. package/npm-shrinkwrap.json +2 -3
  46. package/package.json +1 -2
  47. package/dist/m365/viva/commands/engage/yammerCommands.js +0 -25
@@ -1,23 +1,15 @@
1
1
  import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
2
2
  import commands from '../../commands.js';
3
- import yammerCommands from './yammerCommands.js';
4
3
  class VivaEngageReportDeviceUsageUserCountsCommand extends PeriodBasedReport {
5
4
  get name() {
6
5
  return commands.ENGAGE_REPORT_DEVICEUSAGEUSERCOUNTS;
7
6
  }
8
- alias() {
9
- return [yammerCommands.REPORT_DEVICEUSAGEUSERCOUNTS];
10
- }
11
7
  get usageEndpoint() {
12
8
  return 'getYammerDeviceUsageUserCounts';
13
9
  }
14
10
  get description() {
15
11
  return 'Gets the number of daily users by device type';
16
12
  }
17
- async commandAction(logger, args) {
18
- await this.showDeprecationWarning(logger, this.alias()[0], this.name);
19
- await super.commandAction(logger, args);
20
- }
21
13
  }
22
14
  export default new VivaEngageReportDeviceUsageUserCountsCommand();
23
15
  //# sourceMappingURL=engage-report-deviceusageusercounts.js.map
@@ -1,23 +1,15 @@
1
1
  import DateAndPeriodBasedReport from '../../../base/DateAndPeriodBasedReport.js';
2
2
  import commands from '../../commands.js';
3
- import yammerCommands from './yammerCommands.js';
4
3
  class VivaEngageReportDeviceUsageUserDetailCommand extends DateAndPeriodBasedReport {
5
4
  get name() {
6
5
  return commands.ENGAGE_REPORT_DEVICEUSAGEUSERDETAIL;
7
6
  }
8
- alias() {
9
- return [yammerCommands.REPORT_DEVICEUSAGEUSERDETAIL];
10
- }
11
7
  get usageEndpoint() {
12
8
  return 'getYammerDeviceUsageUserDetail';
13
9
  }
14
10
  get description() {
15
11
  return 'Gets details about Viva Engage device usage by user';
16
12
  }
17
- async commandAction(logger, args) {
18
- await this.showDeprecationWarning(logger, this.alias()[0], this.name);
19
- await super.commandAction(logger, args);
20
- }
21
13
  }
22
14
  export default new VivaEngageReportDeviceUsageUserDetailCommand();
23
15
  //# sourceMappingURL=engage-report-deviceusageuserdetail.js.map
@@ -1,23 +1,15 @@
1
1
  import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
2
2
  import commands from '../../commands.js';
3
- import yammerCommands from './yammerCommands.js';
4
3
  class VivaEngageReportGroupsActivityCountsCommand extends PeriodBasedReport {
5
4
  get name() {
6
5
  return commands.ENGAGE_REPORT_GROUPSACTIVITYCOUNTS;
7
6
  }
8
- alias() {
9
- return [yammerCommands.REPORT_GROUPSACTIVITYCOUNTS];
10
- }
11
7
  get usageEndpoint() {
12
8
  return 'getYammerGroupsActivityCounts';
13
9
  }
14
10
  get description() {
15
11
  return 'Gets the number of Viva Engage messages posted, read, and liked in groups';
16
12
  }
17
- async commandAction(logger, args) {
18
- await this.showDeprecationWarning(logger, this.alias()[0], this.name);
19
- await super.commandAction(logger, args);
20
- }
21
13
  }
22
14
  export default new VivaEngageReportGroupsActivityCountsCommand();
23
15
  //# sourceMappingURL=engage-report-groupsactivitycounts.js.map
@@ -1,23 +1,15 @@
1
1
  import DateAndPeriodBasedReport from '../../../base/DateAndPeriodBasedReport.js';
2
2
  import commands from '../../commands.js';
3
- import yammerCommands from './yammerCommands.js';
4
3
  class VivaEngageReportGroupsActivityDetailCommand extends DateAndPeriodBasedReport {
5
4
  get name() {
6
5
  return commands.ENGAGE_REPORT_GROUPSACTIVITYDETAIL;
7
6
  }
8
- alias() {
9
- return [yammerCommands.REPORT_GROUPSACTIVITYDETAIL];
10
- }
11
7
  get usageEndpoint() {
12
8
  return 'getYammerGroupsActivityDetail';
13
9
  }
14
10
  get description() {
15
11
  return 'Gets details about Viva Engage groups activity by group';
16
12
  }
17
- async commandAction(logger, args) {
18
- await this.showDeprecationWarning(logger, this.alias()[0], this.name);
19
- await super.commandAction(logger, args);
20
- }
21
13
  }
22
14
  export default new VivaEngageReportGroupsActivityDetailCommand();
23
15
  //# sourceMappingURL=engage-report-groupsactivitydetail.js.map
@@ -1,23 +1,15 @@
1
1
  import PeriodBasedReport from '../../../base/PeriodBasedReport.js';
2
2
  import commands from '../../commands.js';
3
- import yammerCommands from './yammerCommands.js';
4
3
  class VivaEngageReportGroupsActivityGroupCountsCommand extends PeriodBasedReport {
5
4
  get name() {
6
5
  return commands.ENGAGE_REPORT_GROUPSACTIVITYGROUPCOUNTS;
7
6
  }
8
- alias() {
9
- return [yammerCommands.REPORT_GROUPSACTIVITYGROUPCOUNTS];
10
- }
11
7
  get usageEndpoint() {
12
8
  return 'getYammerGroupsActivityGroupCounts';
13
9
  }
14
10
  get description() {
15
11
  return 'Gets the total number of groups that existed and how many included group conversation activity';
16
12
  }
17
- async commandAction(logger, args) {
18
- await this.showDeprecationWarning(logger, this.alias()[0], this.name);
19
- await super.commandAction(logger, args);
20
- }
21
13
  }
22
14
  export default new VivaEngageReportGroupsActivityGroupCountsCommand();
23
15
  //# sourceMappingURL=engage-report-groupsactivitygroupcounts.js.map
@@ -9,7 +9,6 @@ import request from '../../../../request.js';
9
9
  import { formatting } from '../../../../utils/formatting.js';
10
10
  import VivaEngageCommand from '../../../base/VivaEngageCommand.js';
11
11
  import commands from '../../commands.js';
12
- import yammerCommands from './yammerCommands.js';
13
12
  class VivaEngageSearchCommand extends VivaEngageCommand {
14
13
  get name() {
15
14
  return commands.ENGAGE_SEARCH;
@@ -17,9 +16,6 @@ class VivaEngageSearchCommand extends VivaEngageCommand {
17
16
  get description() {
18
17
  return 'Returns a list of messages, users, topics and groups that match the specified query.';
19
18
  }
20
- alias() {
21
- return [yammerCommands.SEARCH];
22
- }
23
19
  constructor() {
24
20
  super();
25
21
  _VivaEngageSearchCommand_instances.add(this);
@@ -93,7 +89,6 @@ class VivaEngageSearchCommand extends VivaEngageCommand {
93
89
  }
94
90
  }
95
91
  async commandAction(logger, args) {
96
- await this.showDeprecationWarning(logger, this.alias()[0], this.name);
97
92
  this.summary = {
98
93
  messages: 0,
99
94
  groups: 0,
@@ -8,7 +8,6 @@ import request from '../../../../request.js';
8
8
  import { formatting } from '../../../../utils/formatting.js';
9
9
  import VivaEngageCommand from '../../../base/VivaEngageCommand.js';
10
10
  import commands from '../../commands.js';
11
- import yammerCommands from './yammerCommands.js';
12
11
  class VivaEngageUserGetCommand extends VivaEngageCommand {
13
12
  get name() {
14
13
  return commands.ENGAGE_USER_GET;
@@ -16,9 +15,6 @@ class VivaEngageUserGetCommand extends VivaEngageCommand {
16
15
  get description() {
17
16
  return 'Retrieves the current user or searches for a user by ID or e-mail';
18
17
  }
19
- alias() {
20
- return [yammerCommands.USER_GET];
21
- }
22
18
  defaultProperties() {
23
19
  return ['id', 'full_name', 'email', 'job_title', 'state', 'url'];
24
20
  }
@@ -30,7 +26,6 @@ class VivaEngageUserGetCommand extends VivaEngageCommand {
30
26
  __classPrivateFieldGet(this, _VivaEngageUserGetCommand_instances, "m", _VivaEngageUserGetCommand_initValidators).call(this);
31
27
  }
32
28
  async commandAction(logger, args) {
33
- await this.showDeprecationWarning(logger, this.alias()[0], this.name);
34
29
  let endPoint = `${this.resource}/v1/users/current.json`;
35
30
  if (args.options.id) {
36
31
  endPoint = `${this.resource}/v1/users/${args.options.id}.json`;
@@ -7,7 +7,6 @@ var _VivaEngageUserListCommand_instances, _VivaEngageUserListCommand_initTelemet
7
7
  import request from '../../../../request.js';
8
8
  import VivaEngageCommand from '../../../base/VivaEngageCommand.js';
9
9
  import commands from '../../commands.js';
10
- import yammerCommands from './yammerCommands.js';
11
10
  class VivaEngageUserListCommand extends VivaEngageCommand {
12
11
  get name() {
13
12
  return commands.ENGAGE_USER_LIST;
@@ -15,9 +14,6 @@ class VivaEngageUserListCommand extends VivaEngageCommand {
15
14
  get description() {
16
15
  return 'Returns users from the current network';
17
16
  }
18
- alias() {
19
- return [yammerCommands.USER_LIST];
20
- }
21
17
  defaultProperties() {
22
18
  return ['id', 'full_name', 'email'];
23
19
  }
@@ -92,7 +88,6 @@ class VivaEngageUserListCommand extends VivaEngageCommand {
92
88
  });
93
89
  }
94
90
  async commandAction(logger, args) {
95
- await this.showDeprecationWarning(logger, this.alias()[0], this.name);
96
91
  this.items = []; // this will reset the items array in interactive mode
97
92
  try {
98
93
  await this.getAllItems(logger, args, 1);
@@ -16,7 +16,7 @@ m365 cli consent [options]
16
16
 
17
17
  ```md definition-list
18
18
  `-s, --service <service>`
19
- : Service for which to consent permissions. Allowed values: `VivaEngage`, (deprecated)`yammer`.
19
+ : Service for which to consent permissions. Allowed values: `VivaEngage`.
20
20
  ```
21
21
 
22
22
  <Global />
@@ -0,0 +1,65 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # entra enterpriseapp remove
6
+
7
+ Deletes an enterprise application (or service principal)
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 entra enterpriseapp remove [options]
13
+ ```
14
+
15
+ ## Alias
16
+
17
+ ```sh
18
+ m365 entra sp remove [options]
19
+ ```
20
+
21
+ ## Options
22
+
23
+ ```md definition-list
24
+ `-i, --id [id]`
25
+ : ID of the enterprise application.
26
+
27
+ `-n, --displayName [displayName]`
28
+ : Display name of the enterprise application.
29
+
30
+ `--objectId [objectId]`
31
+ : ObjectId of the enterprise application.
32
+
33
+ `-f, --force`
34
+ : Don't prompt for confirmation.
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Examples
40
+
41
+ Delete an enterprise application by application ID.
42
+
43
+ ```sh
44
+ m365 entra enterpriseapp remove --id b2307a39-e878-458b-bc90-03bc578531d6 --force
45
+ ```
46
+
47
+ Delete an enterprise application by display name.
48
+
49
+ ```sh
50
+ m365 entra enterpriseapp remove --displayName "Contoso app"
51
+ ```
52
+
53
+ Delete an enterprise application by object ID.
54
+
55
+ ```sh
56
+ m365 entra enterpriseapp remove --objectId b2307a39-e878-458b-bc90-03bc578531dd
57
+ ```
58
+
59
+ ## Response
60
+
61
+ The command won't return a response on success.
62
+
63
+ ## More information
64
+
65
+ - Application and service principal objects in Microsoft Entra ID: [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
@@ -53,8 +53,6 @@ m365 aad group add [options]
53
53
 
54
54
  ## Remarks
55
55
 
56
- :::info
57
-
58
56
  The `visibility` option affects the behavior of the group.
59
57
 
60
58
  With the `Public` visibility:
@@ -74,8 +72,6 @@ With the `HiddenMembership` visibility:
74
72
  - Administrators (global, company, user, and helpdesk) can view the membership of the group.
75
73
  - The group appears in the global address book (GAL).
76
74
 
77
- :::
78
-
79
75
  :::note
80
76
 
81
77
  The `HiddenMembership` visibility can be set only for Microsoft 365 groups when the groups are created. It can't be updated later.
@@ -0,0 +1,89 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # entra group set
4
+
5
+ Updates a Microsoft Entra group
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 entra group set [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-i, --id [id]`
17
+ : The ID of the Microsoft Entra group to update. Specify either `id` or `displayName` but not both.
18
+
19
+ `-n, --displayName [displayName]`
20
+ : The display name of the Microsoft Entra group to update. Specify either `id` or `displayName` but not both.
21
+
22
+ `--newDisplayName [newDisplayName]`
23
+ : The new display name of the Microsoft Entra group. The maximum length is 256 characters.
24
+
25
+ `--description [description]`
26
+ : The new description for the group.
27
+
28
+ `--mailNickname [mailNickname]`
29
+ : The new mail alias for the group (part before the @). Use only for mail-enabled groups. Maximum length is 64 characters.
30
+
31
+ `--ownerIds [ownerIds]`
32
+ : Comma-separated list of IDs of Microsoft Entra users that will be the group owners. Specify either `ownerIds` or `ownerUserNames`, but not both.
33
+
34
+ `--ownerUserNames [ownerUserNames]`
35
+ : Comma-separated list of UPNs of Microsoft Entra users that will be the group owners. Specify either `ownerIds` or `ownerUserNames`, but not both.
36
+
37
+ `--memberIds [memberIds]`
38
+ : Comma-separated list of IDs of Microsoft Entra users that will be the group members. Specify either `memberIds` or `memberUserNames`, but not both.
39
+
40
+ `--memberUserNames [memberUserNames]`
41
+ : Comma-separated list of UPNs of Microsoft Entra users that will be the group members. Specify either `memberIds` or `memberUserNames`, but not both.
42
+
43
+ `--visibility [visibility]`
44
+ : Specifies the group join policy and group content visibility for Microsoft 365 groups. Possible values are: `Private` or `Public`. Specify only when targeting a Microsoft 365 group.
45
+ ```
46
+
47
+ <Global />
48
+
49
+ ## Remarks
50
+
51
+ The `visibility` option affects the behavior of the group.
52
+
53
+ With the `Public` visibility:
54
+ - Anyone can join the group without needing owner approval.
55
+ - Anyone can view the attributes of the group.
56
+ - Anyone can see the members of the group.
57
+
58
+ With the `Private` visibilty:
59
+ - Owner approval is needed to join the group.
60
+ - Anyone can view the attributes of the group.
61
+ - Anyone can see the members of the group.
62
+
63
+ If the specified option is not found, you will receive a `Resource 'xyz' does not exist or one of its queried reference-property objects are not present.` error.
64
+
65
+ Specifying `memberIds` or `memberUserNames` will make only those users members, removing all others. Similarly, specifying `ownerIds` or `ownerUserNames` will make only those users owners, removing all others.
66
+
67
+ ## Examples
68
+
69
+ Update the display name of a group specified by the display name
70
+
71
+ ```sh
72
+ m365 entra group set --displayName Devs --newDisplayName Developers
73
+ ```
74
+
75
+ Set the owners of a group to the specified people
76
+
77
+ ```sh
78
+ m365 entra group set --id 57fd6b33-54eb-42b0-9ea0-8a9ac04eab7d --ownerUserNames "john.doe@contoso.com,adele.vance@contoso.com"
79
+ ```
80
+
81
+ Update the description and mail nickname of a group
82
+
83
+ ```sh
84
+ m365 entra group set --id 57fd6b33-54eb-42b0-9ea0-8a9ac04eab7d --description "All developers of the company" --mailNickname developers
85
+ ```
86
+
87
+ ## Response
88
+
89
+ The command won't return a response on success.
@@ -0,0 +1,169 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # onenote notebook add
6
+
7
+ Create a new OneNote notebook.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 onenote notebook add [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-n, --name <name>`
19
+ : Name of the notebook. Notebook names must be unique. The name cannot contain more than 128 characters or contain the following characters: `?*/:<>`
20
+
21
+ `--userId [userId]`
22
+ : Id of the user. Specify either `userId`, `userName`, `groupId`, `groupName` or `webUrl`, but not multiple.
23
+
24
+ `--userName [userName]`
25
+ : Name of the user. Specify either `userId`, `userName`, `groupId`, `groupName` or `webUrl`, but not multiple.
26
+
27
+ `--groupId [groupId]`
28
+ : Id of the SharePoint group. Specify either `userId`, `userName`, `groupId`, `groupName` or `webUrl`, but not multiple.
29
+
30
+ `--groupName [groupName]`
31
+ : Name of the SharePoint group. Specify either `userId`, `userName`, `groupId`, `groupName` or `webUrl`, but not multiple.
32
+
33
+ `-u, --webUrl [webUrl]`
34
+ : URL of the SharePoint site. Specify either `userId`, `userName`, `groupId`, `groupName` or `webUrl`, but not multiple.
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Examples
40
+
41
+ Create a Microsoft OneNote notebook for the currently logged in user
42
+
43
+ ```sh
44
+ m365 onenote notebook add --name "Private Notebook"
45
+ ```
46
+
47
+ Create a Microsoft OneNote notebook in a group specified by id.
48
+
49
+ ```sh
50
+ m365 onenote notebook add --name "Private Notebook" --groupId 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4
51
+ ```
52
+
53
+ Create a Microsoft OneNote notebook in a group specified by displayName.
54
+
55
+ ```sh
56
+ m365 onenote notebook add --name "Private Notebook" --groupName "MyGroup"
57
+ ```
58
+
59
+ Create a Microsoft OneNote notebook for a user specified by name
60
+
61
+ ```sh
62
+ m365 onenote notebook add --name "Private Notebook" --userName user1@contoso.onmicrosoft.com
63
+ ```
64
+
65
+ Create a Microsoft OneNote notebook for a user specified by id
66
+
67
+ ```sh
68
+ m365 onenote notebook add --name "Private Notebook" --userId 2609af39-7775-4f94-a3dc-0dd67657e900
69
+ ```
70
+
71
+ Creates a Microsoft OneNote notebooks for a site
72
+
73
+ ```sh
74
+ m365 onenote notebook add --name "Private Notebook" --webUrl https://contoso.sharepoint.com/sites/testsite
75
+ ```
76
+
77
+ ## Response
78
+
79
+ <Tabs>
80
+ <TabItem value="JSON">
81
+
82
+ ```json
83
+ {
84
+ "id": "1-08554ffd-b769-4a4a-9563-faaa3191f253",
85
+ "self": "https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-08554ffd-b769-4a4a-9563-faaa3191f253",
86
+ "createdDateTime": "2024-04-05T17:58:27Z",
87
+ "displayName": "Private Notebook",
88
+ "lastModifiedDateTime": "2024-04-05T17:58:27Z",
89
+ "isDefault": false,
90
+ "userRole": "Owner",
91
+ "isShared": false,
92
+ "sectionsUrl": "https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-08554ffd-b769-4a4a-9563-faaa3191f253/sections",
93
+ "sectionGroupsUrl": "https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-08554ffd-b769-4a4a-9563-faaa3191f253/sectionGroups",
94
+ "createdBy": {
95
+ "user": {
96
+ "id": "fe36f75e-c103-410b-a18a-2bf6df06ac3a",
97
+ "displayName": "John Doe"
98
+ }
99
+ },
100
+ "lastModifiedBy": {
101
+ "user": {
102
+ "id": "fe36f75e-c103-410b-a18a-2bf6df06ac3a",
103
+ "displayName": "John Doe"
104
+ }
105
+ },
106
+ "links": {
107
+ "oneNoteClientUrl": {
108
+ "href": "onenote:https://contoso-my.sharepoint.com/personal/john_contoso_onmicrosoft_com/Documents/Notebooks/Private Notebook"
109
+ },
110
+ "oneNoteWebUrl": {
111
+ "href": "https://contoso-my.sharepoint.com/personal/john_contoso_onmicrosoft_com/Documents/Notebooks/Private Notebook"
112
+ }
113
+ }
114
+ }
115
+ ```
116
+
117
+ </TabItem>
118
+ <TabItem value="Text">
119
+
120
+ ```text
121
+ createdBy : {"user":{"id":"fe36f75e-c103-410b-a18a-2bf6df06ac3a","displayName":"John Doe"}}
122
+ createdDateTime : 2024-04-05T17:58:36Z
123
+ displayName : Private Notebook
124
+ id : 1-f4bba32b-9b3e-4892-8df4-931a15f7eb6f
125
+ isDefault : false
126
+ isShared : false
127
+ lastModifiedBy : {"user":{"id":"fe36f75e-c103-410b-a18a-2bf6df06ac3a","displayName":"John Doe"}}
128
+ lastModifiedDateTime: 2024-04-05T17:58:36Z
129
+ links : {"oneNoteClientUrl":{"href":"onenote:https://contoso-my.sharepoint.com/personal/john_contoso_onmicrosoft_com/Documents/Notebooks/Private Notebook"},"oneNoteWebUrl":{"href":"https://contoso-my.sharepoint.com/personal/john_contoso_onmicrosoft_com/Documents/Notebooks/Private Notebook"}}
130
+ sectionGroupsUrl : https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-f4bba32b-9b3e-4892-8df4-931a15f7eb6f/sectionGroups
131
+ sectionsUrl : https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-f4bba32b-9b3e-4892-8df4-931a15f7eb6f/sections
132
+ self : https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-f4bba32b-9b3e-4892-8df4-931a15f7eb6f
133
+ userRole : Owner
134
+ ```
135
+
136
+ </TabItem>
137
+ <TabItem value="CSV">
138
+
139
+ ```csv
140
+ id,self,createdDateTime,displayName,lastModifiedDateTime,isDefault,userRole,isShared,sectionsUrl,sectionGroupsUrl
141
+ 1-272a5791-2c95-45cf-b27d-7f68e07f6149,https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-272a5791-2c95-45cf-b27d-7f68e07f6149,2024-04-05T18:00:28Z,Private Notebook,2024-04-05T18:00:28Z,,Owner,,https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-272a5791-2c95-45cf-b27d-7f68e07f6149/sections,https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-272a5791-2c95-45cf-b27d-7f68e07f6149/sectionGroups
142
+ ```
143
+
144
+ </TabItem>
145
+ <TabItem value="Markdown">
146
+
147
+ ```md
148
+ # onenote notebook add --name "Private Notebook"
149
+
150
+ Date: 05/04/2024
151
+
152
+ ## Private Notebook (1-fa279d79-4701-43a2-9593-c2abfbe6999f)
153
+
154
+ Property | Value
155
+ ---------|-------
156
+ id | 1-fa279d79-4701-43a2-9593-c2abfbe6999f
157
+ self | https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-fa279d79-4701-43a2-9593-c2abfbe6999f
158
+ createdDateTime | 2024-04-05T18:00:58Z
159
+ displayName | Private Notebook
160
+ lastModifiedDateTime | 2024-04-05T18:00:58Z
161
+ isDefault | false
162
+ userRole | Owner
163
+ isShared | false
164
+ sectionsUrl | https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-fa279d79-4701-43a2-9593-c2abfbe6999f/sections
165
+ sectionGroupsUrl | https://graph.microsoft.com/v1.0/users/fe36f75e-c103-410b-a18a-2bf6df06ac3a/onenote/notebooks/1-fa279d79-4701-43a2-9593-c2abfbe6999f/sectionGroups
166
+ ```
167
+
168
+ </TabItem>
169
+ </Tabs>
@@ -93,7 +93,10 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
93
93
  "Name": "{4a428b32-08cf-45c7-9986-17585af38806}",
94
94
  "RegistrationId": null,
95
95
  "RegistrationType": 0,
96
- "Rights": "{\"High\":\"0\",\"Low\":\"0\"}",
96
+ "Rights": {
97
+ "High": 0,
98
+ "Low": 0
99
+ },
97
100
  "Scope": "Web",
98
101
  "ScriptBlock": null,
99
102
  "ScriptSrc": null,
@@ -120,7 +123,6 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
120
123
  Name : {4a428b32-08cf-45c7-9986-17585af38806}
121
124
  RegistrationId : null
122
125
  RegistrationType : 0
123
- Rights : {"High":"0","Low":"0"}
124
126
  Scope : Web
125
127
  ScriptBlock : null
126
128
  ScriptSrc : null
@@ -134,8 +136,8 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
134
136
  <TabItem value="CSV">
135
137
 
136
138
  ```csv
137
- ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,HostProperties,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Rights,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
138
- 9a8b100c-246b-4592-9454-67826523e159,"{""testMessage"":""Test message""}",,,,,4a428b32-08cf-45c7-9986-17585af38806,,ClientSideExtension.ApplicationCustomizer,{4a428b32-08cf-45c7-9986-17585af38806},,0,"{""High"":""0"",""Low"":""0""}",Web,,,65536,HelloWorld,,1.0.1.0
139
+ ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
140
+ 9a8b100c-246b-4592-9454-67826523e159,"{""testMessage"":""Test message""}",,,,4a428b32-08cf-45c7-9986-17585af38806,,ClientSideExtension.ApplicationCustomizer,Some customizer,,0,Web,,,0,Some customizer,,16.0.1.0
139
141
  ```
140
142
 
141
143
  </TabItem>
@@ -157,7 +159,6 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
157
159
  Location | ClientSideExtension.ApplicationCustomizer
158
160
  Name | {4a428b32-08cf-45c7-9986-17585af38806}
159
161
  RegistrationType | 0
160
- Rights | {"High":"0","Low":"0"}
161
162
  Scope | Web
162
163
  Sequence | 65536
163
164
  Title | HelloWorld
@@ -36,7 +36,6 @@ m365 teams message remove [options]
36
36
 
37
37
  ## Remarks
38
38
 
39
- You can only remove Microsoft Teams messages that you created yourself.
40
39
 
41
40
  :::info
42
41
 
@@ -44,6 +43,8 @@ This command does only support delegated permissions.
44
43
 
45
44
  :::
46
45
 
46
+ You can only remove Microsoft Teams messages that you created yourself.
47
+
47
48
  ## Examples
48
49
 
49
50
  Remove a message by using IDs
@@ -0,0 +1,62 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # teams message restore
6
+
7
+ Restores a deleted message from a channel in a Microsoft Teams team
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 teams message restore [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `--teamId [teamId]`
19
+ : ID of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both.
20
+
21
+ `--teamName [teamName]`
22
+ : Name of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both.
23
+
24
+ `--channelId [channelId]`
25
+ : Channel ID of the Microsoft Teams team. Specify either `channelId` or `channelName` but not both.
26
+
27
+ `--channelName [channelName]`
28
+ : Channel name of the Microsoft Teams team. Specify either `channelId` or `channelName` but not both.
29
+
30
+ `-i, --id <id>`
31
+ : The ID of the Teams message.
32
+ ```
33
+
34
+ <Global />
35
+
36
+ ## Remarks
37
+
38
+ :::info
39
+
40
+ This command does only support delegated permissions.
41
+
42
+ :::
43
+
44
+ You can only restore Microsoft Teams messages that you created yourself.
45
+
46
+ ## Examples
47
+
48
+ Restore a deleted message by using IDs
49
+
50
+ ```sh
51
+ m365 teams message restore --teamId 5f5d7b71-1161-44d8-bcc1-3da710eb4171 --channelId 19:4a95f7d8db4c4e7fae857bcebe0623e6@thread.tacv2 --id 1540747442203
52
+ ```
53
+
54
+ Restore a deleted message by using display names
55
+
56
+ ```sh
57
+ m365 teams message restore --teamName Marketing --channelName Branding --id 1540747442203
58
+ ```
59
+
60
+ ## Response
61
+
62
+ The command won't return a response on success.