@pnp/cli-microsoft365 7.4.0-beta.fce7b64 → 7.5.0-beta.0ae7da4

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 (348) hide show
  1. package/.devcontainer/Dockerfile +2 -2
  2. package/.eslintrc.cjs +7 -0
  3. package/Dockerfile +2 -5
  4. package/README.md +1 -1
  5. package/allCommands.json +1 -1
  6. package/allCommandsFull.json +1 -1
  7. package/dist/Auth.js +2 -1
  8. package/dist/appInsights.js +2 -0
  9. package/dist/cli/cli.js +1 -0
  10. package/dist/m365/app/commands/app-get.js +2 -2
  11. package/dist/m365/app/commands/permission/permission-list.js +1 -1
  12. package/dist/m365/{aad/commands.js → entra/aadCommands.js} +3 -1
  13. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-add.js +12 -8
  14. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-get.js +20 -16
  15. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-list.js +6 -2
  16. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-add.js +24 -20
  17. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-get.js +18 -14
  18. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-list.js +18 -14
  19. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-remove.js +20 -16
  20. package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +102 -0
  21. package/dist/m365/{aad → entra}/commands/app/app-add.js +25 -21
  22. package/dist/m365/{aad → entra}/commands/app/app-get.js +17 -13
  23. package/dist/m365/{aad → entra}/commands/app/app-list.js +7 -3
  24. package/dist/m365/{aad → entra}/commands/app/app-permission-add.js +19 -19
  25. package/dist/m365/entra/commands/app/app-permission-list.js +182 -0
  26. package/dist/m365/{aad → entra}/commands/app/app-remove.js +17 -13
  27. package/dist/m365/{aad → entra}/commands/app/app-role-add.js +18 -14
  28. package/dist/m365/{aad → entra}/commands/app/app-role-list.js +15 -11
  29. package/dist/m365/{aad → entra}/commands/app/app-role-remove.js +17 -13
  30. package/dist/m365/{aad → entra}/commands/app/app-set.js +18 -14
  31. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-add.js +17 -13
  32. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-list.js +16 -12
  33. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-remove.js +17 -13
  34. package/dist/m365/entra/commands/group/group-add.js +224 -0
  35. package/dist/m365/{aad → entra}/commands/group/group-get.js +20 -16
  36. package/dist/m365/{aad → entra}/commands/group/group-list.js +16 -12
  37. package/dist/m365/{aad → entra}/commands/group/group-remove.js +21 -17
  38. package/dist/m365/entra/commands/group/group-user-add.js +145 -0
  39. package/dist/m365/{aad → entra}/commands/group/group-user-list.js +19 -15
  40. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-add.js +12 -8
  41. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-get.js +12 -8
  42. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-list.js +7 -3
  43. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-remove.js +14 -10
  44. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-set.js +12 -8
  45. package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-get.js +17 -13
  46. package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-list.js +7 -3
  47. package/dist/m365/{aad → entra}/commands/license/license-list.js +6 -2
  48. package/dist/m365/{aad → entra}/commands/m365group/m365group-add.js +19 -15
  49. package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-list.js +14 -10
  50. package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-post-list.js +19 -15
  51. package/dist/m365/{aad → entra}/commands/m365group/m365group-get.js +15 -11
  52. package/dist/m365/{aad → entra}/commands/m365group/m365group-list.js +12 -8
  53. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-clear.js +12 -8
  54. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-list.js +12 -8
  55. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-remove.js +16 -12
  56. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-restore.js +16 -12
  57. package/dist/m365/{aad → entra}/commands/m365group/m365group-remove.js +19 -15
  58. package/dist/m365/{aad → entra}/commands/m365group/m365group-renew.js +14 -10
  59. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitycounts.js +4 -0
  60. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitydetail.js +4 -0
  61. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activityfilecounts.js +4 -0
  62. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitygroupcounts.js +4 -0
  63. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitystorage.js +4 -0
  64. package/dist/m365/{aad → entra}/commands/m365group/m365group-set.js +21 -17
  65. package/dist/m365/{aad → entra}/commands/m365group/m365group-teamify.js +18 -14
  66. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-add.js +16 -15
  67. package/dist/m365/entra/commands/m365group/m365group-user-list.js +154 -0
  68. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-remove.js +16 -15
  69. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-set.js +16 -15
  70. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-add.js +12 -8
  71. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-list.js +12 -8
  72. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-remove.js +10 -6
  73. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-set.js +10 -6
  74. package/dist/m365/{aad → entra}/commands/policy/policy-list.js +16 -12
  75. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-disable.js +12 -8
  76. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-enable.js +12 -8
  77. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-get.js +6 -2
  78. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-set.js +14 -10
  79. package/dist/m365/{aad → entra}/commands/sp/sp-add.js +17 -13
  80. package/dist/m365/{aad → entra}/commands/sp/sp-get.js +16 -12
  81. package/dist/m365/{aad → entra}/commands/sp/sp-list.js +12 -8
  82. package/dist/m365/{aad → entra}/commands/user/user-add.js +18 -14
  83. package/dist/m365/entra/commands/user/user-get.js +115 -0
  84. package/dist/m365/{aad → entra}/commands/user/user-guest-add.js +12 -8
  85. package/dist/m365/{aad → entra}/commands/user/user-hibp.js +14 -10
  86. package/dist/m365/{aad → entra}/commands/user/user-license-add.js +16 -12
  87. package/dist/m365/{aad → entra}/commands/user/user-license-list.js +16 -12
  88. package/dist/m365/{aad → entra}/commands/user/user-license-remove.js +16 -12
  89. package/dist/m365/{aad → entra}/commands/user/user-list.js +12 -8
  90. package/dist/m365/{aad → entra}/commands/user/user-password-validate.js +10 -6
  91. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-clear.js +12 -8
  92. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-list.js +6 -2
  93. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-remove.js +14 -10
  94. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-restore.js +12 -8
  95. package/dist/m365/{aad → entra}/commands/user/user-remove.js +16 -12
  96. package/dist/m365/{aad → entra}/commands/user/user-set.js +18 -14
  97. package/dist/m365/{aad → entra}/commands/user/user-signin-list.js +15 -11
  98. package/dist/m365/entra/commands.js +89 -0
  99. package/dist/m365/external/commands/connection/connection-doctor.js +2 -1
  100. package/dist/m365/external/commands/connection/connection-urltoitemresolver-add.js +69 -0
  101. package/dist/m365/external/commands.js +1 -0
  102. package/dist/m365/file/commands/file-copy.js +151 -0
  103. package/dist/m365/file/commands.js +1 -0
  104. package/dist/m365/flow/commands/owner/owner-ensure.js +4 -4
  105. package/dist/m365/flow/commands/owner/owner-remove.js +4 -4
  106. package/dist/m365/flow/commands/run/run-get.js +52 -13
  107. package/dist/m365/onenote/commands/notebook/notebook-list.js +2 -2
  108. package/dist/m365/onenote/commands/page/page-list.js +2 -2
  109. package/dist/m365/pa/commands/app/app-get.js +26 -11
  110. package/dist/m365/pa/commands/app/app-owner-set.js +2 -2
  111. package/dist/m365/pa/commands/app/app-permission-ensure.js +4 -4
  112. package/dist/m365/pa/commands/app/app-permission-remove.js +4 -4
  113. package/dist/m365/pa/commands/app/app-remove.js +19 -2
  114. package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
  115. package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
  116. package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
  117. package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
  118. package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
  119. package/dist/m365/planner/commands/plan/plan-add.js +2 -2
  120. package/dist/m365/planner/commands/plan/plan-get.js +2 -2
  121. package/dist/m365/planner/commands/plan/plan-list.js +2 -2
  122. package/dist/m365/planner/commands/plan/plan-remove.js +2 -2
  123. package/dist/m365/planner/commands/plan/plan-set.js +2 -2
  124. package/dist/m365/planner/commands/roster/roster-member-add.js +2 -2
  125. package/dist/m365/planner/commands/roster/roster-member-get.js +2 -2
  126. package/dist/m365/planner/commands/roster/roster-member-remove.js +2 -2
  127. package/dist/m365/planner/commands/task/task-add.js +2 -2
  128. package/dist/m365/planner/commands/task/task-get.js +2 -2
  129. package/dist/m365/planner/commands/task/task-list.js +2 -2
  130. package/dist/m365/planner/commands/task/task-remove.js +2 -2
  131. package/dist/m365/planner/commands/task/task-set.js +2 -2
  132. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -1
  133. package/dist/m365/spo/commands/file/file-add.js +12 -8
  134. package/dist/m365/spo/commands/file/file-checkin.js +4 -1
  135. package/dist/m365/spo/commands/file/file-checkout-undo.js +5 -1
  136. package/dist/m365/spo/commands/file/file-checkout.js +4 -1
  137. package/dist/m365/spo/commands/file/file-copy.js +5 -1
  138. package/dist/m365/spo/commands/file/file-get.js +5 -1
  139. package/dist/m365/spo/commands/file/file-list.js +5 -1
  140. package/dist/m365/spo/commands/file/file-move.js +5 -1
  141. package/dist/m365/spo/commands/file/file-remove.js +5 -1
  142. package/dist/m365/spo/commands/file/file-rename.js +5 -1
  143. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +4 -1
  144. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +5 -1
  145. package/dist/m365/spo/commands/file/file-roleassignment-add.js +4 -1
  146. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +5 -1
  147. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +5 -1
  148. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +5 -1
  149. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +6 -3
  150. package/dist/m365/spo/commands/file/file-sharinglink-add.js +4 -1
  151. package/dist/m365/spo/commands/file/file-sharinglink-clear.js +5 -1
  152. package/dist/m365/spo/commands/file/file-sharinglink-get.js +4 -1
  153. package/dist/m365/spo/commands/file/file-sharinglink-list.js +4 -1
  154. package/dist/m365/spo/commands/file/file-sharinglink-remove.js +5 -1
  155. package/dist/m365/spo/commands/file/file-sharinglink-set.js +4 -1
  156. package/dist/m365/spo/commands/file/file-version-clear.js +6 -2
  157. package/dist/m365/spo/commands/file/file-version-get.js +1 -1
  158. package/dist/m365/spo/commands/file/file-version-list.js +4 -1
  159. package/dist/m365/spo/commands/file/file-version-remove.js +2 -1
  160. package/dist/m365/spo/commands/file/file-version-restore.js +2 -1
  161. package/dist/m365/spo/commands/folder/folder-add.js +4 -1
  162. package/dist/m365/spo/commands/folder/folder-copy.js +5 -1
  163. package/dist/m365/spo/commands/folder/folder-get.js +4 -1
  164. package/dist/m365/spo/commands/folder/folder-list.js +6 -2
  165. package/dist/m365/spo/commands/folder/folder-move.js +5 -1
  166. package/dist/m365/spo/commands/folder/folder-remove.js +5 -1
  167. package/dist/m365/spo/commands/folder/folder-rename.js +4 -1
  168. package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +4 -1
  169. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +5 -1
  170. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +4 -1
  171. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +6 -2
  172. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +5 -1
  173. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +5 -1
  174. package/dist/m365/spo/commands/group/group-member-add.js +25 -8
  175. package/dist/m365/spo/commands/group/group-member-remove.js +29 -12
  176. package/dist/m365/spo/commands/group/group-set.js +2 -2
  177. package/dist/m365/spo/commands/site/site-remove.js +2 -2
  178. package/dist/m365/spo/commands/site/site-set.js +2 -2
  179. package/dist/m365/spo/commands/user/user-ensure.js +17 -7
  180. package/dist/m365/teams/commands/app/app-install.js +2 -2
  181. package/dist/m365/teams/commands/channel/channel-get.js +2 -2
  182. package/dist/m365/teams/commands/channel/channel-list.js +2 -2
  183. package/dist/m365/teams/commands/channel/channel-member-add.js +2 -2
  184. package/dist/m365/teams/commands/channel/channel-member-list.js +2 -2
  185. package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -2
  186. package/dist/m365/teams/commands/channel/channel-member-set.js +2 -2
  187. package/dist/m365/teams/commands/channel/channel-remove.js +2 -2
  188. package/dist/m365/teams/commands/channel/channel-set.js +2 -2
  189. package/dist/m365/teams/commands/meeting/meeting-add.js +2 -2
  190. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +2 -2
  191. package/dist/m365/teams/commands/meeting/meeting-get.js +3 -3
  192. package/dist/m365/teams/commands/meeting/meeting-list.js +2 -2
  193. package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +2 -2
  194. package/dist/m365/teams/commands/tab/tab-get.js +2 -2
  195. package/dist/m365/teams/commands/team/team-add.js +6 -6
  196. package/dist/m365/teams/commands/team/team-archive.js +2 -2
  197. package/dist/m365/teams/commands/team/team-get.js +2 -2
  198. package/dist/m365/teams/commands/team/team-remove.js +2 -2
  199. package/dist/m365/teams/commands/team/team-unarchive.js +2 -2
  200. package/dist/m365/teams/commands/user/user-app-add.js +35 -3
  201. package/dist/request.js +16 -0
  202. package/dist/utils/{aadAdministrativeUnit.js → entraAdministrativeUnit.js} +2 -2
  203. package/dist/utils/{aadDevice.js → entraDevice.js} +2 -2
  204. package/dist/utils/{aadGroup.js → entraGroup.js} +2 -2
  205. package/dist/utils/{aadUser.js → entraUser.js} +38 -2
  206. package/dist/utils/md.js +2 -2
  207. package/dist/utils/roleAssignment.js +42 -0
  208. package/dist/utils/roleDefinition.js +24 -0
  209. package/dist/utils/spo.js +24 -2
  210. package/dist/utils/urlUtil.js +31 -0
  211. package/dist/utils/validation.js +8 -0
  212. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
  213. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-add.mdx +10 -4
  214. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-get.mdx +9 -3
  215. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-list.mdx +9 -3
  216. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-add.mdx +13 -7
  217. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-get.mdx +9 -3
  218. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-list.mdx +16 -10
  219. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-remove.mdx +9 -3
  220. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-roleassignment-add.mdx +116 -0
  221. package/docs/docs/cmd/{aad → entra}/app/app-add.mdx +44 -38
  222. package/docs/docs/cmd/{aad → entra}/app/app-get.mdx +23 -17
  223. package/docs/docs/cmd/{aad → entra}/app/app-list.mdx +11 -5
  224. package/docs/docs/cmd/entra/app/app-permission-add.mdx +68 -0
  225. package/docs/docs/cmd/entra/app/app-permission-list.mdx +105 -0
  226. package/docs/docs/cmd/entra/app/app-remove.mdx +65 -0
  227. package/docs/docs/cmd/entra/app/app-role-add.mdx +74 -0
  228. package/docs/docs/cmd/{aad → entra}/app/app-role-list.mdx +20 -14
  229. package/docs/docs/cmd/entra/app/app-role-remove.mdx +84 -0
  230. package/docs/docs/cmd/entra/app/app-set.mdx +103 -0
  231. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-add.mdx +14 -8
  232. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-list.mdx +12 -6
  233. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-remove.mdx +13 -7
  234. package/docs/docs/cmd/entra/group/group-add.mdx +231 -0
  235. package/docs/docs/cmd/{aad → entra}/group/group-get.mdx +15 -9
  236. package/docs/docs/cmd/{aad → entra}/group/group-list.mdx +13 -7
  237. package/docs/docs/cmd/entra/group/group-remove.mdx +50 -0
  238. package/docs/docs/cmd/entra/group/group-user-add.mdx +62 -0
  239. package/docs/docs/cmd/{aad → entra}/group/group-user-list.mdx +17 -11
  240. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-add.mdx +11 -5
  241. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-get.mdx +9 -3
  242. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-list.mdx +10 -4
  243. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-remove.mdx +9 -3
  244. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-set.mdx +10 -4
  245. package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-get.mdx +11 -5
  246. package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-list.mdx +10 -4
  247. package/docs/docs/cmd/{aad → entra}/license/license-list.mdx +9 -3
  248. package/docs/docs/cmd/{aad → entra}/m365group/m365group-add.mdx +17 -11
  249. package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-list.mdx +9 -3
  250. package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-post-list.mdx +10 -4
  251. package/docs/docs/cmd/{aad → entra}/m365group/m365group-get.mdx +10 -4
  252. package/docs/docs/cmd/{aad → entra}/m365group/m365group-list.mdx +13 -7
  253. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-clear.mdx +9 -3
  254. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-list.mdx +12 -6
  255. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-remove.mdx +10 -4
  256. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-restore.mdx +10 -4
  257. package/docs/docs/cmd/{aad → entra}/m365group/m365group-remove.mdx +10 -4
  258. package/docs/docs/cmd/{aad → entra}/m365group/m365group-renew.mdx +8 -2
  259. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitycounts.mdx +10 -4
  260. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitydetail.mdx +11 -5
  261. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activityfilecounts.mdx +10 -4
  262. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitygroupcounts.mdx +10 -4
  263. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitystorage.mdx +10 -4
  264. package/docs/docs/cmd/{aad → entra}/m365group/m365group-set.mdx +12 -6
  265. package/docs/docs/cmd/{aad → entra}/m365group/m365group-teamify.mdx +9 -3
  266. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-add.mdx +9 -3
  267. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +131 -0
  268. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-remove.mdx +9 -5
  269. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-set.mdx +10 -6
  270. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-add.mdx +15 -9
  271. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-list.mdx +11 -5
  272. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-remove.mdx +13 -7
  273. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-set.mdx +12 -6
  274. package/docs/docs/cmd/{aad → entra}/policy/policy-list.mdx +14 -8
  275. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-disable.mdx +9 -3
  276. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-enable.mdx +10 -4
  277. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-get.mdx +9 -3
  278. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-set.mdx +11 -5
  279. package/docs/docs/cmd/{aad → entra}/sp/sp-add.mdx +25 -19
  280. package/docs/docs/cmd/{aad → entra}/sp/sp-get.mdx +12 -6
  281. package/docs/docs/cmd/{aad → entra}/sp/sp-list.mdx +10 -4
  282. package/docs/docs/cmd/{aad → entra}/user/user-add.mdx +12 -6
  283. package/docs/docs/cmd/{aad → entra}/user/user-get.mdx +16 -10
  284. package/docs/docs/cmd/{aad → entra}/user/user-guest-add.mdx +11 -5
  285. package/docs/docs/cmd/{aad → entra}/user/user-hibp.mdx +10 -4
  286. package/docs/docs/cmd/{aad → entra}/user/user-license-add.mdx +10 -4
  287. package/docs/docs/cmd/{aad → entra}/user/user-license-list.mdx +11 -5
  288. package/docs/docs/cmd/{aad → entra}/user/user-license-remove.mdx +9 -3
  289. package/docs/docs/cmd/{aad → entra}/user/user-list.mdx +12 -6
  290. package/docs/docs/cmd/{aad → entra}/user/user-password-validate.mdx +9 -3
  291. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-clear.mdx +9 -3
  292. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-list.mdx +9 -3
  293. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-remove.mdx +9 -3
  294. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-restore.mdx +8 -2
  295. package/docs/docs/cmd/{aad → entra}/user/user-remove.mdx +9 -3
  296. package/docs/docs/cmd/{aad → entra}/user/user-set.mdx +15 -9
  297. package/docs/docs/cmd/{aad → entra}/user/user-signin-list.mdx +19 -13
  298. package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +47 -0
  299. package/docs/docs/cmd/file/file-copy.mdx +68 -0
  300. package/docs/docs/cmd/flow/run/run-get.mdx +167 -4
  301. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
  302. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
  303. package/docs/docs/cmd/pa/app/app-get.mdx +15 -0
  304. package/docs/docs/cmd/pa/app/app-remove.mdx +14 -0
  305. package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
  306. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
  307. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
  308. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
  309. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
  310. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
  311. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
  312. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
  313. package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
  314. package/docs/docs/cmd/spo/group/group-member-add.mdx +19 -7
  315. package/docs/docs/cmd/spo/group/group-member-remove.mdx +12 -6
  316. package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
  317. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
  318. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
  319. package/docs/docs/cmd/spo/listitem/listitem-list.mdx +1 -1
  320. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
  321. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
  322. package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
  323. package/docs/docs/cmd/spo/page/page-set.mdx +2 -2
  324. package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
  325. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  326. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
  327. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  328. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  329. package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
  330. package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
  331. package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
  332. package/docs/docs/cmd/spo/user/user-ensure.mdx +8 -5
  333. package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
  334. package/docs/docs/cmd/teams/user/user-app-add.mdx +8 -5
  335. package/npm-shrinkwrap.json +298 -542
  336. package/package.json +21 -21
  337. package/dist/m365/aad/commands/m365group/m365group-user-list.js +0 -94
  338. package/dist/m365/aad/commands/user/user-get.js +0 -111
  339. package/docs/docs/cmd/aad/app/app-permission-add.mdx +0 -62
  340. package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
  341. package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
  342. package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
  343. package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
  344. package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
  345. package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
  346. /package/dist/m365/{aad → entra}/commands/approleassignment/ServicePrincipal.js +0 -0
  347. /package/dist/m365/{aad → entra}/commands/m365group/GroupExtended.js +0 -0
  348. /package/dist/m365/{aad → entra}/commands/siteclassification/SiteClassificationSettings.js +0 -0
@@ -21,6 +21,10 @@ export const validation = {
21
21
  const guidRegEx = new RegExp(/^19:[0-9a-zA-Z-_]+(@thread\.v2|@unq\.gbl\.spaces)$/i);
22
22
  return guidRegEx.test(guid);
23
23
  },
24
+ isValidUserPrincipalNameArray(upns) {
25
+ const invalidGuid = upns.find(upn => !this.isValidUserPrincipalName(upn));
26
+ return invalidGuid || true;
27
+ },
24
28
  isValidUserPrincipalName(upn) {
25
29
  const upnRegEx = new RegExp(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/i);
26
30
  // verify if the upn is a valid upn. @meusername will be replaced in a later stage with the actual username of the logged in user
@@ -317,6 +321,10 @@ export const validation = {
317
321
  return true;
318
322
  }
319
323
  return false;
324
+ },
325
+ isValidMailNickname(mailNickname) {
326
+ const mailNicknameRegEx = new RegExp(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]*$/i);
327
+ return mailNicknameRegEx.test(mailNickname);
320
328
  }
321
329
  };
322
330
  //# sourceMappingURL=validation.js.map
@@ -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
@@ -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 get
5
+ # entra administrativeunit member get
6
6
 
7
7
  Retrieves info about a specific member of an administrative unit
8
8
 
9
9
  ## Usage
10
10
 
11
+ ```sh
12
+ m365 entra administrativeunit member get [options]
13
+ ```
14
+
15
+ ## Alias
16
+
11
17
  ```sh
12
18
  m365 aad administrativeunit member get [options]
13
19
  ```
@@ -41,13 +47,13 @@ When the `properties` option includes values with a `/`, for example: `manager/d
41
47
  Get information about a member specified by id from an administrative unit specified by id
42
48
 
43
49
  ```sh
44
- m365 aad administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
50
+ m365 entra administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
45
51
  ```
46
52
 
47
53
  Get information about a member specified by id from an administrative unit specified by name
48
54
 
49
55
  ```sh
50
- m365 aad administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitName 'Marketing Division'
56
+ m365 entra administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitName 'Marketing Division'
51
57
  ```
52
58
 
53
59
  ## 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 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
@@ -0,0 +1,116 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # entra administrativeunit roleassignment add
6
+
7
+ Assigns a Microsoft Entra role with administrative unit scope to a user
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 entra administrativeunit roleassignment add [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --administrativeUnitId [administrativeUnitId]`
19
+ : The id of the administrative unit. Specify either `administrativeUnitId` or `administrativeUnitName`.
20
+
21
+ `-n, --administrativeUnitName [administrativeUnitName]`
22
+ : The name of the administrative unit. Specify either `administrativeUnitId` or `administrativeUnitName`.
23
+
24
+ `--roleDefinitionId [roleDefinitionId]`
25
+ : The id of the role definition that the member is in. Specify either `roleDefinitionId` or `roleDefinitionName`.
26
+
27
+ `--roleDefinitionName [roleDefinitionName]`
28
+ : The name of the role definition that the member is in. Specify either `roleDefinitionId` or `roleDefinitionName`.
29
+
30
+ `--userId [userId]`
31
+ : The id of the user that is a member of the scoped role. Specify either `userId` or `userName`.
32
+
33
+ `--userName [userName]`
34
+ : The name of the user that is a member of the scoped role. Specify either `userId` or `userName`.
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Remarks
40
+
41
+ :::info
42
+
43
+ To use this command you must be either **Global Administrator** or **Privileged Role Administrator**.
44
+
45
+ :::
46
+
47
+ ## Examples
48
+
49
+ Assign a role definition specified by id to a user specified by id for an administrative unit specified by id
50
+
51
+ ```sh
52
+ m365 entra administrativeunit roleassignment add --administrativeUnitId 81bb36e4-f4c6-4984-8e56-d4f8feae9e09 --roleDefinitionId 4d6ac14f-3453-41d0-bef9-a3e0c569773a --userId 5f91f951-7305-4a27-9b63-7b00906de09f
53
+ ```
54
+
55
+ Assign a role definition specified by name to a user specified by name for an administrative unit specified by name
56
+
57
+ ```sh
58
+ m365 entra administrativeunit roleassignment add --administrativeUnitName 'Marketing Division' --roleDefinitionName 'License Administrator' --userName 'john.doe@contoso.com'
59
+ ```
60
+
61
+ ## Response
62
+
63
+ <Tabs>
64
+ <TabItem value="JSON">
65
+
66
+ ```json
67
+ {
68
+ "id": "5wuT_mJe20eRr5jDpJo4sVH5kV8FcydKm2N7AJBt4J_kNruBxvSESY5W1Pj-rp4J-2",
69
+ "principalId": "5f91f951-7305-4a27-9b63-7b00906de09f",
70
+ "directoryScopeId": "/administrativeUnits/81bb36e4-f4c6-4984-8e56-d4f8feae9e09",
71
+ "roleDefinitionId": "4d6ac14f-3453-41d0-bef9-a3e0c569773a"
72
+ }
73
+ ```
74
+
75
+ </TabItem>
76
+ <TabItem value="Text">
77
+
78
+ ```text
79
+ directoryScopeId: /administrativeUnits/81bb36e4-f4c6-4984-8e56-d4f8feae9e09
80
+ id : 4yeYchSc90m7G5YI8Va7uFH5kV8FcydKm2N7AJBt4J_kNruBxvSESY5W1Pj-rp4J-2
81
+ principalId : 5f91f951-7305-4a27-9b63-7b00906de09f
82
+ roleDefinitionId: 4d6ac14f-3453-41d0-bef9-a3e0c569773a
83
+ ```
84
+
85
+ </TabItem>
86
+ <TabItem value="CSV">
87
+
88
+ ```csv
89
+ id,principalId,directoryScopeId,roleDefinitionId
90
+ UB-K8uf2cUWBi2oS8q9rbFH5kV8FcydKm2N7AJBt4J_kNruBxvSESY5W1Pj-rp4J-2,5f91f951-7305-4a27-9b63-7b00906de09f,/administrativeUnits/81bb36e4-f4c6-4984-8e56-d4f8feae9e09,4d6ac14f-3453-41d0-bef9-a3e0c569773a
91
+ ```
92
+
93
+ </TabItem>
94
+ <TabItem value="Markdown">
95
+
96
+ ```md
97
+ # entra administrativeunit roleassignment add --administrativeUnitId "81bb36e4-f4c6-4984-8e56-d4f8feae9e09" --roleDefinitionId "4d6ac14f-3453-41d0-bef9-a3e0c569773a" --userId "5f91f951-7305-4a27-9b63-7b00906de09f"
98
+
99
+ Date: 11/16/2023
100
+
101
+ ## T8FqTVM00EG--aPgxWl3OlH5kV8FcydKm2N7AJBt4J_kNruBxvSESY5W1Pj-rp4J-2
102
+
103
+ Property | Value
104
+ ---------|-------
105
+ id | T8FqTVM00EG--aPgxWl3OlH5kV8FcydKm2N7AJBt4J\_kNruBxvSESY5W1Pj-rp4J-2
106
+ principalId | 5f91f951-7305-4a27-9b63-7b00906de09f
107
+ directoryScopeId | /administrativeUnits/81bb36e4-f4c6-4984-8e56-d4f8feae9e09
108
+ roleDefinitionId | 4d6ac14f-3453-41d0-bef9-a3e0c569773a
109
+ ```
110
+
111
+ </TabItem>
112
+ </Tabs>
113
+
114
+ ## More information
115
+
116
+ - [Roles with administrative unit scope](https://learn.microsoft.com/entra/identity/role-based-access-control/admin-units-assign-roles#roles-that-can-be-assigned-with-administrative-unit-scope)