@pnp/cli-microsoft365 7.3.0-beta.e0b37b9 → 7.4.0-beta.2324d53

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 (241) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/README.md +1 -1
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/Auth.js +3 -0
  6. package/dist/m365/app/commands/app-get.js +1 -1
  7. package/dist/m365/app/commands/permission/permission-list.js +1 -1
  8. package/dist/m365/base/PowerAutomateCommand.js +18 -0
  9. package/dist/m365/{aad/commands.js → entra/aadCommands.js} +2 -1
  10. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-add.js +12 -8
  11. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-get.js +18 -14
  12. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-list.js +6 -2
  13. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-add.js +16 -12
  14. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +116 -0
  15. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-list.js +16 -12
  16. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-remove.js +18 -14
  17. package/dist/m365/{aad → entra}/commands/app/app-add.js +25 -21
  18. package/dist/m365/{aad → entra}/commands/app/app-get.js +17 -13
  19. package/dist/m365/{aad → entra}/commands/app/app-list.js +7 -3
  20. package/dist/m365/{aad → entra}/commands/app/app-permission-add.js +16 -12
  21. package/dist/m365/{aad → entra}/commands/app/app-remove.js +17 -13
  22. package/dist/m365/{aad → entra}/commands/app/app-role-add.js +18 -14
  23. package/dist/m365/{aad → entra}/commands/app/app-role-list.js +15 -11
  24. package/dist/m365/{aad → entra}/commands/app/app-role-remove.js +17 -13
  25. package/dist/m365/{aad → entra}/commands/app/app-set.js +18 -14
  26. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-add.js +17 -13
  27. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-list.js +16 -12
  28. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-remove.js +17 -13
  29. package/dist/m365/{aad → entra}/commands/group/group-get.js +17 -13
  30. package/dist/m365/{aad → entra}/commands/group/group-list.js +16 -12
  31. package/dist/m365/{aad → entra}/commands/group/group-remove.js +19 -15
  32. package/dist/m365/{aad → entra}/commands/group/group-user-list.js +17 -13
  33. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-add.js +12 -8
  34. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-get.js +12 -8
  35. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-list.js +7 -3
  36. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-remove.js +14 -10
  37. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-set.js +12 -8
  38. package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-get.js +17 -13
  39. package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-list.js +7 -3
  40. package/dist/m365/{aad → entra}/commands/license/license-list.js +6 -2
  41. package/dist/m365/{aad → entra}/commands/m365group/m365group-add.js +19 -15
  42. package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-list.js +12 -8
  43. package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-post-list.js +16 -12
  44. package/dist/m365/{aad → entra}/commands/m365group/m365group-get.js +12 -8
  45. package/dist/m365/{aad → entra}/commands/m365group/m365group-list.js +12 -8
  46. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-clear.js +12 -8
  47. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-list.js +12 -8
  48. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-remove.js +16 -12
  49. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-restore.js +16 -12
  50. package/dist/m365/{aad → entra}/commands/m365group/m365group-remove.js +17 -13
  51. package/dist/m365/{aad → entra}/commands/m365group/m365group-renew.js +12 -8
  52. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitycounts.js +4 -0
  53. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitydetail.js +4 -0
  54. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activityfilecounts.js +4 -0
  55. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitygroupcounts.js +4 -0
  56. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitystorage.js +4 -0
  57. package/dist/m365/{aad → entra}/commands/m365group/m365group-set.js +19 -15
  58. package/dist/m365/{aad → entra}/commands/m365group/m365group-teamify.js +16 -12
  59. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-add.js +14 -13
  60. package/dist/m365/entra/commands/m365group/m365group-user-list.js +154 -0
  61. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-remove.js +14 -13
  62. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-set.js +14 -13
  63. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-add.js +12 -8
  64. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-list.js +12 -8
  65. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-remove.js +10 -6
  66. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-set.js +10 -6
  67. package/dist/m365/{aad → entra}/commands/policy/policy-list.js +16 -12
  68. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-disable.js +12 -8
  69. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-enable.js +12 -8
  70. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-get.js +6 -2
  71. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-set.js +14 -10
  72. package/dist/m365/{aad → entra}/commands/sp/sp-add.js +17 -13
  73. package/dist/m365/{aad → entra}/commands/sp/sp-get.js +16 -12
  74. package/dist/m365/{aad → entra}/commands/sp/sp-list.js +12 -8
  75. package/dist/m365/{aad → entra}/commands/user/user-add.js +18 -14
  76. package/dist/m365/{aad → entra}/commands/user/user-get.js +16 -12
  77. package/dist/m365/{aad → entra}/commands/user/user-guest-add.js +12 -8
  78. package/dist/m365/{aad → entra}/commands/user/user-hibp.js +14 -10
  79. package/dist/m365/{aad → entra}/commands/user/user-license-add.js +16 -12
  80. package/dist/m365/{aad → entra}/commands/user/user-license-list.js +16 -12
  81. package/dist/m365/{aad → entra}/commands/user/user-license-remove.js +16 -12
  82. package/dist/m365/{aad → entra}/commands/user/user-list.js +12 -8
  83. package/dist/m365/{aad → entra}/commands/user/user-password-validate.js +10 -6
  84. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-clear.js +12 -8
  85. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-list.js +6 -2
  86. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-remove.js +14 -10
  87. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-restore.js +12 -8
  88. package/dist/m365/{aad → entra}/commands/user/user-remove.js +16 -12
  89. package/dist/m365/{aad → entra}/commands/user/user-set.js +18 -14
  90. package/dist/m365/{aad → entra}/commands/user/user-signin-list.js +15 -11
  91. package/dist/m365/entra/commands.js +85 -0
  92. package/dist/m365/external/commands/connection/connection-schema-add.js +36 -3
  93. package/dist/m365/flow/commands/environment/environment-get.js +3 -3
  94. package/dist/m365/flow/commands/environment/environment-list.js +3 -3
  95. package/dist/m365/flow/commands/flow-disable.js +3 -3
  96. package/dist/m365/flow/commands/flow-enable.js +3 -3
  97. package/dist/m365/flow/commands/flow-get.js +3 -3
  98. package/dist/m365/flow/commands/flow-list.js +14 -12
  99. package/dist/m365/flow/commands/flow-remove.js +3 -3
  100. package/dist/m365/flow/commands/owner/owner-ensure.js +3 -3
  101. package/dist/m365/flow/commands/owner/owner-list.js +3 -3
  102. package/dist/m365/flow/commands/owner/owner-remove.js +3 -3
  103. package/dist/m365/flow/commands/run/run-cancel.js +3 -3
  104. package/dist/m365/flow/commands/run/run-get.js +3 -3
  105. package/dist/m365/flow/commands/run/run-list.js +8 -7
  106. package/dist/m365/flow/commands/run/run-resubmit.js +4 -4
  107. package/dist/m365/pa/commands/app/app-get.js +26 -11
  108. package/dist/m365/pa/commands/app/app-remove.js +19 -2
  109. package/dist/m365/spo/commands/group/group-member-remove.js +1 -1
  110. package/dist/m365/spo/commands/group/group-set.js +1 -1
  111. package/dist/m365/spo/commands/listitem/listitem-batch-add.js +18 -7
  112. package/dist/m365/spo/commands/page/page-add.js +7 -28
  113. package/dist/m365/spo/commands/site/site-set.js +1 -1
  114. package/dist/m365/teams/commands/app/app-install.js +1 -1
  115. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +1 -1
  116. package/dist/utils/aadAdministrativeUnit.js +4 -4
  117. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
  118. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-add.mdx +10 -4
  119. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-get.mdx +9 -3
  120. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-list.mdx +9 -3
  121. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-add.mdx +13 -7
  122. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-get.mdx +136 -0
  123. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-list.mdx +16 -10
  124. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-remove.mdx +9 -3
  125. package/docs/docs/cmd/{aad → entra}/app/app-add.mdx +44 -38
  126. package/docs/docs/cmd/{aad → entra}/app/app-get.mdx +23 -17
  127. package/docs/docs/cmd/{aad → entra}/app/app-list.mdx +11 -5
  128. package/docs/docs/cmd/entra/app/app-permission-add.mdx +68 -0
  129. package/docs/docs/cmd/entra/app/app-remove.mdx +65 -0
  130. package/docs/docs/cmd/entra/app/app-role-add.mdx +74 -0
  131. package/docs/docs/cmd/{aad → entra}/app/app-role-list.mdx +20 -14
  132. package/docs/docs/cmd/entra/app/app-role-remove.mdx +84 -0
  133. package/docs/docs/cmd/entra/app/app-set.mdx +103 -0
  134. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-add.mdx +14 -8
  135. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-list.mdx +12 -6
  136. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-remove.mdx +13 -7
  137. package/docs/docs/cmd/{aad → entra}/group/group-get.mdx +15 -9
  138. package/docs/docs/cmd/{aad → entra}/group/group-list.mdx +13 -7
  139. package/docs/docs/cmd/entra/group/group-remove.mdx +50 -0
  140. package/docs/docs/cmd/{aad → entra}/group/group-user-list.mdx +17 -11
  141. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-add.mdx +11 -5
  142. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-get.mdx +9 -3
  143. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-list.mdx +10 -4
  144. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-remove.mdx +9 -3
  145. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-set.mdx +10 -4
  146. package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-get.mdx +11 -5
  147. package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-list.mdx +10 -4
  148. package/docs/docs/cmd/{aad → entra}/license/license-list.mdx +9 -3
  149. package/docs/docs/cmd/{aad → entra}/m365group/m365group-add.mdx +17 -11
  150. package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-list.mdx +9 -3
  151. package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-post-list.mdx +10 -4
  152. package/docs/docs/cmd/{aad → entra}/m365group/m365group-get.mdx +10 -4
  153. package/docs/docs/cmd/{aad → entra}/m365group/m365group-list.mdx +13 -7
  154. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-clear.mdx +9 -3
  155. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-list.mdx +12 -6
  156. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-remove.mdx +10 -4
  157. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-restore.mdx +10 -4
  158. package/docs/docs/cmd/{aad → entra}/m365group/m365group-remove.mdx +10 -4
  159. package/docs/docs/cmd/{aad → entra}/m365group/m365group-renew.mdx +8 -2
  160. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitycounts.mdx +10 -4
  161. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitydetail.mdx +11 -5
  162. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activityfilecounts.mdx +10 -4
  163. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitygroupcounts.mdx +10 -4
  164. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitystorage.mdx +10 -4
  165. package/docs/docs/cmd/{aad → entra}/m365group/m365group-set.mdx +12 -6
  166. package/docs/docs/cmd/{aad → entra}/m365group/m365group-teamify.mdx +9 -3
  167. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-add.mdx +9 -3
  168. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +131 -0
  169. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-remove.mdx +9 -5
  170. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-set.mdx +10 -6
  171. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-add.mdx +15 -9
  172. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-list.mdx +11 -5
  173. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-remove.mdx +13 -7
  174. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-set.mdx +12 -6
  175. package/docs/docs/cmd/{aad → entra}/policy/policy-list.mdx +14 -8
  176. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-disable.mdx +9 -3
  177. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-enable.mdx +10 -4
  178. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-get.mdx +9 -3
  179. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-set.mdx +11 -5
  180. package/docs/docs/cmd/{aad → entra}/sp/sp-add.mdx +25 -19
  181. package/docs/docs/cmd/{aad → entra}/sp/sp-get.mdx +12 -6
  182. package/docs/docs/cmd/{aad → entra}/sp/sp-list.mdx +10 -4
  183. package/docs/docs/cmd/{aad → entra}/user/user-add.mdx +12 -6
  184. package/docs/docs/cmd/{aad → entra}/user/user-get.mdx +16 -10
  185. package/docs/docs/cmd/{aad → entra}/user/user-guest-add.mdx +11 -5
  186. package/docs/docs/cmd/{aad → entra}/user/user-hibp.mdx +10 -4
  187. package/docs/docs/cmd/{aad → entra}/user/user-license-add.mdx +10 -4
  188. package/docs/docs/cmd/{aad → entra}/user/user-license-list.mdx +11 -5
  189. package/docs/docs/cmd/{aad → entra}/user/user-license-remove.mdx +9 -3
  190. package/docs/docs/cmd/{aad → entra}/user/user-list.mdx +12 -6
  191. package/docs/docs/cmd/{aad → entra}/user/user-password-validate.mdx +9 -3
  192. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-clear.mdx +9 -3
  193. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-list.mdx +9 -3
  194. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-remove.mdx +9 -3
  195. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-restore.mdx +8 -2
  196. package/docs/docs/cmd/{aad → entra}/user/user-remove.mdx +9 -3
  197. package/docs/docs/cmd/{aad → entra}/user/user-set.mdx +15 -9
  198. package/docs/docs/cmd/{aad → entra}/user/user-signin-list.mdx +19 -13
  199. package/docs/docs/cmd/external/connection/connection-schema-add.mdx +14 -1
  200. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
  201. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
  202. package/docs/docs/cmd/pa/app/app-get.mdx +15 -0
  203. package/docs/docs/cmd/pa/app/app-remove.mdx +14 -0
  204. package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
  205. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
  206. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
  207. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
  208. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
  209. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
  210. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
  211. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
  212. package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
  213. package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
  214. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
  215. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +26 -4
  216. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
  217. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
  218. package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
  219. package/docs/docs/cmd/spo/page/page-set.mdx +2 -2
  220. package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
  221. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  222. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
  223. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  224. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  225. package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
  226. package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
  227. package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
  228. package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
  229. package/npm-shrinkwrap.json +186 -432
  230. package/package.json +9 -9
  231. package/dist/m365/aad/commands/m365group/m365group-user-list.js +0 -94
  232. package/docs/docs/cmd/aad/app/app-permission-add.mdx +0 -62
  233. package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
  234. package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
  235. package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
  236. package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
  237. package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
  238. package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
  239. /package/dist/m365/{aad → entra}/commands/approleassignment/ServicePrincipal.js +0 -0
  240. /package/dist/m365/{aad → entra}/commands/m365group/GroupExtended.js +0 -0
  241. /package/dist/m365/{aad → entra}/commands/siteclassification/SiteClassificationSettings.js +0 -0
@@ -4,7 +4,6 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _SpoPageAddCommand_instances, _SpoPageAddCommand_initTelemetry, _SpoPageAddCommand_initOptions, _SpoPageAddCommand_initValidators;
7
- import { Auth } from '../../../../Auth.js';
8
7
  import { cli } from '../../../../cli/cli.js';
9
8
  import request from '../../../../request.js';
10
9
  import { formatting } from '../../../../utils/formatting.js';
@@ -31,11 +30,9 @@ class SpoPageAddCommand extends SpoCommand {
31
30
  __classPrivateFieldGet(this, _SpoPageAddCommand_instances, "m", _SpoPageAddCommand_initValidators).call(this);
32
31
  }
33
32
  async commandAction(logger, args) {
34
- const resource = Auth.getResourceFromUrl(args.options.webUrl);
35
33
  let requestDigest = '';
36
34
  let itemId = '';
37
35
  let pageName = args.options.name;
38
- const serverRelativeSiteUrl = urlUtil.getServerRelativeSiteUrl(args.options.webUrl);
39
36
  const fileNameWithoutExtension = pageName.replace('.aspx', '');
40
37
  let bannerImageUrl = '';
41
38
  let canvasContent1 = '';
@@ -52,39 +49,22 @@ class SpoPageAddCommand extends SpoCommand {
52
49
  const reqDigest = await spo.getRequestDigest(args.options.webUrl);
53
50
  requestDigest = reqDigest.FormDigestValue;
54
51
  let requestOptions = {
55
- url: `${args.options.webUrl}/_api/web/GetFolderByServerRelativePath(DecodedUrl='${serverRelativeSiteUrl}/sitepages')/files/AddTemplateFile`,
52
+ url: `${args.options.webUrl}/_api/sitepages/pages`,
53
+ responseType: 'json',
56
54
  headers: {
57
- 'X-RequestDigest': requestDigest,
58
55
  'content-type': 'application/json;odata=nometadata',
59
56
  accept: 'application/json;odata=nometadata'
60
57
  },
61
58
  data: {
62
- urlOfFile: `${serverRelativeSiteUrl}/sitepages/${pageName}`,
63
- templateFileType: 3
64
- },
65
- responseType: 'json'
59
+ PageLayoutType: args.options.layoutType || 'Article',
60
+ Name: pageName,
61
+ PromotedState: args.options.promoteAs === 'NewsPage' ? 2 : 0,
62
+ Title: pageTitle
63
+ }
66
64
  };
67
65
  const template = await request.post(requestOptions);
68
66
  itemId = template.UniqueId;
69
67
  const listItemId = await this.getFileListItemId(args.options.webUrl, serverRelativeFileUrl);
70
- const layoutType = args.options.layoutType || 'Article';
71
- const listItemSetOptions = {
72
- webUrl: args.options.webUrl,
73
- listUrl: listServerRelativeUrl,
74
- id: listItemId,
75
- systemUpdate: true,
76
- ContentTypeId: '0x0101009D1CB255DA76424F860D91F20E6C4118',
77
- Title: pageTitle,
78
- ClientSideApplicationId: 'b6917cb1-93a0-4b97-a84d-7cf49975d4ec',
79
- PageLayoutType: layoutType,
80
- verbose: this.verbose,
81
- debug: this.debug
82
- };
83
- if (args.options.layoutType === 'Article') {
84
- listItemSetOptions.PromotedState = 0;
85
- listItemSetOptions.BannerImageUrl = `${resource}/_layouts/15/images/sitepagethumbnail.png, /_layouts/15/images/sitepagethumbnail.png`;
86
- }
87
- await cli.executeCommand(spoListItemSetCommand, { options: { ...listItemSetOptions, _: [] } });
88
68
  const pageProps = await Page.checkout(pageName, args.options.webUrl, logger, this.debug, this.verbose);
89
69
  if (pageProps) {
90
70
  pageId = pageProps.Id;
@@ -117,7 +97,6 @@ class SpoPageAddCommand extends SpoCommand {
117
97
  listUrl: listServerRelativeUrl,
118
98
  id: listItemId,
119
99
  systemUpdate: true,
120
- PromotedState: 2,
121
100
  FirstPublishedDate: new Date().toISOString(),
122
101
  verbose: this.verbose,
123
102
  debug: this.debug
@@ -12,7 +12,7 @@ import { formatting } from '../../../../utils/formatting.js';
12
12
  import { spo } from '../../../../utils/spo.js';
13
13
  import { urlUtil } from '../../../../utils/urlUtil.js';
14
14
  import { validation } from '../../../../utils/validation.js';
15
- import aadM365GroupSetCommand from '../../../aad/commands/m365group/m365group-set.js';
15
+ import aadM365GroupSetCommand from '../../../entra/commands/m365group/m365group-set.js';
16
16
  import SpoCommand from '../../../base/SpoCommand.js';
17
17
  import commands from '../../commands.js';
18
18
  import { SharingCapabilities } from '../site/SharingCapabilities.js';
@@ -8,7 +8,7 @@ import { cli } from '../../../../cli/cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import { formatting } from '../../../../utils/formatting.js';
10
10
  import { validation } from '../../../../utils/validation.js';
11
- import aadUserGetCommand from '../../../aad/commands/user/user-get.js';
11
+ import aadUserGetCommand from '../../../entra/commands/user/user-get.js';
12
12
  import GraphCommand from '../../../base/GraphCommand.js';
13
13
  import commands from '../../commands.js';
14
14
  class TeamsAppInstallCommand extends GraphCommand {
@@ -9,7 +9,7 @@ import { cli } from '../../../../cli/cli.js';
9
9
  import { accessToken } from '../../../../utils/accessToken.js';
10
10
  import { odata } from '../../../../utils/odata.js';
11
11
  import { validation } from '../../../../utils/validation.js';
12
- import aadUserGetCommand from '../../../aad/commands/user/user-get.js';
12
+ import aadUserGetCommand from '../../../entra/commands/user/user-get.js';
13
13
  import GraphCommand from "../../../base/GraphCommand.js";
14
14
  import commands from '../../commands.js';
15
15
  class TeamsMeetingAttendancereportListCommand extends GraphCommand {
@@ -1,7 +1,6 @@
1
- import { odata } from "./odata.js";
2
- import { formatting } from "./formatting.js";
3
- import { cli } from "../cli/cli.js";
4
- const graphResource = 'https://graph.microsoft.com';
1
+ import { odata } from './odata.js';
2
+ import { formatting } from './formatting.js';
3
+ import { cli } from '../cli/cli.js';
5
4
  export const aadAdministrativeUnit = {
6
5
  /**
7
6
  * Get an administrative unit by its display name.
@@ -10,6 +9,7 @@ export const aadAdministrativeUnit = {
10
9
  * @throws Error when administrative unit was not found.
11
10
  */
12
11
  async getAdministrativeUnitByDisplayName(displayName) {
12
+ const graphResource = 'https://graph.microsoft.com';
13
13
  const administrativeUnits = await odata.getAllItems(`${graphResource}/v1.0/directory/administrativeUnits?$filter=displayName eq '${formatting.encodeQueryParameter(displayName)}'`);
14
14
  if (administrativeUnits.length === 0) {
15
15
  throw `The specified administrative unit '${displayName}' does not exist.`;
@@ -47,7 +47,7 @@ The predefined card is automatically adjusted based on which options have been s
47
47
 
48
48
  If your custom card is a card template (card with placeholders like `${title}`), you can fill it with data either by specifying the complete data object using the `cardData` option, or by passing any number of arbitrary options that will be mapped onto the card. The arbitrary properties should not match any of the global options like `output`, `query`, `debug`, etc. Data options like `title`, `description`, `imageUrl` and `actionUrl` will be mapped onto the card as well.
49
49
 
50
- :::warning Escaping JSON in PowerShell
50
+ :::warning[Escaping JSON in PowerShell]
51
51
 
52
52
  When using the `--card` and `--cardData` options it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
53
53
 
@@ -2,12 +2,18 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # aad administrativeunit add
5
+ # entra administrativeunit add
6
6
 
7
7
  Creates a new administrative unit
8
8
 
9
9
  ## Usage
10
10
 
11
+ ```sh
12
+ m365 entra administrativeunit add [options]
13
+ ```
14
+
15
+ ## Alias
16
+
11
17
  ```sh
12
18
  m365 aad administrativeunit add [options]
13
19
  ```
@@ -40,19 +46,19 @@ To use this command you must be either **Global Administrator** or **Privileged
40
46
  Create an administrative unit with a specific display name
41
47
 
42
48
  ```sh
43
- m365 aad administrativeunit add --displayName 'Marketing Division'
49
+ m365 entra administrativeunit add --displayName 'Marketing Division'
44
50
  ```
45
51
 
46
52
  Create an administrative unit with a specific display name and description
47
53
 
48
54
  ```sh
49
- m365 aad administrativeunit add --displayName 'Marketing Division' --description 'Marketing department administration'
55
+ m365 entra administrativeunit add --displayName 'Marketing Division' --description 'Marketing department administration'
50
56
  ```
51
57
 
52
58
  Create a hidden administrative unit with a specific display name
53
59
 
54
60
  ```sh
55
- m365 aad administrativeunit add --displayName 'Marketing Division' --hiddenMembership
61
+ m365 entra administrativeunit add --displayName 'Marketing Division' --hiddenMembership
56
62
  ```
57
63
 
58
64
  ## Response
@@ -2,12 +2,18 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # aad administrativeunit get
5
+ # entra administrativeunit get
6
6
 
7
7
  Gets information about a specific administrative unit
8
8
 
9
9
  ## Usage
10
10
 
11
+ ```sh
12
+ m365 entra administrativeunit get [options]
13
+ ```
14
+
15
+ ## Alias
16
+
11
17
  ```sh
12
18
  m365 aad administrativeunit get [options]
13
19
  ```
@@ -29,13 +35,13 @@ m365 aad administrativeunit get [options]
29
35
  Get information about the administrative unit by its id
30
36
 
31
37
  ```sh
32
- m365 aad administrativeunit get --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
38
+ m365 entra administrativeunit get --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
33
39
  ```
34
40
 
35
41
  Get information about the administrative unit by its display name
36
42
 
37
43
  ```sh
38
- m365 aad administrativeunit get --displayName 'Marketing Division'
44
+ m365 entra administrativeunit get --displayName 'Marketing Division'
39
45
  ```
40
46
 
41
47
  ## Response
@@ -2,12 +2,18 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # aad administrativeunit list
5
+ # entra administrativeunit list
6
6
 
7
7
  Retrieves a list of administrative units
8
8
 
9
9
  ## Usage
10
10
 
11
+ ```sh
12
+ m365 entra administrativeunit list [options]
13
+ ```
14
+
15
+ ## Alias
16
+
11
17
  ```sh
12
18
  m365 aad administrativeunit list [options]
13
19
  ```
@@ -21,7 +27,7 @@ m365 aad administrativeunit list [options]
21
27
  Retrieve a list of administrative units
22
28
 
23
29
  ```sh
24
- m365 aad administrativeunit list
30
+ m365 entra administrativeunit list
25
31
  ```
26
32
 
27
33
  ## Response
@@ -65,7 +71,7 @@ m365 aad administrativeunit list
65
71
  <TabItem value="Markdown">
66
72
 
67
73
  ```md
68
- # aad administrativeunit list
74
+ # entra administrativeunit list
69
75
 
70
76
  Date: 2023-10-16
71
77
 
@@ -2,12 +2,18 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # aad administrativeunit member add
5
+ # entra administrativeunit member add
6
6
 
7
7
  Add a member (user, group, or device) to an administrative unit
8
8
 
9
9
  ## Usage
10
10
 
11
+ ```sh
12
+ m365 entra administrativeunit member add [options]
13
+ ```
14
+
15
+ ## Alias
16
+
11
17
  ```sh
12
18
  m365 aad administrativeunit member add [options]
13
19
  ```
@@ -55,37 +61,37 @@ To use this command you must be either **Global Administrator** or **Privileged
55
61
  Add a single user specified by id to an administrative unit specified by id
56
62
 
57
63
  ```sh
58
- m365 aad administrativeunit member add --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --userId 1caf7dcd-7e83-4c3a-94f7-932a1299c844
64
+ m365 entra administrativeunit member add --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --userId 1caf7dcd-7e83-4c3a-94f7-932a1299c844
59
65
  ```
60
66
 
61
67
  Add a single user specified by user principal name to an administrative unit specified by name
62
68
 
63
69
  ```sh
64
- m365 aad administrativeunit member add --administrativeUnitName 'Marketing Division' --userName john.doe@contoso.com
70
+ m365 entra administrativeunit member add --administrativeUnitName 'Marketing Division' --userName john.doe@contoso.com
65
71
  ```
66
72
 
67
73
  Add a single group specified by id to an administrative unit specified by id
68
74
 
69
75
  ```sh
70
- m365 aad administrativeunit member add --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --groupId b2307a39-e878-458b-bc90-03bc578531d6
76
+ m365 entra administrativeunit member add --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --groupId b2307a39-e878-458b-bc90-03bc578531d6
71
77
  ```
72
78
 
73
79
  Add a single group specified by name to an administrative unit specified by name
74
80
 
75
81
  ```sh
76
- m365 aad administrativeunit member add --administrativeUnitName 'Marketing Division' --groupName 'Marketing Group'
82
+ m365 entra administrativeunit member add --administrativeUnitName 'Marketing Division' --groupName 'Marketing Group'
77
83
  ```
78
84
 
79
85
  Add a single device specified by id to an administrative unit specified by id
80
86
 
81
87
  ```sh
82
- m365 aad administrativeunit member add --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --deviceId 810c84a8-4a9e-49e6-bf7d-12d183f40d01
88
+ m365 entra administrativeunit member add --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --deviceId 810c84a8-4a9e-49e6-bf7d-12d183f40d01
83
89
  ```
84
90
 
85
91
  Add a single device specified by name to an administrative unit specified by name
86
92
 
87
93
  ```sh
88
- m365 aad administrativeunit member add --administrativeUnitName 'Marketing Division' --deviceName 'JohnDoe-PC'
94
+ m365 entra administrativeunit member add --administrativeUnitName 'Marketing Division' --deviceName 'JohnDoe-PC'
89
95
  ```
90
96
 
91
97
  ## More information
@@ -0,0 +1,136 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # entra administrativeunit member get
6
+
7
+ Retrieves info about a specific member of an administrative unit
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 entra administrativeunit member get [options]
13
+ ```
14
+
15
+ ## Alias
16
+
17
+ ```sh
18
+ m365 aad administrativeunit member get [options]
19
+ ```
20
+
21
+ ## Options
22
+
23
+ ```md definition-list
24
+ `-i, --id <id>`
25
+ : The id of a member to be retrieved.
26
+
27
+ `-u, --administrativeUnitId [administrativeUnitId]`
28
+ : The id of the administrative unit. Specify either `administrativeUnitId` or `administrativeUnitName`.
29
+
30
+ `-n, --administrativeUnitName [administrativeUnitName]`
31
+ : The name of the administrative unit. Specify either `administrativeUnitId` or `administrativeUnitName`.
32
+
33
+ `-p, --properties [properties]`
34
+ : Comma-separated list of properties to retrieve.
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Remarks
40
+
41
+ To get the member of a hidden membership in an administrative unit, the `Member.Read.Hidden` permission is required.
42
+
43
+ When the `properties` option includes values with a `/`, for example: `manager/displayName`, an additional `$expand` query parameter will be included on manager.
44
+
45
+ ## Examples
46
+
47
+ Get information about a member specified by id from an administrative unit specified by id
48
+
49
+ ```sh
50
+ m365 entra administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
51
+ ```
52
+
53
+ Get information about a member specified by id from an administrative unit specified by name
54
+
55
+ ```sh
56
+ m365 entra administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitName 'Marketing Division'
57
+ ```
58
+
59
+ ## Response
60
+
61
+ <Tabs>
62
+ <TabItem value="JSON">
63
+
64
+ ```json
65
+ {
66
+ "id": "64131a70-beb9-4ccb-b590-4401e58446ec",
67
+ "businessPhones": [
68
+ "+20 255501070"
69
+ ],
70
+ "displayName": "Pradeep Gupta",
71
+ "givenName": "Pradeep",
72
+ "jobTitle": "Accountant",
73
+ "mail": "PradeepG@contoso.com",
74
+ "mobilePhone": null,
75
+ "officeLocation": "98/2202",
76
+ "preferredLanguage": "en-US",
77
+ "surname": "Gupta",
78
+ "userPrincipalName": "PradeepG@contoso.com",
79
+ "type": "user"
80
+ }
81
+ ```
82
+
83
+ </TabItem>
84
+ <TabItem value="Text">
85
+
86
+ ```text
87
+ businessPhones : ["+20 255501070"]
88
+ displayName : Pradeep Gupta
89
+ givenName : Pradeep
90
+ id : 64131a70-beb9-4ccb-b590-4401e58446ec
91
+ jobTitle : Accountant
92
+ mail : PradeepG@contoso.com
93
+ mobilePhone : null
94
+ officeLocation : 98/2202
95
+ preferredLanguage: en-US
96
+ surname : Gupta
97
+ type : user
98
+ userPrincipalName: PradeepG@contoso.com
99
+ ```
100
+
101
+ </TabItem>
102
+ <TabItem value="CSV">
103
+
104
+ ```csv
105
+ id,displayName,givenName,jobTitle,mail,officeLocation,preferredLanguage,surname,userPrincipalName,type
106
+ 64131a70-beb9-4ccb-b590-4401e58446ec,Pradeep Gupta,Pradeep,Accountant,PradeepG@contoso.com,98/2202,en-US,Gupta,PradeepG@contoso.com,user
107
+ ```
108
+
109
+ </TabItem>
110
+ <TabItem value="Markdown">
111
+
112
+ ```md
113
+ Date: 11/10/2023
114
+
115
+ ## Pradeep Gupta (64131a70-beb9-4ccb-b590-4401e58446ec)
116
+
117
+ Property | Value
118
+ ---------|-------
119
+ id | 64131a70-beb9-4ccb-b590-4401e58446ec
120
+ displayName | Pradeep Gupta
121
+ givenName | Pradeep
122
+ jobTitle | Accountant
123
+ mail | PradeepG@contoso.com
124
+ officeLocation | 98/2202
125
+ preferredLanguage | en-US
126
+ surname | Gupta
127
+ userPrincipalName | PradeepG@contoso.com
128
+ type | user
129
+ ```
130
+
131
+ </TabItem>
132
+ </Tabs>
133
+
134
+ ## More information
135
+
136
+ - Administrative units: https://learn.microsoft.com/entra/identity/role-based-access-control/administrative-units
@@ -2,12 +2,18 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # aad administrativeunit member list
5
+ # entra administrativeunit member list
6
6
 
7
7
  Retrieves members (users, groups, or devices) of an administrative unit
8
8
 
9
9
  ## Usage
10
10
 
11
+ ```sh
12
+ m365 entra administrativeunit member list [options]
13
+ ```
14
+
15
+ ## Alias
16
+
11
17
  ```sh
12
18
  m365 aad administrativeunit member list [options]
13
19
  ```
@@ -44,55 +50,55 @@ When the `properties` option includes values with a `/`, for example: `manager/d
44
50
  List members of an administrative unit specified by id
45
51
 
46
52
  ```sh
47
- m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
53
+ m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
48
54
  ```
49
55
 
50
56
  List members of an administrative unit specified by id. For each one return the `id` and the `displayName`
51
57
 
52
58
  ```sh
53
- m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --properties 'id,displayName'
59
+ m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --properties 'id,displayName'
54
60
  ```
55
61
 
56
62
  List members of an administrative unit specified by name
57
63
 
58
64
  ```sh
59
- m365 aad administrativeunit member list --administrativeUnitName 'Marketing Division'
65
+ m365 entra administrativeunit member list --administrativeUnitName 'Marketing Division'
60
66
  ```
61
67
 
62
68
  List users of an administrative unit specified by id
63
69
 
64
70
  ```sh
65
- m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type user
71
+ m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type user
66
72
  ```
67
73
 
68
74
  List users of an administrative unit specified by id that are guest users
69
75
 
70
76
  ```sh
71
- m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type user --filter "userType eq 'Guest'"
77
+ m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type user --filter "userType eq 'Guest'"
72
78
  ```
73
79
 
74
80
  List groups of an administrative unit specified by id
75
81
 
76
82
  ```sh
77
- m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type group
83
+ m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type group
78
84
  ```
79
85
 
80
86
  List groups of an administrative unit specified by id and include owners names, for each member return the `id` and the `displayName`
81
87
 
82
88
  ```sh
83
- m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type group --properties 'id,displayName,owners/displayName'
89
+ m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type group --properties 'id,displayName,owners/displayName'
84
90
  ```
85
91
 
86
92
  List devices of an administrative unit specified by id
87
93
 
88
94
  ```sh
89
- m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type device
95
+ m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type device
90
96
  ```
91
97
 
92
98
  List devices with linux operating system of an administrative unit specified by id
93
99
 
94
100
  ```sh
95
- m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type device --filter "operatingSystem eq 'linux'"
101
+ m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type device --filter "operatingSystem eq 'linux'"
96
102
  ```
97
103
 
98
104
  ## Response
@@ -1,11 +1,17 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
2
 
3
- # aad administrativeunit remove
3
+ # entra administrativeunit remove
4
4
 
5
5
  Removes an administrative unit
6
6
 
7
7
  ## Usage
8
8
 
9
+ ```sh
10
+ m365 entra administrativeunit remove [options]
11
+ ```
12
+
13
+ ## Alias
14
+
9
15
  ```sh
10
16
  m365 aad administrativeunit remove [options]
11
17
  ```
@@ -38,13 +44,13 @@ To use this command you must be either **Global Administrator** or **Privileged
38
44
  Remove an administrative unit by its id
39
45
 
40
46
  ```sh
41
- m365 aad administrativeunit remove --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
47
+ m365 entra administrativeunit remove --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
42
48
  ```
43
49
 
44
50
  Remove an administrative unit by it displayName
45
51
 
46
52
  ```sh
47
- m365 aad administrativeunit remove --displayName 'Marketing Division'
53
+ m365 entra administrativeunit remove --displayName 'Marketing Division'
48
54
  ```
49
55
 
50
56
  ## Response