@pnp/cli-microsoft365 7.1.0-beta.aca68bd → 7.1.0-beta.d53f0d9

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 (237) hide show
  1. package/.devcontainer/Dockerfile +0 -1
  2. package/.eslintrc.cjs +1 -0
  3. package/Dockerfile +0 -1
  4. package/dist/Auth.js +1 -1
  5. package/dist/appInsights.js +5 -9
  6. package/dist/cli/Cli.js +6 -2
  7. package/dist/m365/spo/commands/app/app-deploy.js +1 -1
  8. package/dist/m365/spo/commands/app/app-get.js +1 -1
  9. package/dist/m365/spo/commands/app/app-teamspackage-download.js +1 -1
  10. package/dist/m365/spo/commands/apppage/apppage-add.js +1 -1
  11. package/dist/m365/spo/commands/feature/feature-disable.js +8 -6
  12. package/dist/m365/spo/commands/feature/feature-enable.js +6 -5
  13. package/dist/m365/spo/commands/page/Page.js +1 -1
  14. package/dist/m365/spo/commands/page/page-add.js +1 -1
  15. package/dist/m365/spo/commands/page/page-get.js +1 -1
  16. package/dist/m365/spo/commands/page/page-header-set.js +1 -1
  17. package/dist/m365/spo/commands/page/page-remove.js +1 -1
  18. package/dist/m365/spo/commands/page/page-set.js +2 -2
  19. package/dist/m365/spo/commands/page/page-text-add.js +1 -1
  20. package/dist/m365/spo/commands/user/user-get.js +7 -1
  21. package/dist/telemetry.js +30 -14
  22. package/dist/telemetryRunner.js +26 -0
  23. package/docs/docs/cmd/aad/license/license-list.mdx +21 -16
  24. package/docs/docs/cmd/aad/m365group/m365group-add.mdx +1 -1
  25. package/docs/docs/cmd/aad/user/user-add.mdx +2 -4
  26. package/docs/docs/cmd/aad/user/user-license-add.mdx +2 -4
  27. package/docs/docs/cmd/aad/user/user-license-list.mdx +3 -5
  28. package/docs/docs/cmd/aad/user/user-recyclebinitem-list.mdx +1 -3
  29. package/docs/docs/cmd/aad/user/user-recyclebinitem-restore.mdx +1 -3
  30. package/docs/docs/cmd/flow/environment/environment-get.mdx +3 -4
  31. package/docs/docs/cmd/flow/environment/environment-list.mdx +3 -4
  32. package/docs/docs/cmd/flow/owner/owner-list.mdx +2 -3
  33. package/docs/docs/cmd/flow/run/run-list.mdx +6 -8
  34. package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +2 -3
  35. package/docs/docs/cmd/onenote/page/page-list.mdx +6 -9
  36. package/docs/docs/cmd/outlook/message/message-get.mdx +5 -15
  37. package/docs/docs/cmd/outlook/message/message-list.mdx +5 -14
  38. package/docs/docs/cmd/outlook/room/room-list.mdx +3 -6
  39. package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +1 -3
  40. package/docs/docs/cmd/pa/app/app-get.mdx +4 -7
  41. package/docs/docs/cmd/pa/app/app-list.mdx +4 -7
  42. package/docs/docs/cmd/pa/connector/connector-list.mdx +2 -4
  43. package/docs/docs/cmd/pa/environment/environment-get.mdx +2 -4
  44. package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -3
  45. package/docs/docs/cmd/planner/plan/plan-add.mdx +4 -11
  46. package/docs/docs/cmd/planner/plan/plan-get.mdx +4 -9
  47. package/docs/docs/cmd/planner/plan/plan-list.mdx +3 -6
  48. package/docs/docs/cmd/planner/plan/plan-set.mdx +3 -9
  49. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +2 -4
  50. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +2 -4
  51. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -3
  52. package/docs/docs/cmd/planner/task/task-add.mdx +4 -14
  53. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +2 -4
  54. package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +1 -3
  55. package/docs/docs/cmd/planner/task/task-get.mdx +0 -7
  56. package/docs/docs/cmd/planner/task/task-list.mdx +1 -5
  57. package/docs/docs/cmd/planner/task/task-reference-add.mdx +0 -2
  58. package/docs/docs/cmd/planner/task/task-reference-list.mdx +0 -2
  59. package/docs/docs/cmd/planner/task/task-set.mdx +4 -13
  60. package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +1 -3
  61. package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +3 -5
  62. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +6 -8
  63. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +4 -7
  64. package/docs/docs/cmd/pp/card/card-get.mdx +4 -8
  65. package/docs/docs/cmd/pp/card/card-list.mdx +0 -4
  66. package/docs/docs/cmd/pp/chatbot/chatbot-get.mdx +4 -6
  67. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +3 -14
  68. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +3 -14
  69. package/docs/docs/cmd/pp/environment/environment-get.mdx +3 -5
  70. package/docs/docs/cmd/pp/environment/environment-list.mdx +2 -4
  71. package/docs/docs/cmd/pp/gateway/gateway-get.mdx +0 -3
  72. package/docs/docs/cmd/pp/gateway/gateway-list.mdx +1 -4
  73. package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +4 -0
  74. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +3 -8
  75. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -3
  76. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -5
  77. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +0 -2
  78. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -3
  79. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -3
  80. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +3 -6
  81. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +3 -5
  82. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +4 -8
  83. package/docs/docs/cmd/spo/app/app-add.mdx +94 -7
  84. package/docs/docs/cmd/spo/app/app-deploy.mdx +11 -7
  85. package/docs/docs/cmd/spo/app/app-get.mdx +117 -8
  86. package/docs/docs/cmd/spo/app/app-install.mdx +9 -5
  87. package/docs/docs/cmd/spo/app/app-instance-list.mdx +85 -2
  88. package/docs/docs/cmd/spo/app/app-list.mdx +95 -3
  89. package/docs/docs/cmd/spo/app/app-remove.mdx +11 -7
  90. package/docs/docs/cmd/spo/app/app-retract.mdx +9 -5
  91. package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +12 -8
  92. package/docs/docs/cmd/spo/app/app-uninstall.mdx +11 -7
  93. package/docs/docs/cmd/spo/app/app-upgrade.mdx +9 -5
  94. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +4 -2
  95. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +9 -7
  96. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +6 -6
  97. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +12 -6
  98. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +4 -2
  99. package/docs/docs/cmd/spo/apppage/apppage-add.mdx +54 -5
  100. package/docs/docs/cmd/spo/apppage/apppage-set.mdx +8 -4
  101. package/docs/docs/cmd/spo/cdn/cdn-get.mdx +36 -1
  102. package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +7 -3
  103. package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +48 -3
  104. package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +8 -4
  105. package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +53 -3
  106. package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +7 -3
  107. package/docs/docs/cmd/spo/cdn/cdn-set.mdx +7 -3
  108. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +6 -6
  109. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +3 -5
  110. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +6 -5
  111. package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +7 -3
  112. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +6 -4
  113. package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +148 -9
  114. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +19 -15
  115. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +12 -8
  116. package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +147 -8
  117. package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +115 -4
  118. package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +8 -4
  119. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +8 -4
  120. package/docs/docs/cmd/spo/contenttypehub/contenttypehub-get.mdx +44 -0
  121. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +12 -8
  122. package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +10 -7
  123. package/docs/docs/cmd/spo/customaction/customaction-get.mdx +11 -15
  124. package/docs/docs/cmd/spo/customaction/customaction-list.mdx +87 -5
  125. package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +17 -13
  126. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +27 -23
  127. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.mdx +29 -14
  128. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.mdx +66 -5
  129. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +4 -0
  130. package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +78 -7
  131. package/docs/docs/cmd/spo/feature/feature-disable.mdx +10 -6
  132. package/docs/docs/cmd/spo/feature/feature-enable.mdx +9 -5
  133. package/docs/docs/cmd/spo/feature/feature-list.mdx +52 -0
  134. package/docs/docs/cmd/spo/field/field-add.mdx +177 -11
  135. package/docs/docs/cmd/spo/field/field-get.mdx +175 -9
  136. package/docs/docs/cmd/spo/field/field-list.mdx +135 -8
  137. package/docs/docs/cmd/spo/field/field-remove.mdx +16 -12
  138. package/docs/docs/cmd/spo/field/field-set.mdx +15 -11
  139. package/docs/docs/cmd/spo/file/file-add.mdx +31 -27
  140. package/docs/docs/cmd/spo/file/file-checkin.mdx +13 -9
  141. package/docs/docs/cmd/spo/file/file-checkout.mdx +9 -5
  142. package/docs/docs/cmd/spo/file/file-copy.mdx +5 -5
  143. package/docs/docs/cmd/spo/file/file-get.mdx +89 -18
  144. package/docs/docs/cmd/spo/file/file-list.mdx +5 -5
  145. package/docs/docs/cmd/spo/file/file-move.mdx +5 -5
  146. package/docs/docs/cmd/spo/file/file-remove.mdx +13 -9
  147. package/docs/docs/cmd/spo/file/file-rename.mdx +63 -5
  148. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +3 -3
  149. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +2 -2
  150. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +4 -0
  151. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +7 -3
  152. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +9 -5
  153. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +10 -6
  154. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +133 -5
  155. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +21 -3
  156. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +2 -2
  157. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +18 -0
  158. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +20 -3
  159. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +2 -7
  160. package/docs/docs/cmd/spo/file/file-version-clear.mdx +7 -7
  161. package/docs/docs/cmd/spo/file/file-version-get.mdx +28 -6
  162. package/docs/docs/cmd/spo/file/file-version-list.mdx +28 -6
  163. package/docs/docs/cmd/spo/file/file-version-remove.mdx +8 -8
  164. package/docs/docs/cmd/spo/file/file-version-restore.mdx +8 -8
  165. package/docs/docs/cmd/spo/folder/folder-add.mdx +3 -3
  166. package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
  167. package/docs/docs/cmd/spo/folder/folder-get.mdx +257 -3
  168. package/docs/docs/cmd/spo/folder/folder-list.mdx +3 -4
  169. package/docs/docs/cmd/spo/folder/folder-move.mdx +5 -5
  170. package/docs/docs/cmd/spo/folder/folder-remove.mdx +6 -2
  171. package/docs/docs/cmd/spo/folder/folder-rename.mdx +2 -2
  172. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +3 -3
  173. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +2 -2
  174. package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +13 -8
  175. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +8 -4
  176. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +4 -0
  177. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +5 -1
  178. package/docs/docs/cmd/spo/group/group-add.mdx +78 -0
  179. package/docs/docs/cmd/spo/group/group-get.mdx +81 -3
  180. package/docs/docs/cmd/spo/group/group-list.mdx +74 -3
  181. package/docs/docs/cmd/spo/group/group-member-add.mdx +13 -21
  182. package/docs/docs/cmd/spo/group/group-member-list.mdx +80 -5
  183. package/docs/docs/cmd/spo/group/group-member-remove.mdx +4 -4
  184. package/docs/docs/cmd/spo/group/group-remove.mdx +10 -6
  185. package/docs/docs/cmd/spo/group/group-set.mdx +9 -5
  186. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +36 -1
  187. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +6 -2
  188. package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +0 -2
  189. package/docs/docs/cmd/spo/list/list-add.mdx +0 -3
  190. package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +0 -2
  191. package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +0 -2
  192. package/docs/docs/cmd/spo/list/list-get.mdx +1 -4
  193. package/docs/docs/cmd/spo/list/list-list.mdx +0 -4
  194. package/docs/docs/cmd/spo/list/list-view-add.mdx +0 -3
  195. package/docs/docs/cmd/spo/list/list-view-get.mdx +9 -12
  196. package/docs/docs/cmd/spo/list/list-view-list.mdx +4 -7
  197. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +8 -11
  198. package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -2
  199. package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +4 -6
  200. package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +0 -2
  201. package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +4 -6
  202. package/docs/docs/cmd/spo/page/page-copy.mdx +4 -8
  203. package/docs/docs/cmd/spo/page/page-get.mdx +2 -5
  204. package/docs/docs/cmd/spo/page/page-list.mdx +1 -5
  205. package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +4 -4
  206. package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +6 -7
  207. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +3 -1
  208. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +5 -3
  209. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +4 -2
  210. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +5 -1
  211. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +2 -0
  212. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +2 -1
  213. package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +5 -2
  214. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +4 -1
  215. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +5 -1
  216. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +3 -1
  217. package/docs/docs/cmd/spo/user/user-get.mdx +6 -0
  218. package/docs/docs/cmd/teams/channel/channel-member-list.mdx +3 -5
  219. package/docs/docs/cmd/teams/channel/channel-member-set.mdx +0 -2
  220. package/docs/docs/cmd/teams/chat/chat-get.mdx +2 -4
  221. package/docs/docs/cmd/teams/chat/chat-list.mdx +1 -3
  222. package/docs/docs/cmd/teams/chat/chat-member-list.mdx +2 -4
  223. package/docs/docs/cmd/teams/message/message-get.mdx +0 -7
  224. package/docs/docs/cmd/teams/message/message-list.mdx +0 -6
  225. package/docs/docs/cmd/teams/message/message-reply-list.mdx +0 -6
  226. package/docs/docs/cmd/teams/tab/tab-add.mdx +10 -12
  227. package/docs/docs/cmd/teams/tab/tab-get.mdx +8 -10
  228. package/docs/docs/cmd/teams/tab/tab-list.mdx +4 -7
  229. package/docs/docs/cmd/teams/team/team-add.mdx +0 -7
  230. package/docs/docs/cmd/teams/team/team-get.mdx +0 -6
  231. package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
  232. package/docs/docs/cmd/todo/task/task-add.mdx +9 -13
  233. package/docs/docs/cmd/todo/task/task-set.mdx +10 -14
  234. package/eslint-rules/lib/index.js +2 -1
  235. package/eslint-rules/lib/rules/no-by-server-relative-url-usage.js +55 -0
  236. package/npm-shrinkwrap.json +86 -82
  237. package/package.json +20 -19
@@ -6,7 +6,6 @@ LABEL name="CLI for Microsoft 365 Development" \
6
6
  maintainers="Waldek Mastykarz <waldek@mastykarz.nl>, \
7
7
  Garry Trinder <garry.trinder@live.com>, \
8
8
  Albert-Jan Schot <appie@digiwijs.nl>, \
9
- Rabia Williams <rabiawilliams@gmail.com>, \
10
9
  Patrick Lamber <patrick@nubo.eu>, \
11
10
  Arjun Menon <arjun.umenon@gmail.com>, \
12
11
  Adam Wojcik <adam.wojcik.it@gmail.com>, \
package/.eslintrc.cjs CHANGED
@@ -136,6 +136,7 @@ module.exports = {
136
136
  "rules": {
137
137
  "cli-microsoft365/correct-command-class-name": ["error", sortedDictionary, capitalized],
138
138
  "cli-microsoft365/correct-command-name": "error",
139
+ "cli-microsoft365/no-by-server-relative-url-usage": "error",
139
140
  "indent": "off",
140
141
  "@typescript-eslint/indent": [
141
142
  "error",
package/Dockerfile CHANGED
@@ -8,7 +8,6 @@ LABEL name="m365pnp/cli-microsoft365:${CLI_VERSION}" \
8
8
  maintainers="Waldek Mastykarz <waldek@mastykarz.nl>, \
9
9
  Garry Trinder <garry.trinder@live.com>, \
10
10
  Albert-Jan Schot <appie@digiwijs.nl>, \
11
- Rabia Williams <rabiawilliams@gmail.com>, \
12
11
  Patrick Lamber <patrick@nubo.eu>, \
13
12
  Arjun Menon <arjun.umenon@gmail.com>, \
14
13
  Adam Wojcik <adam.wojcik.it@gmail.com>, \
package/dist/Auth.js CHANGED
@@ -341,7 +341,7 @@ export class Auth {
341
341
  const cli = Cli.getInstance();
342
342
  cli.spinner.text = response.message;
343
343
  cli.spinner.spinner = {
344
- frames: ['🌶️ ']
344
+ frames: ['🌶️']
345
345
  };
346
346
  // don't show spinner if running tests
347
347
  /* c8 ignore next 3 */
@@ -9,7 +9,6 @@ import fs from 'fs';
9
9
  import path from 'path';
10
10
  import url from 'url';
11
11
  import { app } from './utils/app.js';
12
- import { pid } from './utils/pid.js';
13
12
  const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
14
13
  const config = appInsights.setup('6b908c80-d09f-4cf6-8274-e54349a0149a');
15
14
  config.setInternalLogging(false, false);
@@ -18,17 +17,14 @@ config.setInternalLogging(false, false);
18
17
  // in the telemetry
19
18
  const version = `${app.packageJson().version}${fs.existsSync(path.join(__dirname, `..${path.sep}src`)) ? '-dev' : ''}`;
20
19
  const env = process.env.CLIMICROSOFT365_ENV !== undefined ? process.env.CLIMICROSOFT365_ENV : '';
21
- appInsights.default.defaultClient.commonProperties = {
20
+ const appInsightsClient = appInsights.default.defaultClient;
21
+ appInsightsClient.commonProperties = {
22
22
  version: version,
23
23
  node: process.version,
24
- shell: pid.getProcessName(process.ppid) || '',
25
24
  env: env,
26
25
  ci: Boolean(process.env.CI).toString()
27
26
  };
28
- appInsights.default.defaultClient.context.tags['ai.session.id'] =
29
- crypto.randomBytes(24).toString('base64');
30
- appInsights.default.defaultClient.context.tags['ai.cloud.roleInstance'] =
31
- crypto.createHash('sha256').update(appInsights.default.defaultClient.context.tags['ai.cloud.roleInstance']).digest('hex');
32
- delete appInsights.default.defaultClient.context.tags['ai.cloud.role'];
33
- export default appInsights.default.defaultClient;
27
+ appInsightsClient.context.tags['ai.cloud.roleInstance'] = crypto.createHash('sha256').update(appInsightsClient.context.tags['ai.cloud.roleInstance']).digest('hex');
28
+ appInsightsClient.context.tags['ai.cloud.role'];
29
+ export default appInsightsClient;
34
30
  //# sourceMappingURL=appInsights.js.map
package/dist/cli/Cli.js CHANGED
@@ -31,11 +31,15 @@ export class Cli {
31
31
  return configuredValue;
32
32
  }
33
33
  }
34
- // eslint-disable-next-line @typescript-eslint/no-empty-function
35
34
  constructor() {
36
35
  this.commands = [];
37
36
  this.commandsFolder = '';
38
- this.spinner = ora('Running command...');
37
+ const options = {
38
+ text: 'Running command...',
39
+ /* c8 ignore next 1 */
40
+ stream: this.getSettingWithDefaultValue('errorOutput', 'stderr') === 'stderr' ? process.stderr : process.stdout
41
+ };
42
+ this.spinner = ora(options);
39
43
  }
40
44
  static getInstance() {
41
45
  if (!Cli.instance) {
@@ -43,7 +43,7 @@ class SpoAppDeployCommand extends SpoAppBaseCommand {
43
43
  await logger.logToStderr(`Looking up app id for app named ${args.options.name}...`);
44
44
  }
45
45
  const requestOptions = {
46
- url: `${appCatalogUrl}/_api/web/getfolderbyserverrelativeurl('AppCatalog')/files('${args.options.name}')?$select=UniqueId`,
46
+ url: `${appCatalogUrl}/_api/web/GetFolderByServerRelativePath(DecodedUrl='AppCatalog')/files('${args.options.name}')?$select=UniqueId`,
47
47
  headers: {
48
48
  accept: 'application/json;odata=nometadata'
49
49
  },
@@ -39,7 +39,7 @@ class SpoAppGetCommand extends SpoAppBaseCommand {
39
39
  await logger.logToStderr(`Looking up app id for app named ${args.options.name}...`);
40
40
  }
41
41
  const requestOptions = {
42
- url: `${appCatalogSiteUrl}/_api/web/getfolderbyserverrelativeurl('AppCatalog')/files('${args.options.name}')?$select=UniqueId`,
42
+ url: `${appCatalogSiteUrl}/_api/web/GetFolderByServerRelativePath(DecodedUrl='AppCatalog')/files('${args.options.name}')?$select=UniqueId`,
43
43
  headers: {
44
44
  accept: 'application/json;odata=nometadata'
45
45
  },
@@ -88,7 +88,7 @@ class SpoAppTeamsPackageDownloadCommand extends SpoAppBaseCommand {
88
88
  url += `GetList('${serverRelativeAppCatalogListUrl}')/GetItemById(${args.options.appItemId})?$expand=File&$select=File/Name`;
89
89
  }
90
90
  else if (args.options.appName) {
91
- url += `getfolderbyserverrelativeurl('${appCatalogListName}')/files('${formatting.encodeQueryParameter(args.options.appName)}')/ListItemAllFields?$select=Id`;
91
+ url += `GetFolderByServerRelativePath(DecodedUrl='${appCatalogListName}')/files('${formatting.encodeQueryParameter(args.options.appName)}')/ListItemAllFields?$select=Id`;
92
92
  }
93
93
  const requestOptions = {
94
94
  url,
@@ -38,7 +38,7 @@ class SpoAppPageAddCommand extends SpoCommand {
38
38
  const page = await request.post(createPageRequestOptions);
39
39
  const pageUrl = page.value;
40
40
  let requestOptions = {
41
- url: `${args.options.webUrl}/_api/web/getfilebyserverrelativeurl('${urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/${pageUrl}')?$expand=ListItemAllFields`,
41
+ url: `${args.options.webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/${pageUrl}')?$expand=ListItemAllFields`,
42
42
  headers: {
43
43
  'content-type': 'application/json;charset=utf-8',
44
44
  accept: 'application/json;odata=nometadata'
@@ -5,6 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
5
5
  };
6
6
  var _SpoFeatureDisableCommand_instances, _SpoFeatureDisableCommand_initTelemetry, _SpoFeatureDisableCommand_initOptions, _SpoFeatureDisableCommand_initValidators, _SpoFeatureDisableCommand_initTypes;
7
7
  import request from "../../../../request.js";
8
+ import { validation } from '../../../../utils/validation.js';
8
9
  import SpoCommand from "../../../base/SpoCommand.js";
9
10
  import commands from "../../commands.js";
10
11
  class SpoFeatureDisableCommand extends SpoCommand {
@@ -24,13 +25,10 @@ class SpoFeatureDisableCommand extends SpoCommand {
24
25
  }
25
26
  async commandAction(logger, args) {
26
27
  let scope = args.options.scope;
27
- let force = args.options.force;
28
+ const force = !!args.options.force;
28
29
  if (!scope) {
29
30
  scope = "web";
30
31
  }
31
- if (!force) {
32
- force = false;
33
- }
34
32
  if (this.verbose) {
35
33
  await logger.logToStderr(`Disabling feature '${args.options.id}' on scope '${scope}' for url '${args.options.webUrl}' (force='${force}')...`);
36
34
  }
@@ -39,7 +37,8 @@ class SpoFeatureDisableCommand extends SpoCommand {
39
37
  url: url,
40
38
  headers: {
41
39
  accept: 'application/json;odata=nometadata'
42
- }
40
+ },
41
+ responseType: 'json'
43
42
  };
44
43
  try {
45
44
  await request.post(requestOptions);
@@ -69,9 +68,12 @@ _SpoFeatureDisableCommand_instances = new WeakSet(), _SpoFeatureDisableCommand_i
69
68
  });
70
69
  }, _SpoFeatureDisableCommand_initValidators = function _SpoFeatureDisableCommand_initValidators() {
71
70
  this.validators.push(async (args) => {
71
+ if (!validation.isValidGuid(args.options.id)) {
72
+ return `${args.options.id} is not a valid GUID for option id.`;
73
+ }
72
74
  if (args.options.scope) {
73
75
  if (['site', 'web'].indexOf(args.options.scope.toLowerCase()) < 0) {
74
- return `${args.options.scope} is not a valid Feature scope. Allowed values are Site|Web`;
76
+ return `${args.options.scope} is not a valid Feature scope. Allowed values are: Site, Web.`;
75
77
  }
76
78
  }
77
79
  return true;
@@ -25,13 +25,10 @@ class SpoFeatureEnableCommand extends SpoCommand {
25
25
  }
26
26
  async commandAction(logger, args) {
27
27
  let scope = args.options.scope;
28
- let force = args.options.force;
28
+ const force = !!args.options.force;
29
29
  if (!scope) {
30
30
  scope = "web";
31
31
  }
32
- if (!force) {
33
- force = false;
34
- }
35
32
  if (this.verbose) {
36
33
  await logger.logToStderr(`Enabling feature '${args.options.id}' on scope '${scope}' for url '${args.options.webUrl}' (force='${force}')...`);
37
34
  }
@@ -40,7 +37,8 @@ class SpoFeatureEnableCommand extends SpoCommand {
40
37
  url: url,
41
38
  headers: {
42
39
  accept: 'application/json;odata=nometadata'
43
- }
40
+ },
41
+ responseType: 'json'
44
42
  };
45
43
  try {
46
44
  await request.post(requestOptions);
@@ -70,6 +68,9 @@ _SpoFeatureEnableCommand_instances = new WeakSet(), _SpoFeatureEnableCommand_ini
70
68
  });
71
69
  }, _SpoFeatureEnableCommand_initValidators = function _SpoFeatureEnableCommand_initValidators() {
72
70
  this.validators.push(async (args) => {
71
+ if (!validation.isValidGuid(args.options.id)) {
72
+ return `${args.options.id} is not a valid GUID for option id.`;
73
+ }
73
74
  if (args.options.scope) {
74
75
  if (['site', 'web'].indexOf(args.options.scope.toLowerCase()) < 0) {
75
76
  return `${args.options.scope} is not a valid Feature scope. Allowed values are Site|Web`;
@@ -12,7 +12,7 @@ export class Page {
12
12
  }
13
13
  const pageName = this.getPageNameWithExtension(name);
14
14
  const requestOptions = {
15
- url: `${webUrl}/_api/web/getfilebyserverrelativeurl('${urlUtil.getServerRelativeSiteUrl(webUrl)}/SitePages/${formatting.encodeQueryParameter(pageName)}')?$expand=ListItemAllFields/ClientSideApplicationId`,
15
+ url: `${webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${urlUtil.getServerRelativeSiteUrl(webUrl)}/SitePages/${formatting.encodeQueryParameter(pageName)}')?$expand=ListItemAllFields/ClientSideApplicationId`,
16
16
  headers: {
17
17
  'content-type': 'application/json;charset=utf-8',
18
18
  accept: 'application/json;odata=nometadata'
@@ -52,7 +52,7 @@ class SpoPageAddCommand extends SpoCommand {
52
52
  const reqDigest = await spo.getRequestDigest(args.options.webUrl);
53
53
  requestDigest = reqDigest.FormDigestValue;
54
54
  let requestOptions = {
55
- url: `${args.options.webUrl}/_api/web/getfolderbyserverrelativeurl('${serverRelativeSiteUrl}/sitepages')/files/AddTemplateFile`,
55
+ url: `${args.options.webUrl}/_api/web/GetFolderByServerRelativePath(DecodedUrl='${serverRelativeSiteUrl}/sitepages')/files/AddTemplateFile`,
56
56
  headers: {
57
57
  'X-RequestDigest': requestDigest,
58
58
  'content-type': 'application/json;odata=nometadata',
@@ -36,7 +36,7 @@ class SpoPageGetCommand extends SpoCommand {
36
36
  }
37
37
  try {
38
38
  let requestOptions = {
39
- url: `${args.options.webUrl}/_api/web/getfilebyserverrelativeurl('${urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/SitePages/${formatting.encodeQueryParameter(pageName)}')?$expand=ListItemAllFields/ClientSideApplicationId,ListItemAllFields/PageLayoutType,ListItemAllFields/CommentsDisabled`,
39
+ url: `${args.options.webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/SitePages/${formatting.encodeQueryParameter(pageName)}')?$expand=ListItemAllFields/ClientSideApplicationId,ListItemAllFields/PageLayoutType,ListItemAllFields/CommentsDisabled`,
40
40
  headers: {
41
41
  'content-type': 'application/json;charset=utf-8',
42
42
  accept: 'application/json;odata=nometadata'
@@ -300,7 +300,7 @@ class SpoPageHeaderSetCommand extends SpoCommand {
300
300
  await logger.logToStderr(`Retrieving information about the header image...`);
301
301
  }
302
302
  const requestOptions = {
303
- url: `${siteUrl}/_api/web/getfilebyserverrelativeurl('${formatting.encodeQueryParameter(imageUrl)}')?$select=ListId,UniqueId`,
303
+ url: `${siteUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${formatting.encodeQueryParameter(imageUrl)}')?$select=ListId,UniqueId`,
304
304
  headers: {
305
305
  accept: 'application/json;odata=nometadata'
306
306
  },
@@ -54,7 +54,7 @@ class SpoPageRemoveCommand extends SpoCommand {
54
54
  }
55
55
  const requestOptions = {
56
56
  url: `${args.options
57
- .webUrl}/_api/web/getfilebyserverrelativeurl('${urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/sitepages/${pageName}')`,
57
+ .webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/sitepages/${pageName}')`,
58
58
  headers: {
59
59
  'X-RequestDigest': requestDigest,
60
60
  'X-HTTP-Method': 'DELETE',
@@ -199,7 +199,7 @@ class SpoPageSetCommand extends SpoCommand {
199
199
  }
200
200
  if (typeof args.options.commentsEnabled !== 'undefined') {
201
201
  const requestOptions = {
202
- url: `${args.options.webUrl}/_api/web/getfilebyserverrelativeurl('${serverRelativeFileUrl}')/ListItemAllFields/SetCommentsDisabled(${args.options.commentsEnabled === false})`,
202
+ url: `${args.options.webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${serverRelativeFileUrl}')/ListItemAllFields/SetCommentsDisabled(${args.options.commentsEnabled === false})`,
203
203
  headers: {
204
204
  'X-RequestDigest': requestDigest,
205
205
  'content-type': 'application/json;odata=nometadata',
@@ -239,7 +239,7 @@ class SpoPageSetCommand extends SpoCommand {
239
239
  }
240
240
  else {
241
241
  requestOptions = {
242
- url: `${args.options.webUrl}/_api/web/getfilebyserverrelativeurl('${serverRelativeFileUrl}')/CheckIn(comment=@a1,checkintype=@a2)?@a1='${formatting.encodeQueryParameter(args.options.publishMessage || '')}'&@a2=1`,
242
+ url: `${args.options.webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${serverRelativeFileUrl}')/CheckIn(comment=@a1,checkintype=@a2)?@a1='${formatting.encodeQueryParameter(args.options.publishMessage || '')}'&@a2=1`,
243
243
  headers: {
244
244
  'X-RequestDigest': requestDigest,
245
245
  'content-type': 'application/json;odata=nometadata',
@@ -79,7 +79,7 @@ class SpoPageTextAddCommand extends SpoCommand {
79
79
  }
80
80
  const requestOptions = {
81
81
  url: `${args.options
82
- .webUrl}/_api/web/getfilebyserverrelativeurl('${urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/sitepages/${pageName}')/ListItemAllFields`,
82
+ .webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/sitepages/${pageName}')/ListItemAllFields`,
83
83
  headers: {
84
84
  'X-RequestDigest': requestDigest,
85
85
  'content-type': 'application/json;odata=nometadata',
@@ -38,6 +38,9 @@ class SpoUserGetCommand extends SpoCommand {
38
38
  else if (args.options.loginName) {
39
39
  requestUrl = `${args.options.webUrl}/_api/web/siteusers/GetByLoginName('${formatting.encodeQueryParameter(args.options.loginName)}')`;
40
40
  }
41
+ else {
42
+ requestUrl = `${args.options.webUrl}/_api/web/currentuser`;
43
+ }
41
44
  const requestOptions = {
42
45
  url: requestUrl,
43
46
  method: 'GET',
@@ -82,7 +85,10 @@ _SpoUserGetCommand_instances = new WeakSet(), _SpoUserGetCommand_initTelemetry =
82
85
  return validation.isValidSharePointUrl(args.options.webUrl);
83
86
  });
84
87
  }, _SpoUserGetCommand_initOptionSets = function _SpoUserGetCommand_initOptionSets() {
85
- this.optionSets.push({ options: ['id', 'email', 'loginName'] });
88
+ this.optionSets.push({
89
+ options: ['id', 'email', 'loginName'],
90
+ runsWhen: (args) => args.options.id || args.options.loginName || args.options.email
91
+ });
86
92
  };
87
93
  export default new SpoUserGetCommand();
88
94
  //# sourceMappingURL=user-get.js.map
package/dist/telemetry.js CHANGED
@@ -1,26 +1,42 @@
1
- import appInsights from "./appInsights.js";
2
- import { Cli } from "./cli/Cli.js";
3
- import { settingsNames } from "./settingsNames.js";
4
- class Telemetry {
5
- trackEvent(commandName, properties) {
1
+ import child_process from 'child_process';
2
+ import path from 'path';
3
+ import url from 'url';
4
+ import { Cli } from './cli/Cli.js';
5
+ import { settingsNames } from './settingsNames.js';
6
+ import { pid } from './utils/pid.js';
7
+ import { session } from './utils/session.js';
8
+ const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
9
+ function trackTelemetry(object) {
10
+ try {
11
+ const child = child_process.spawn('node', [path.join(__dirname, 'telemetryRunner.js')], {
12
+ stdio: ['pipe', 'ignore', 'ignore'],
13
+ detached: true
14
+ });
15
+ child.unref();
16
+ object.shell = pid.getProcessName(process.ppid) || '';
17
+ object.session = session.getId(process.ppid);
18
+ child.stdin.write(JSON.stringify(object));
19
+ child.stdin.end();
20
+ }
21
+ catch { }
22
+ }
23
+ export const telemetry = {
24
+ trackEvent: (commandName, properties) => {
6
25
  if (Cli.getInstance().getSettingWithDefaultValue(settingsNames.disableTelemetry, false)) {
7
26
  return;
8
27
  }
9
- appInsights.trackEvent({
10
- name: commandName,
28
+ trackTelemetry({
29
+ commandName,
11
30
  properties
12
31
  });
13
- appInsights.flush();
14
- }
15
- trackException(exception) {
32
+ },
33
+ trackException: (exception) => {
16
34
  if (Cli.getInstance().getSettingWithDefaultValue(settingsNames.disableTelemetry, false)) {
17
35
  return;
18
36
  }
19
- appInsights.trackException({
37
+ trackTelemetry({
20
38
  exception
21
39
  });
22
- appInsights.flush();
23
40
  }
24
- }
25
- export const telemetry = new Telemetry();
41
+ };
26
42
  //# sourceMappingURL=telemetry.js.map
@@ -0,0 +1,26 @@
1
+ import appInsights from './appInsights.js';
2
+ import * as process from 'process';
3
+ import * as fs from 'fs';
4
+ process.stdin.setEncoding('utf8');
5
+ try {
6
+ // read from stdin
7
+ const input = fs.readFileSync(0, 'utf-8');
8
+ const data = JSON.parse(input);
9
+ const { commandName, properties, exception, shell, session } = data;
10
+ appInsights.commonProperties.shell = shell;
11
+ appInsights.context.tags['ai.session.id'] = session;
12
+ if (exception) {
13
+ appInsights.trackException({
14
+ exception
15
+ });
16
+ }
17
+ else {
18
+ appInsights.trackEvent({
19
+ name: commandName,
20
+ properties
21
+ });
22
+ }
23
+ appInsights.flush();
24
+ }
25
+ catch { }
26
+ //# sourceMappingURL=telemetryRunner.js.map
@@ -18,7 +18,7 @@ m365 aad license list [options]
18
18
 
19
19
  ## Examples
20
20
 
21
- List all licenses within the tenant
21
+ List all licenses within the tenant.
22
22
 
23
23
  ```sh
24
24
  m365 aad license list
@@ -32,24 +32,30 @@ m365 aad license list
32
32
  ```json
33
33
  [
34
34
  {
35
+ "accountName": "contoso",
36
+ "accountId": "a9b44919-790b-4843-9b45-1923b8c3d61f",
37
+ "appliesTo": "User",
35
38
  "capabilityStatus": "Enabled",
36
39
  "consumedUnits": 1,
37
40
  "id": "48a80680-7326-48cd-9935-b556b81d3a4e_c7df2760-2c81-4ef7-b578-5b5392b571df",
38
41
  "skuId": "c7df2760-2c81-4ef7-b578-5b5392b571df",
39
- "skuPartNumber": "ENTERPRISEPREMIUM",
40
- "appliesTo": "User",
42
+ "skuPartNumber": "ENTERPRISEPREMIUM",
43
+ "subscriptionIds": [
44
+ "b079cd48-7a9e-4d8b-af82-60f3adefe53b"
45
+ ],
41
46
  "prepaidUnits": {
42
47
  "enabled": 10000,
43
48
  "suspended": 0,
44
- "warning": 0
49
+ "warning": 0,
50
+ "lockedOut": 0
45
51
  },
46
52
  "servicePlans": [
47
- {
48
- "servicePlanId": "8c098270-9dd4-4350-9b30-ba4703f3b36b",
49
- "servicePlanName": "ADALLOM_S_O365",
50
- "provisioningStatus": "Success",
51
- "appliesTo": "User"
52
- }
53
+ {
54
+ "servicePlanId": "8c098270-9dd4-4350-9b30-ba4703f3b36b",
55
+ "servicePlanName": "ADALLOM_S_O365",
56
+ "provisioningStatus": "Success",
57
+ "appliesTo": "User"
58
+ }
53
59
  ]
54
60
  }
55
61
  ]
@@ -68,8 +74,8 @@ m365 aad license list
68
74
  <TabItem value="CSV">
69
75
 
70
76
  ```csv
71
- id,skuId,skuPartNumber
72
- 48a80680-7326-48cd-9935-b556b81d3a4e_c7df2760-2c81-4ef7-b578-5b5392b571df,c7df2760-2c81-4ef7-b578-5b5392b571df,ENTERPRISEPREMIUM
77
+ accountName,accountId,appliesTo,capabilityStatus,consumedUnits,id,skuId,skuPartNumber
78
+ contoso,a9b44919-790b-4843-9b45-1923b8c3d61f,User,Enabled,1,48a80680-7326-48cd-9935-b556b81d3a4e_c7df2760-2c81-4ef7-b578-5b5392b571df,c7df2760-2c81-4ef7-b578-5b5392b571df,ENTERPRISEPREMIUM
73
79
  ```
74
80
 
75
81
  </TabItem>
@@ -84,16 +90,15 @@ m365 aad license list
84
90
 
85
91
  Property | Value
86
92
  ---------|-------
93
+ accountName | contoso
94
+ accountId | a9b44919-790b-4843-9b45-1923b8c3d61f
95
+ appliesTo | User
87
96
  capabilityStatus | Enabled
88
97
  consumedUnits | 1
89
98
  id | 48a80680-7326-48cd-9935-b556b81d3a4e_c7df2760-2c81-4ef7-b578-5b5392b571df
90
99
  skuId | c7df2760-2c81-4ef7-b578-5b5392b571df
91
100
  skuPartNumber | ENTERPRISEPREMIUM
92
- appliesTo | User
93
- prepaidUnits | {"enabled":10000,"suspended":0,"warning":0}
94
- servicePlans | [{"servicePlanId":"8c098270-9dd4-4350-9b30-ba4703f3b36b","servicePlanName": "ADALLOM_S_O365","provisioningStatus": "Success","appliesTo": "User"}]
95
101
  ```
96
102
 
97
103
  </TabItem>
98
104
  </Tabs>
99
-
@@ -31,7 +31,7 @@ m365 aad m365group add [options]
31
31
  : Comma-separated list of Microsoft 365 Group members
32
32
 
33
33
  `--visibility [visibility]`
34
- : Specifies the group join policy and group content visibility for groups. Possible values are: `Private`, `Public`, or `HiddenMembership`. Defaults to `Public`.
34
+ : Specifies the group join policy and group content visibility for groups. Allowed values: `Private`, `Public`, or `HiddenMembership`. Defaults to `Public`.
35
35
 
36
36
  `--allowMembersToPost [allowMembersToPost]`
37
37
  : Set if only group members should be able to post conversations to the group
@@ -22,7 +22,7 @@ m365 aad user add [options]
22
22
  : The user principal name (someuser@contoso.com).
23
23
 
24
24
  `--accountEnabled [accountEnabled]`
25
- : Whether the account is enabled. Possible values: `true`, `false`. Default value is `true`.
25
+ : Whether the account is enabled. Allowed values: `true`, `false`. Defaults to `true`.
26
26
 
27
27
  `--mailNickname [mailNickname]`
28
28
  : The mail alias for the user. By default this value will be extracted from `userName`.
@@ -73,7 +73,7 @@ m365 aad user add [options]
73
73
 
74
74
  :::info
75
75
 
76
- To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator
76
+ To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator.
77
77
 
78
78
  :::
79
79
 
@@ -174,7 +174,6 @@ m365 aad user add --displayName "John Doe" --userName "john.doe@contoso.com" --m
174
174
  Property | Value
175
175
  ---------|-------
176
176
  id | 990e2425-f595-43bc-85ed-b89a44093793
177
- businessPhones | []
178
177
  displayName | John Doe
179
178
  givenName | John
180
179
  jobTitle | Sales Manager
@@ -189,4 +188,3 @@ m365 aad user add --displayName "John Doe" --userName "john.doe@contoso.com" --m
189
188
 
190
189
  </TabItem>
191
190
  </Tabs>
192
-
@@ -37,13 +37,13 @@ The user must have a `usageLocation` value in order to assign a license to it.
37
37
 
38
38
  ## Examples
39
39
 
40
- Assign specific licenses to a specific user by UPN
40
+ Assign specific licenses to a specific user by UPN.
41
41
 
42
42
  ```sh
43
43
  m365 aad user license add --userName "john.doe@contoso.com" --ids "45715bb8-13f9-4bf6-927f-ef96c102d394,bea13e0c-3828-4daa-a392-28af7ff61a0f"
44
44
  ```
45
45
 
46
- Assign specific licenses from a specific user by ID
46
+ Assign specific licenses from a specific user by ID.
47
47
 
48
48
  ```sh
49
49
  m365 aad user license add --userId "5c241023-2ba5-4ea8-a516-a2481a3e6c51" --ids "45715bb8-13f9-4bf6-927f-ef96c102d394,bea13e0c-3828-4daa-a392-28af7ff61a0f"
@@ -107,7 +107,6 @@ m365 aad user license add --userId "5c241023-2ba5-4ea8-a516-a2481a3e6c51" --ids
107
107
 
108
108
  Property | Value
109
109
  ---------|-------
110
- businessPhones | []
111
110
  displayName | John Doe
112
111
  givenName | null
113
112
  jobTitle | null
@@ -122,4 +121,3 @@ m365 aad user license add --userId "5c241023-2ba5-4ea8-a516-a2481a3e6c51" --ids
122
121
 
123
122
  </TabItem>
124
123
  </Tabs>
125
-
@@ -79,9 +79,9 @@ m365 aad user license list --userId 59f80e08-24b1-41f8-8586-16765fd830d3
79
79
  <TabItem value="Text">
80
80
 
81
81
  ```text
82
- id : x4s03usaBkSMs5fbAhyttK6cK8RP6rdKlxeBV2I1zKw
83
- skuId : c42b9cae-ea4f-4ab7-9717-81576235ccac
84
- skuPartNumber: DEVELOPERPACK_E5
82
+ id skuId skuPartNumber
83
+ ------------------------------------------- ------------------------------------ -----------------------------------------
84
+ x4s03usaBkSMs5fbAhyttK6cK8RP6rdKlxeBV2I1zKw c42b9cae-ea4f-4ab7-9717-81576235ccac DEVELOPERPACK_E5
85
85
  ```
86
86
 
87
87
  </TabItem>
@@ -107,9 +107,7 @@ m365 aad user license list --userId 59f80e08-24b1-41f8-8586-16765fd830d3
107
107
  id | x4s03usaBkSMs5fbAhyttK6cK8RP6rdKlxeBV2I1zKw
108
108
  skuId | c42b9cae-ea4f-4ab7-9717-81576235ccac
109
109
  skuPartNumber | DEVELOPERPACK\_E5
110
- servicePlans | [{"servicePlanId":"7547a3fe-08ee-4ccb-b430-5077c5041653","servicePlanName":"YAMMER\_ENTERPRISE","provisioningStatus":"Success","appliesTo":"User"}]
111
110
  ```
112
111
 
113
112
  </TabItem>
114
113
  </Tabs>
115
-
@@ -18,7 +18,7 @@ m365 aad user recyclebinitem list [options]
18
18
 
19
19
  ## Examples
20
20
 
21
- List all removed users
21
+ List all removed users.
22
22
 
23
23
  ```sh
24
24
  m365 aad user recyclebinitem list
@@ -76,7 +76,6 @@ m365 aad user recyclebinitem list
76
76
 
77
77
  Property | Value
78
78
  ---------|-------
79
- businessPhones | []
80
79
  displayName | John Doe
81
80
  givenName | John Doe
82
81
  jobTitle | Developer
@@ -91,4 +90,3 @@ m365 aad user recyclebinitem list
91
90
 
92
91
  </TabItem>
93
92
  </Tabs>
94
-
@@ -37,7 +37,7 @@ After running this command, it may take a minute before the user will reappear i
37
37
 
38
38
  ## Examples
39
39
 
40
- Restore user from the recycle bin
40
+ Restore user from the recycle bin.
41
41
 
42
42
  ```sh
43
43
  m365 aad user recyclebinitem restore --id 990e2425-f595-43bc-85ed-b89a44093793
@@ -102,7 +102,6 @@ m365 aad user recyclebinitem restore --id 990e2425-f595-43bc-85ed-b89a44093793
102
102
  Property | Value
103
103
  ---------|-------
104
104
  id | 990e2425-f595-43bc-85ed-b89a44093793
105
- businessPhones | []
106
105
  displayName | John Doe
107
106
  givenName | John
108
107
  jobTitle | Sales Manager
@@ -116,4 +115,3 @@ m365 aad user recyclebinitem restore --id 990e2425-f595-43bc-85ed-b89a44093793
116
115
 
117
116
  </TabItem>
118
117
  </Tabs>
119
-