@pnp/cli-microsoft365 7.2.0-beta.6775e3a → 7.2.0-beta.8577f52

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 (136) hide show
  1. package/allCommands.json +1 -0
  2. package/allCommandsFull.json +1 -0
  3. package/dist/Auth.js +1 -1
  4. package/dist/Command.js +13 -6
  5. package/dist/api.js +5 -7
  6. package/dist/cli/Cli.js +97 -119
  7. package/dist/cli/timings.js +9 -0
  8. package/dist/index.js +8 -14
  9. package/dist/m365/cli/commands/config/config-set.js +13 -0
  10. package/dist/m365/commands/login.js +12 -8
  11. package/dist/m365/flow/commands/environment/environment-list.js +6 -4
  12. package/dist/m365/spfx/commands/project/DeployWorkflow.js +4 -4
  13. package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.1-rc.0.js → doctor-1.18.1.js} +1 -1
  14. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.2.js +21 -0
  15. package/dist/m365/spfx/commands/project/project-doctor.js +6 -3
  16. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +17 -0
  17. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.1-rc.0.js → upgrade-1.18.1.js} +26 -26
  18. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.2.js +53 -0
  19. package/dist/m365/spfx/commands/project/project-upgrade.js +18 -17
  20. package/dist/m365/spfx/commands/spfx-doctor.js +16 -1
  21. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +14 -23
  22. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +19 -27
  23. package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +9 -29
  24. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +9 -28
  25. package/dist/m365/spo/commands/list/list-retentionlabel-ensure.js +27 -37
  26. package/dist/m365/spo/commands/list/list-retentionlabel-remove.js +6 -19
  27. package/dist/m365/spo/commands/listitem/listitem-batch-add.js +5 -0
  28. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-ensure.js +36 -37
  29. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +36 -32
  30. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +49 -12
  31. package/dist/m365/spo/commands/site/site-add.js +45 -12
  32. package/dist/m365/spo/commands/sitescript/sitescript-get.js +8 -2
  33. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +19 -2
  34. package/dist/m365/teams/commands/user/user-app-remove.js +18 -5
  35. package/dist/request.js +6 -0
  36. package/dist/settingsNames.js +2 -0
  37. package/dist/utils/prompt.js +5 -1
  38. package/dist/utils/spo.js +109 -0
  39. package/docs/docs/_clisettings.mdx +2 -0
  40. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.mdx +1 -1
  41. package/docs/docs/cmd/aad/approleassignment/approleassignment-list.mdx +2 -2
  42. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.mdx +1 -1
  43. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-add.mdx +1 -1
  44. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-list.mdx +2 -2
  45. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-remove.mdx +2 -2
  46. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-set.mdx +2 -2
  47. package/docs/docs/cmd/aad/policy/policy-list.mdx +1 -1
  48. package/docs/docs/cmd/aad/siteclassification/siteclassification-disable.mdx +1 -1
  49. package/docs/docs/cmd/aad/siteclassification/siteclassification-enable.mdx +1 -1
  50. package/docs/docs/cmd/aad/siteclassification/siteclassification-get.mdx +1 -1
  51. package/docs/docs/cmd/aad/siteclassification/siteclassification-set.mdx +1 -1
  52. package/docs/docs/cmd/aad/sp/sp-add.mdx +2 -2
  53. package/docs/docs/cmd/aad/sp/sp-get.mdx +2 -2
  54. package/docs/docs/cmd/aad/user/user-add.mdx +3 -3
  55. package/docs/docs/cmd/aad/user/user-guest-add.mdx +1 -1
  56. package/docs/docs/cmd/aad/user/user-set.mdx +3 -3
  57. package/docs/docs/cmd/flow/run/run-cancel.mdx +3 -0
  58. package/docs/docs/cmd/graph/changelog/changelog-list.mdx +5 -5
  59. package/docs/docs/cmd/login.mdx +1 -1
  60. package/docs/docs/cmd/onenote/notebook/notebook-list.mdx +1 -1
  61. package/docs/docs/cmd/outlook/message/message-list.mdx +1 -1
  62. package/docs/docs/cmd/outlook/message/message-move.mdx +1 -1
  63. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +1 -1
  64. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +1 -1
  65. package/docs/docs/cmd/planner/plan/plan-set.mdx +3 -3
  66. package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
  67. package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +3 -3
  68. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +1 -1
  69. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -1
  70. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +1 -1
  71. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -1
  72. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +1 -1
  73. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +1 -1
  74. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +1 -1
  75. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +4 -4
  76. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  77. package/docs/docs/cmd/spo/app/app-add.mdx +1 -1
  78. package/docs/docs/cmd/spo/app/app-deploy.mdx +1 -1
  79. package/docs/docs/cmd/spo/app/app-get.mdx +1 -1
  80. package/docs/docs/cmd/spo/app/app-install.mdx +1 -1
  81. package/docs/docs/cmd/spo/app/app-list.mdx +1 -1
  82. package/docs/docs/cmd/spo/app/app-remove.mdx +1 -1
  83. package/docs/docs/cmd/spo/app/app-retract.mdx +1 -1
  84. package/docs/docs/cmd/spo/app/app-uninstall.mdx +1 -1
  85. package/docs/docs/cmd/spo/app/app-upgrade.mdx +1 -1
  86. package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +1 -1
  87. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
  88. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +1 -1
  89. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +1 -1
  90. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.mdx +10 -1
  91. package/docs/docs/cmd/spo/site/site-add.mdx +25 -4
  92. package/docs/docs/cmd/spo/site/site-appcatalog-add.mdx +1 -1
  93. package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +1 -1
  94. package/docs/docs/cmd/spo/site/site-groupify.mdx +1 -1
  95. package/docs/docs/cmd/spo/sitedesign/sitedesign-add.mdx +3 -3
  96. package/docs/docs/cmd/spo/sitedesign/sitedesign-apply.mdx +1 -1
  97. package/docs/docs/cmd/spo/sitedesign/sitedesign-get.mdx +1 -1
  98. package/docs/docs/cmd/spo/sitedesign/sitedesign-list.mdx +1 -1
  99. package/docs/docs/cmd/spo/sitedesign/sitedesign-remove.mdx +1 -1
  100. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.mdx +1 -1
  101. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.mdx +1 -1
  102. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.mdx +1 -1
  103. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-list.mdx +1 -1
  104. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.mdx +1 -1
  105. package/docs/docs/cmd/spo/sitedesign/sitedesign-set.mdx +3 -3
  106. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.mdx +1 -1
  107. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-list.mdx +1 -1
  108. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.mdx +1 -1
  109. package/docs/docs/cmd/spo/sitescript/sitescript-add.mdx +1 -1
  110. package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +73 -3
  111. package/docs/docs/cmd/spo/sitescript/sitescript-list.mdx +1 -1
  112. package/docs/docs/cmd/spo/sitescript/sitescript-remove.mdx +1 -1
  113. package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +1 -1
  114. package/docs/docs/cmd/spo/storageentity/storageentity-get.mdx +1 -1
  115. package/docs/docs/cmd/spo/storageentity/storageentity-list.mdx +1 -1
  116. package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +1 -1
  117. package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +1 -1
  118. package/docs/docs/cmd/spo/theme/theme-apply.mdx +1 -1
  119. package/docs/docs/cmd/spo/theme/theme-get.mdx +1 -1
  120. package/docs/docs/cmd/spo/theme/theme-list.mdx +1 -1
  121. package/docs/docs/cmd/spo/theme/theme-remove.mdx +1 -1
  122. package/docs/docs/cmd/spo/user/user-remove.mdx +1 -1
  123. package/docs/docs/cmd/spo/web/web-set.mdx +1 -1
  124. package/docs/docs/cmd/teams/channel/channel-remove.mdx +1 -1
  125. package/docs/docs/cmd/teams/meeting/meeting-get.mdx +1 -1
  126. package/docs/docs/cmd/teams/meeting/meeting-transcript-list.mdx +1 -1
  127. package/docs/docs/cmd/teams/report/report-pstncalls.mdx +1 -1
  128. package/docs/docs/cmd/teams/tab/tab-remove.mdx +1 -1
  129. package/docs/docs/cmd/teams/team/team-remove.mdx +1 -1
  130. package/docs/docs/cmd/teams/user/user-app-remove.mdx +11 -2
  131. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.mdx +1 -1
  132. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.mdx +1 -1
  133. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.mdx +1 -1
  134. package/docs/docs/cmd/todo/task/task-set.mdx +1 -1
  135. package/npm-shrinkwrap.json +480 -516
  136. package/package.json +33 -32
@@ -3,9 +3,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
3
3
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
- var _TeamsUserAppRemoveCommand_instances, _TeamsUserAppRemoveCommand_initTelemetry, _TeamsUserAppRemoveCommand_initOptions, _TeamsUserAppRemoveCommand_initValidators;
6
+ var _TeamsUserAppRemoveCommand_instances, _TeamsUserAppRemoveCommand_initTelemetry, _TeamsUserAppRemoveCommand_initOptions, _TeamsUserAppRemoveCommand_initValidators, _TeamsUserAppRemoveCommand_initOptionSets;
7
7
  import { Cli } from '../../../../cli/Cli.js';
8
8
  import request from '../../../../request.js';
9
+ import { formatting } from '../../../../utils/formatting.js';
9
10
  import { validation } from '../../../../utils/validation.js';
10
11
  import GraphCommand from '../../../base/GraphCommand.js';
11
12
  import commands from '../../commands.js';
@@ -22,12 +23,15 @@ class TeamsUserAppRemoveCommand extends GraphCommand {
22
23
  __classPrivateFieldGet(this, _TeamsUserAppRemoveCommand_instances, "m", _TeamsUserAppRemoveCommand_initTelemetry).call(this);
23
24
  __classPrivateFieldGet(this, _TeamsUserAppRemoveCommand_instances, "m", _TeamsUserAppRemoveCommand_initOptions).call(this);
24
25
  __classPrivateFieldGet(this, _TeamsUserAppRemoveCommand_instances, "m", _TeamsUserAppRemoveCommand_initValidators).call(this);
26
+ __classPrivateFieldGet(this, _TeamsUserAppRemoveCommand_instances, "m", _TeamsUserAppRemoveCommand_initOptionSets).call(this);
25
27
  }
26
28
  async commandAction(logger, args) {
27
29
  const removeApp = async () => {
30
+ // validation ensures that here we have either userId or userName
31
+ const userId = (args.options.userId ?? args.options.userName);
28
32
  const endpoint = `${this.resource}/v1.0`;
29
33
  const requestOptions = {
30
- url: `${endpoint}/users/${args.options.userId}/teamwork/installedApps/${args.options.id}`,
34
+ url: `${endpoint}/users/${formatting.encodeQueryParameter(userId)}/teamwork/installedApps/${args.options.id}`,
31
35
  headers: {
32
36
  'accept': 'application/json;odata.metadata=none'
33
37
  },
@@ -44,7 +48,7 @@ class TeamsUserAppRemoveCommand extends GraphCommand {
44
48
  await removeApp();
45
49
  }
46
50
  else {
47
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the app with id ${args.options.id} for user ${args.options.userId}?` });
51
+ const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the app with id ${args.options.id} for user ${args.options.userId ?? args.options.userName}?` });
48
52
  if (result) {
49
53
  await removeApp();
50
54
  }
@@ -54,6 +58,8 @@ class TeamsUserAppRemoveCommand extends GraphCommand {
54
58
  _TeamsUserAppRemoveCommand_instances = new WeakSet(), _TeamsUserAppRemoveCommand_initTelemetry = function _TeamsUserAppRemoveCommand_initTelemetry() {
55
59
  this.telemetry.push((args) => {
56
60
  Object.assign(this.telemetryProperties, {
61
+ userId: typeof args.options.userId !== 'undefined',
62
+ userName: typeof args.options.userName !== 'undefined',
57
63
  force: (!!args.options.force).toString()
58
64
  });
59
65
  });
@@ -61,17 +67,24 @@ _TeamsUserAppRemoveCommand_instances = new WeakSet(), _TeamsUserAppRemoveCommand
61
67
  this.options.unshift({
62
68
  option: '--id <id>'
63
69
  }, {
64
- option: '--userId <userId>'
70
+ option: '--userId [userId]'
71
+ }, {
72
+ option: '--userName [userName]'
65
73
  }, {
66
74
  option: '-f, --force'
67
75
  });
68
76
  }, _TeamsUserAppRemoveCommand_initValidators = function _TeamsUserAppRemoveCommand_initValidators() {
69
77
  this.validators.push(async (args) => {
70
- if (!validation.isValidGuid(args.options.userId)) {
78
+ if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
71
79
  return `${args.options.userId} is not a valid GUID`;
72
80
  }
81
+ if (args.options.userName && !validation.isValidUserPrincipalName(args.options.userName)) {
82
+ return `${args.options.userName} is not a valid userName`;
83
+ }
73
84
  return true;
74
85
  });
86
+ }, _TeamsUserAppRemoveCommand_initOptionSets = function _TeamsUserAppRemoveCommand_initOptionSets() {
87
+ this.optionSets.push({ options: ['userId', 'userName'] });
75
88
  };
76
89
  export default new TeamsUserAppRemoveCommand();
77
90
  //# sourceMappingURL=user-app-remove.js.map
package/dist/request.js CHANGED
@@ -3,6 +3,7 @@ import { Stream } from 'stream';
3
3
  import auth, { Auth } from './Auth.js';
4
4
  import { app } from './utils/app.js';
5
5
  import { formatting } from './utils/formatting.js';
6
+ import { timings } from './cli/timings.js';
6
7
  class Request {
7
8
  set debug(debug) {
8
9
  // if the value to set is the same as current value return early to avoid
@@ -125,6 +126,7 @@ class Request {
125
126
  return this.execute(options);
126
127
  }
127
128
  execute(options, resolve, reject) {
129
+ const start = process.hrtime.bigint();
128
130
  if (!this._logger) {
129
131
  return Promise.reject('Logger not set on the request object');
130
132
  }
@@ -159,6 +161,8 @@ class Request {
159
161
  resolve((options.responseType === 'stream' || options.fullResponse) ? res : res.data);
160
162
  }
161
163
  else {
164
+ const end = process.hrtime.bigint();
165
+ timings.api.push(Number(end - start));
162
166
  _resolve((options.responseType === 'stream' || options.fullResponse) ? res : res.data);
163
167
  }
164
168
  }, (error) => {
@@ -181,6 +185,8 @@ class Request {
181
185
  reject(error);
182
186
  }
183
187
  else {
188
+ const end = process.hrtime.bigint();
189
+ timings.api.push(Number(end - start));
184
190
  _reject(error);
185
191
  }
186
192
  }
@@ -1,4 +1,5 @@
1
1
  const settingsNames = {
2
+ authType: 'authType',
2
3
  autoOpenLinksInBrowser: 'autoOpenLinksInBrowser',
3
4
  copyDeviceCodeToClipboard: 'copyDeviceCodeToClipboard',
4
5
  csvEscape: 'csvEscape',
@@ -12,6 +13,7 @@ const settingsNames = {
12
13
  output: 'output',
13
14
  printErrorsAsPlainText: 'printErrorsAsPlainText',
14
15
  prompt: 'prompt',
16
+ promptListPageSize: 'promptListPageSize',
15
17
  showHelpOnFailure: 'showHelpOnFailure',
16
18
  showSpinner: 'showSpinner'
17
19
  };
@@ -22,13 +22,17 @@ export const prompt = {
22
22
  const errorOutput = cli.getSettingWithDefaultValue(settingsNames.errorOutput, 'stderr');
23
23
  return inquirerConfirm.default(config, { output: errorOutput === 'stderr' ? process.stderr : process.stdout });
24
24
  },
25
- /* c8 ignore next 10 */
25
+ /* c8 ignore next 15 */
26
26
  async forSelection(config) {
27
27
  if (!inquirerSelect) {
28
28
  inquirerSelect = await import('@inquirer/select');
29
29
  }
30
30
  const cli = Cli.getInstance();
31
31
  const errorOutput = cli.getSettingWithDefaultValue(settingsNames.errorOutput, 'stderr');
32
+ const promptPageSizeCap = cli.getSettingWithDefaultValue(settingsNames.promptListPageSize, 7);
33
+ if (!config.pageSize) {
34
+ config.pageSize = Math.min(config.choices.length, promptPageSizeCap);
35
+ }
32
36
  return inquirerSelect.default(config, { output: errorOutput === 'stderr' ? process.stderr : process.stdout });
33
37
  }
34
38
  };
package/dist/utils/spo.js CHANGED
@@ -1203,6 +1203,115 @@ export const spo = {
1203
1203
  };
1204
1204
  const webProperties = await request.get(requestOptions);
1205
1205
  return webProperties;
1206
+ },
1207
+ /**
1208
+ * Applies the retention label to the items in the given list.
1209
+ * @param webUrl The url of the web
1210
+ * @param name The name of the label
1211
+ * @param listAbsoluteUrl The absolute Url to the list
1212
+ * @param itemIds The list item Ids to apply the label to. (A maximum 100 is allowed)
1213
+ * @param logger The logger object
1214
+ * @param verbose Set for verbose logging
1215
+ */
1216
+ async applyRetentionLabelToListItems(webUrl, name, listAbsoluteUrl, itemIds, logger, verbose) {
1217
+ if (verbose && logger) {
1218
+ logger.logToStderr(`Applying retention label '${name}' to item(s) in list '${listAbsoluteUrl}'...`);
1219
+ }
1220
+ const requestOptions = {
1221
+ url: `${webUrl}/_api/SP_CompliancePolicy_SPPolicyStoreProxy_SetComplianceTagOnBulkItems`,
1222
+ headers: {
1223
+ 'accept': 'application/json;odata=nometadata'
1224
+ },
1225
+ data: {
1226
+ listUrl: listAbsoluteUrl,
1227
+ complianceTagValue: name,
1228
+ itemIds: itemIds
1229
+ },
1230
+ responseType: 'json'
1231
+ };
1232
+ await request.post(requestOptions);
1233
+ },
1234
+ /**
1235
+ * Removes the retention label from the items in the given list.
1236
+ * @param webUrl The url of the web
1237
+ * @param listAbsoluteUrl The absolute Url to the list
1238
+ * @param itemIds The list item Ids to clear the label from (A maximum 100 is allowed)
1239
+ * @param logger The logger object
1240
+ * @param verbose Set for verbose logging
1241
+ */
1242
+ async removeRetentionLabelFromListItems(webUrl, listAbsoluteUrl, itemIds, logger, verbose) {
1243
+ if (verbose && logger) {
1244
+ logger.logToStderr(`Removing retention label from item(s) in list '${listAbsoluteUrl}'...`);
1245
+ }
1246
+ const requestOptions = {
1247
+ url: `${webUrl}/_api/SP_CompliancePolicy_SPPolicyStoreProxy_SetComplianceTagOnBulkItems`,
1248
+ headers: {
1249
+ 'accept': 'application/json;odata=nometadata'
1250
+ },
1251
+ data: {
1252
+ listUrl: listAbsoluteUrl,
1253
+ complianceTagValue: '',
1254
+ itemIds: itemIds
1255
+ },
1256
+ responseType: 'json'
1257
+ };
1258
+ await request.post(requestOptions);
1259
+ },
1260
+ /**
1261
+ * Applies a default retention label to a list or library.
1262
+ * @param webUrl The url of the web
1263
+ * @param name The name of the label
1264
+ * @param listAbsoluteUrl The absolute Url to the list
1265
+ * @param syncToItems If the label needs to be synced to existing items/files.
1266
+ * @param logger The logger object
1267
+ * @param verbose Set for verbose logging
1268
+ */
1269
+ async applyDefaultRetentionLabelToList(webUrl, name, listAbsoluteUrl, syncToItems, logger, verbose) {
1270
+ if (verbose && logger) {
1271
+ logger.logToStderr(`Applying default retention label '${name}' to the list '${listAbsoluteUrl}'...`);
1272
+ }
1273
+ const requestOptions = {
1274
+ url: `${webUrl}/_api/SP_CompliancePolicy_SPPolicyStoreProxy_SetListComplianceTag`,
1275
+ headers: {
1276
+ 'accept': 'application/json;odata=nometadata'
1277
+ },
1278
+ data: {
1279
+ listUrl: listAbsoluteUrl,
1280
+ complianceTagValue: name,
1281
+ blockDelete: false,
1282
+ blockEdit: false,
1283
+ syncToItems: syncToItems || false
1284
+ },
1285
+ responseType: 'json'
1286
+ };
1287
+ await request.post(requestOptions);
1288
+ },
1289
+ /**
1290
+ * Removes the default retention label from a list or library.
1291
+ * @param webUrl The url of the web
1292
+ * @param listAbsoluteUrl The absolute Url to the list
1293
+ * @param logger The logger object
1294
+ * @param verbose Set for verbose logging
1295
+ */
1296
+ async removeDefaultRetentionLabelFromList(webUrl, listAbsoluteUrl, logger, verbose) {
1297
+ if (verbose && logger) {
1298
+ logger.logToStderr(`Removing the default retention label from the list '${listAbsoluteUrl}'...`);
1299
+ }
1300
+ const requestOptions = {
1301
+ url: `${webUrl}/_api/SP_CompliancePolicy_SPPolicyStoreProxy_SetListComplianceTag`,
1302
+ headers: {
1303
+ 'accept': 'application/json;odata=nometadata'
1304
+ },
1305
+ data: {
1306
+ listUrl: listAbsoluteUrl,
1307
+ complianceTagValue: '',
1308
+ blockDelete: false,
1309
+ blockEdit: false,
1310
+ syncToItems: false
1311
+ },
1312
+ responseType: 'json'
1313
+ };
1314
+ await request.post(requestOptions);
1206
1315
  }
1207
1316
  };
1208
1317
  //# sourceMappingURL=spo.js.map
@@ -1,5 +1,6 @@
1
1
  Setting name|Definition|Default value
2
2
  ------------|----------|-------------
3
+ `authType`|Default login method to use when running `m365 login` without the `--authType` option.|`deviceCode`
3
4
  `autoOpenLinksInBrowser`|Automatically open the browser for all commands which return a url and expect the user to copy paste this to the browser. For example when logging in, using `m365 login` in device code mode.|`false`
4
5
  `copyDeviceCodeToClipboard`|Automatically copy the device code to the clipboard when running `m365 login` command in device code mode|`false`
5
6
  `csvEscape`|Single character used for escaping; only apply to characters matching the quote and the escape options|`"`
@@ -13,5 +14,6 @@ Setting name|Definition|Default value
13
14
  `output`|Defines the default output when issuing a command. Allowed values are `json`, `text`, `csv`, `md`, `none`|`json`
14
15
  `printErrorsAsPlainText`|When output mode is set to `json`, print error messages as plain-text rather than JSON|`true`
15
16
  `prompt`|Prompts for missing values in required options and enables interactive selection when multiple values are available for a command that requires a specific value to be retrieved.|`true`
17
+ `promptListPageSize`|By default, lists of choices longer than 7 will be paginated. Use this option to control how many choices will appear on the screen at once.|7
16
18
  `showHelpOnFailure`|Automatically display help when executing a command failed|`true`
17
19
  `showSpinner`|Display spinner when executing commands|`true`
@@ -124,4 +124,4 @@ m365 aad approleassignment add --appObjectId "57907bf8-73fa-43a6-89a5-1f603e29e4
124
124
 
125
125
  ## More information
126
126
 
127
- - Microsoft Graph permissions reference: [https://docs.microsoft.com/en-us/graph/permissions-reference](https://docs.microsoft.com/en-us/graph/permissions-reference)
127
+ - Microsoft Graph permissions reference: [https://learn.microsoft.com/graph/permissions-reference](https://learn.microsoft.com/graph/permissions-reference)
@@ -53,7 +53,7 @@ m365 aad approleassignment list --appObjectId b2307a39-e878-458b-bc90-03bc578531
53
53
 
54
54
  ## More information
55
55
 
56
- - Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
56
+ - Application and service principal objects in Azure Active Directory (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
57
57
 
58
58
  ## Response
59
59
 
@@ -110,4 +110,4 @@ m365 aad approleassignment list --appObjectId b2307a39-e878-458b-bc90-03bc578531
110
110
  ```
111
111
 
112
112
  </TabItem>
113
- </Tabs>
113
+ </Tabs>
@@ -70,4 +70,4 @@ The command won't return a response on success.
70
70
 
71
71
  ## More information
72
72
 
73
- - Microsoft Graph permissions reference: [https://docs.microsoft.com/en-us/graph/permissions-reference](https://docs.microsoft.com/en-us/graph/permissions-reference)
73
+ - Microsoft Graph permissions reference: [https://learn.microsoft.com/graph/permissions-reference](https://learn.microsoft.com/graph/permissions-reference)
@@ -55,4 +55,4 @@ The command won't return a response on success.
55
55
 
56
56
  ## More information
57
57
 
58
- - Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
58
+ - Application and service principal objects in Azure Active Directory (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
@@ -94,5 +94,5 @@ m365 aad oauth2grant list --spObjectId b2307a39-e878-458b-bc90-03bc578531d6
94
94
 
95
95
  ## More information
96
96
 
97
- - Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
98
- - List oauth2PermissionGrants: [https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-list?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-list?view=graph-rest-1.0)
97
+ - Application and service principal objects in Azure Active Directory (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
98
+ - List oauth2PermissionGrants: [https://learn.microsoft.com/graph/api/oauth2permissiongrant-list?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/oauth2permissiongrant-list?view=graph-rest-1.0)
@@ -52,5 +52,5 @@ The command won't return a response on success.
52
52
 
53
53
  ## More information
54
54
 
55
- - Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
56
- - Delete a delegated permission grant (oAuth2PermissionGrant): [https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0)
55
+ - Application and service principal objects in Azure Active Directory (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
56
+ - Delete a delegated permission grant (oAuth2PermissionGrant): [https://learn.microsoft.com/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0)
@@ -46,5 +46,5 @@ The command won't return a response on success.
46
46
 
47
47
  ## More information
48
48
 
49
- - Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
50
- - Update a delegated permission grant (oAuth2PermissionGrant): [https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0)
49
+ - Application and service principal objects in Azure Active Directory (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
50
+ - Update a delegated permission grant (oAuth2PermissionGrant): [https://learn.microsoft.com/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0)
@@ -112,4 +112,4 @@ m365 aad policy list --type "claimsMapping"
112
112
 
113
113
  ## More information
114
114
 
115
- - Microsoft Graph Azure AD policy overview: [https://docs.microsoft.com/en-us/graph/api/resources/policy-overview?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/resources/policy-overview?view=graph-rest-1.0)
115
+ - Microsoft Graph Azure AD policy overview: [https://learn.microsoft.com/graph/api/resources/policy-overview?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/resources/policy-overview?view=graph-rest-1.0)
@@ -39,4 +39,4 @@ The command won't return a response on success.
39
39
 
40
40
  ## More information
41
41
 
42
- - SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
42
+ - SharePoint "modern" sites classification: [https://learn.microsoft.com/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://learn.microsoft.com/sharepoint/dev/solution-guidance/modern-experience-site-classification)
@@ -54,4 +54,4 @@ The command won't return a response on success.
54
54
 
55
55
  ## More information
56
56
 
57
- - SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
57
+ - SharePoint "modern" sites classification: [https://learn.microsoft.com/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://learn.microsoft.com/sharepoint/dev/solution-guidance/modern-experience-site-classification)
@@ -81,4 +81,4 @@ m365 aad siteclassification get
81
81
 
82
82
  ## More information
83
83
 
84
- - SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
84
+ - SharePoint "modern" sites classification: [https://learn.microsoft.com/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://learn.microsoft.com/sharepoint/dev/solution-guidance/modern-experience-site-classification)
@@ -61,4 +61,4 @@ The command won't return a response on success.
61
61
 
62
62
  ## More information
63
63
 
64
- - SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
64
+ - SharePoint "modern" sites classification: [https://learn.microsoft.com/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://learn.microsoft.com/sharepoint/dev/solution-guidance/modern-experience-site-classification)
@@ -189,5 +189,5 @@ m365 aad sp add --objectId b2307a39-e878-458b-bc90-03bc578531d6
189
189
 
190
190
  ## More information
191
191
 
192
- - Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
193
- - Create servicePrincipal: [https://docs.microsoft.com/en-us/graph/api/serviceprincipal-post-serviceprincipals?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/serviceprincipal-post-serviceprincipals?view=graph-rest-1.0)
192
+ - Application and service principal objects in Azure Active Directory (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
193
+ - Create servicePrincipal: [https://learn.microsoft.com/graph/api/serviceprincipal-post-serviceprincipals?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/serviceprincipal-post-serviceprincipals?view=graph-rest-1.0)
@@ -217,5 +217,5 @@ m365 aad sp get --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
217
217
 
218
218
  ## More information
219
219
 
220
- - Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
221
- - Get servicePrincipal: [https://docs.microsoft.com/en-us/graph/api/serviceprincipal-get?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/serviceprincipal-get?view=graph-rest-1.0)
220
+ - Application and service principal objects in Azure Active Directory (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
221
+ - Get servicePrincipal: [https://learn.microsoft.com/graph/api/serviceprincipal-get?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/serviceprincipal-get?view=graph-rest-1.0)
@@ -43,7 +43,7 @@ m365 aad user add [options]
43
43
  : Whether the user should change his/her password on the next login and setup MFA.
44
44
 
45
45
  `--usageLocation [usageLocation]`
46
- : A two letter [country code](https://learn.microsoft.com/en-us/partner-center/commercial-marketplace-co-sell-location-codes#country-and-region-codes) (ISO standard 3166). Required for users that will be assigned licenses.
46
+ : A two letter [country code](https://learn.microsoft.com/partner-center/commercial-marketplace-co-sell-location-codes#country-and-region-codes) (ISO standard 3166). Required for users that will be assigned licenses.
47
47
 
48
48
  `--officeLocation [officeLocation]`
49
49
  : The office location in the user's place of business.
@@ -58,7 +58,7 @@ m365 aad user add [options]
58
58
  : The name for the department in which the user works. Maximum length is 64 characters.
59
59
 
60
60
  `--preferredLanguage [preferredLanguage]`
61
- : The preferred language for the user. Should follow [ISO 639-1 Code](https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a). Example: `en-US`.
61
+ : The preferred language for the user. Should follow [ISO 639-1 Code](https://learn.microsoft.com/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a). Example: `en-US`.
62
62
 
63
63
  `--managerUserId [managerUserId]`
64
64
  : User ID of the user's manager. Specify `managerUserId` or `managerUserName` but not both.
@@ -83,7 +83,7 @@ After running this command, it may take a minute before the user is effectively
83
83
 
84
84
  :::
85
85
 
86
- This command allows using unknown options. For a comprehensive list of user properties, please refer to the [Graph documentation page](https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties).
86
+ This command allows using unknown options. For a comprehensive list of user properties, please refer to the [Graph documentation page](https://learn.microsoft.com/graph/api/resources/user?view=graph-rest-1.0#properties).
87
87
 
88
88
  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.
89
89
 
@@ -31,7 +31,7 @@ m365 aad user guest add [options]
31
31
  : Additional recipients the invitation message should be sent to. Currently only 1 additional recipient is supported.
32
32
 
33
33
  `--messageLanguage [messageLanguage]`
34
- : The language you want to send the default message in. The language format should be in [ISO 639](https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oi29500/ed06cf15-306c-43be-9053-ca81ca51e656). The default is `en-US`.
34
+ : The language you want to send the default message in. The language format should be in [ISO 639](https://learn.microsoft.com/openspecs/office_standards/ms-oi29500/ed06cf15-306c-43be-9053-ca81ca51e656). The default is `en-US`.
35
35
 
36
36
  `--sendInvitationMessage`
37
37
  : Indicates whether an email should be sent to the user.
@@ -47,7 +47,7 @@ m365 aad user set [options]
47
47
  : The user's surname (family name or last name). Maximum length is 64 characters.
48
48
 
49
49
  `--usageLocation [usageLocation]`
50
- : A two letter [country code](https://learn.microsoft.com/en-us/partner-center/commercial-marketplace-co-sell-location-codes#country-and-region-codes) (ISO standard 3166). Required for users that will be assigned licenses.
50
+ : A two letter [country code](https://learn.microsoft.com/partner-center/commercial-marketplace-co-sell-location-codes#country-and-region-codes) (ISO standard 3166). Required for users that will be assigned licenses.
51
51
 
52
52
  `--officeLocation [officeLocation]`
53
53
  : The office location in the user's place of business.
@@ -62,7 +62,7 @@ m365 aad user set [options]
62
62
  : The name for the department in which the user works. Maximum length is 64 characters.
63
63
 
64
64
  `--preferredLanguage [preferredLanguage]`
65
- : The preferred language for the user. Should follow [ISO 639-1 Code](https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a). Example: `en-US`.
65
+ : The preferred language for the user. Should follow [ISO 639-1 Code](https://learn.microsoft.com/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a). Example: `en-US`.
66
66
 
67
67
  `--managerUserId [managerUserId]`
68
68
  : User ID of the user's manager. Specify `managerUserId`, `managerUserName` or `removeManager` but not both.
@@ -78,7 +78,7 @@ m365 aad user set [options]
78
78
 
79
79
  ## Remarks
80
80
 
81
- This command allows using unknown options. For a comprehensive list of user properties, please refer to the [Graph documentation page](https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties).
81
+ This command allows using unknown options. For a comprehensive list of user properties, please refer to the [Graph documentation page](https://learn.microsoft.com/graph/api/resources/user?view=graph-rest-1.0#properties).
82
82
 
83
83
  If the user with the specified ID or username doesn't exist, or 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.
84
84
 
@@ -21,6 +21,9 @@ m365 flow run cancel [options]
21
21
 
22
22
  `-e, --environmentName <environmentName>`
23
23
  : The name of the environment where the flow is located
24
+
25
+ `-f, --force`
26
+ : Don't prompt for confirmation
24
27
  ```
25
28
 
26
29
  <Global />
@@ -72,7 +72,7 @@ m365 graph changelog list --startDate '2021-01-01' --endDate '2021-05-01'
72
72
  "guid": "2693683c-f49a-4715-a649-edadd3f54aadv1.0",
73
73
  "category": "v1.0",
74
74
  "title": "Teamwork and communications",
75
- "description": "Added the **chatMessageActions** enumeration type.\r\\\nAdded the [chatMessageHistoryItem](https://learn.microsoft.com/en-us/graph/api/resources/chatMessageHistoryItem?view=graph-rest-1.0) resource type.\r\\\nAdded the **messageHistory** property to the [chatMessage](https://learn.microsoft.com/en-us/graph/api/resources/chatMessage?view=graph-rest-1.0) resource.\r\\\n",
75
+ "description": "Added the **chatMessageActions** enumeration type.\r\\\nAdded the [chatMessageHistoryItem](https://learn.microsoft.com/graph/api/resources/chatMessageHistoryItem?view=graph-rest-1.0) resource type.\r\\\nAdded the **messageHistory** property to the [chatMessage](https://learn.microsoft.com/graph/api/resources/chatMessage?view=graph-rest-1.0) resource.\r\\\n",
76
76
  "pubDate": "2023-05-18T23:04:05.000Z"
77
77
  }
78
78
  ]
@@ -93,8 +93,8 @@ m365 graph changelog list --startDate '2021-01-01' --endDate '2021-05-01'
93
93
  ```csv
94
94
  guid,category,title,description
95
95
  2693683c-f49a-4715-a649-edadd3f54aadv1.0,v1.0,Teamwork and communications,"Added the **chatMessageActions** enumeration type.
96
- Added the [chatMessageHistoryItem](https://learn.microsoft.com/en-us/graph/api/resources/chatMessageHistoryItem?view=graph-rest-1.0) resource type.
97
- Added the **messageHistory** property to the [chatMessage](https://learn.microsoft.com/en-us/graph/api/resources/chatMessage?view=graph-rest-1.0) resource.
96
+ Added the [chatMessageHistoryItem](https://learn.microsoft.com/graph/api/resources/chatMessageHistoryItem?view=graph-rest-1.0) resource type.
97
+ Added the **messageHistory** property to the [chatMessage](https://learn.microsoft.com/graph/api/resources/chatMessage?view=graph-rest-1.0) resource.
98
98
  ```
99
99
 
100
100
  </TabItem>
@@ -113,8 +113,8 @@ m365 graph changelog list --startDate '2021-01-01' --endDate '2021-05-01'
113
113
  category | v1.0
114
114
  title | Teamwork and communications
115
115
  description | Added the \*\*chatMessageActions\*\* enumeration type.
116
- <br>Added the [chatMessageHistoryItem](https://learn.microsoft.com/en-us/graph/api/resources/chatMessageHistoryItem?view=graph-rest-1.0) resource type.
117
- <br>Added the \*\*messageHistory\*\* property to the [chatMessage](https://learn.microsoft.com/en-us/graph/api/resources/chatMessage?view=graph-rest-1.0) resource.
116
+ <br>Added the [chatMessageHistoryItem](https://learn.microsoft.com/graph/api/resources/chatMessageHistoryItem?view=graph-rest-1.0) resource type.
117
+ <br>Added the \*\*messageHistory\*\* property to the [chatMessage](https://learn.microsoft.com/graph/api/resources/chatMessage?view=graph-rest-1.0) resource.
118
118
  ```
119
119
 
120
120
  </TabItem>
@@ -52,7 +52,7 @@ m365 login [options]
52
52
 
53
53
  Using the `login` command you can log in to Microsoft 365.
54
54
 
55
- By default, the `login` command uses device code OAuth flow to log in to Microsoft 365. Alternatively, you can authenticate using a user name and password or certificate, which are convenient for CI/CD scenarios, but which come with their own [limitations](../user-guide/connecting-microsoft-365.mdx).
55
+ By default, the `login` command uses device code OAuth flow to log in to Microsoft 365. Alternatively, you can authenticate using a user name and password or certificate, which are convenient for CI/CD scenarios, but which come with their own [limitations](../user-guide/connecting-microsoft-365.mdx). The default `authType` can be configured using `m365 cli config set`. This means you'll be able to run `m365 login` without specifying the `--authType` option.
56
56
 
57
57
  When logging in to Microsoft 365 using the user name and password, next to the access and refresh token, the CLI for Microsoft 365 will store the user credentials so that it can automatically re-authenticate if necessary. Similarly to the tokens, the credentials are removed by re-authenticating using the device code or by calling the [logout](logout.mdx) command.
58
58
 
@@ -159,4 +159,4 @@ m365 onenote notebook list --webUrl https://contoso.sharepoint.com/sites/testsit
159
159
 
160
160
  ## More information
161
161
 
162
- - List notebooks (MS Graph docs): [https://docs.microsoft.com/en-us/graph/api/onenote-list-notebooks?view=graph-rest-1.0&tabs=http](https://docs.microsoft.com/en-us/graph/api/onenote-list-notebooks?view=graph-rest-1.0&tabs=http)
162
+ - List notebooks (MS Graph docs): [https://learn.microsoft.com/graph/api/onenote-list-notebooks?view=graph-rest-1.0&tabs=http](https://learn.microsoft.com/graph/api/onenote-list-notebooks?view=graph-rest-1.0&tabs=http)
@@ -163,4 +163,4 @@ m365 outlook message list --folderName inbox
163
163
 
164
164
  ## More information
165
165
 
166
- - Well-known folder names: [https://docs.microsoft.com/en-us/graph/api/resources/mailfolder?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/resources/mailfolder?view=graph-rest-1.0)
166
+ - Well-known folder names: [https://learn.microsoft.com/graph/api/resources/mailfolder?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/resources/mailfolder?view=graph-rest-1.0)
@@ -58,4 +58,4 @@ The command won't return a response on success.
58
58
 
59
59
  ## More information
60
60
 
61
- - Well-known folder names: [https://docs.microsoft.com/en-us/graph/api/resources/mailfolder?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/resources/mailfolder?view=graph-rest-1.0)
61
+ - Well-known folder names: [https://learn.microsoft.com/graph/api/resources/mailfolder?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/resources/mailfolder?view=graph-rest-1.0)
@@ -34,7 +34,7 @@ m365 planner bucket add [options]
34
34
  : Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
35
35
 
36
36
  `--orderHint [orderHint]`
37
- : Hint used to order items of this type in a list view. The format is defined as outlined [here](https://docs.microsoft.com/en-us/graph/api/resources/planner-order-hint-format?view=graph-rest-1.0).
37
+ : Hint used to order items of this type in a list view. The format is defined as outlined [here](https://learn.microsoft.com/graph/api/resources/planner-order-hint-format?view=graph-rest-1.0).
38
38
  ```
39
39
 
40
40
  <Global />
@@ -38,7 +38,7 @@ m365 planner bucket set [options]
38
38
  : New name of the bucket.
39
39
 
40
40
  `--orderHint [orderHint]`
41
- : Hint used to order items of this type in a list view. The format is defined as outlined [here](https://docs.microsoft.com/en-us/graph/api/resources/planner-order-hint-format?view=graph-rest-1.0).
41
+ : Hint used to order items of this type in a list view. The format is defined as outlined [here](https://learn.microsoft.com/graph/api/resources/planner-order-hint-format?view=graph-rest-1.0).
42
42
  ```
43
43
 
44
44
  <Global />
@@ -250,6 +250,6 @@ When we make use of the option `shareWithUserIds` or `shareWithUserNames` the re
250
250
 
251
251
  ## More information
252
252
 
253
- - Update plannerPlan: [https://learn.microsoft.com/en-us/graph/api/plannerplan-update?view=graph-rest-1.0&tabs=http](https://learn.microsoft.com/en-us/graph/api/plannerplan-update?view=graph-rest-1.0&tabs=http)
254
- - plannerPlanDetails resource type: [https://learn.microsoft.com/en-us/graph/api/resources/plannerplandetails?view=graph-rest-1.0](https://learn.microsoft.com/en-us/graph/api/resources/plannerplandetails?view=graph-rest-1.0)
255
- - plannerCategoryDescriptions resource type: [https://learn.microsoft.com/en-us/graph/api/resources/plannercategorydescriptions?view=graph-rest-1.0](https://learn.microsoft.com/en-us/graph/api/resources/plannercategorydescriptions?view=graph-rest-1.0)
253
+ - Update plannerPlan: [https://learn.microsoft.com/graph/api/plannerplan-update?view=graph-rest-1.0&tabs=http](https://learn.microsoft.com/graph/api/plannerplan-update?view=graph-rest-1.0&tabs=http)
254
+ - plannerPlanDetails resource type: [https://learn.microsoft.com/graph/api/resources/plannerplandetails?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/resources/plannerplandetails?view=graph-rest-1.0)
255
+ - plannerCategoryDescriptions resource type: [https://learn.microsoft.com/graph/api/resources/plannercategorydescriptions?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/resources/plannercategorydescriptions?view=graph-rest-1.0)
@@ -364,4 +364,4 @@ m365 planner task set --id "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --percentComplete 50 -
364
364
  ## More information
365
365
 
366
366
  - Using order hints in Planner: [https://docs.microsoft.com/graph/api/resources/planner-order-hint-format?view=graph-rest-1.0](https://docs.microsoft.com/graph/api/resources/planner-order-hint-format?view=graph-rest-1.0)
367
- - Applied categories in Planner: [https://docs.microsoft.com/graph/api/resources/plannerappliedcategories?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/resources/plannerappliedcategories?view=graph-rest-1.0)
367
+ - Applied categories in Planner: [https://docs.microsoft.com/graph/api/resources/plannerappliedcategories?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/resources/plannerappliedcategories?view=graph-rest-1.0)
@@ -31,7 +31,7 @@ m365 purview auditlog list [options]
31
31
 
32
32
  :::info
33
33
 
34
- Before you can access audit log data, you must enable unified audit logging for your Microsoft 365 tenant. For instructions, check out the page [Turn auditing on or off](https://learn.microsoft.com/en-us/microsoft-365/compliance/audit-log-enable-disable).
34
+ Before you can access audit log data, you must enable unified audit logging for your Microsoft 365 tenant. For instructions, check out the page [Turn auditing on or off](https://learn.microsoft.com/microsoft-365/compliance/audit-log-enable-disable).
35
35
 
36
36
  :::
37
37
 
@@ -145,5 +145,5 @@ m365 purview auditlog list --contentType SharePoint --startTime "2023-01-01T00:0
145
145
 
146
146
  ## More information
147
147
 
148
- - Explanation of all available audit log activities/operations: https://learn.microsoft.com/en-us/purview/audit-log-activities
149
- - Explanation of all available audit log properties: https://learn.microsoft.com/en-us/purview/audit-log-detailed-properties
148
+ - Explanation of all available audit log activities/operations: https://learn.microsoft.com/purview/audit-log-activities
149
+ - Explanation of all available audit log properties: https://learn.microsoft.com/purview/audit-log-detailed-properties