@pnp/cli-microsoft365 7.5.0-beta.494c631 → 7.5.0-beta.4f8e5bf

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 (248) hide show
  1. package/.devcontainer/Dockerfile +2 -2
  2. package/.eslintrc.cjs +6 -2
  3. package/.mocharc.json +3 -5
  4. package/Dockerfile +2 -5
  5. package/README.md +2 -2
  6. package/allCommands.json +1 -1
  7. package/allCommandsFull.json +1 -1
  8. package/dist/Auth.js +171 -69
  9. package/dist/AuthServer.js +3 -3
  10. package/dist/Command.js +8 -5
  11. package/dist/auth/FileTokenStorage.js +4 -1
  12. package/dist/m365/app/commands/app-get.js +2 -2
  13. package/dist/m365/base/AppCommand.js +2 -2
  14. package/dist/m365/base/PowerAppsCommand.js +2 -2
  15. package/dist/m365/base/PowerAutomateCommand.js +2 -2
  16. package/dist/m365/base/PowerPlatformCommand.js +2 -2
  17. package/dist/m365/base/SpoCommand.js +3 -3
  18. package/dist/m365/base/{YammerCommand.js → VivaEngageCommand.js} +2 -2
  19. package/dist/m365/cli/commands/cli-consent.js +5 -3
  20. package/dist/m365/cli/commands/cli-doctor.js +5 -5
  21. package/dist/m365/commands/ConnectionDetails.js +2 -0
  22. package/dist/m365/commands/login.js +26 -48
  23. package/dist/m365/commands/logout.js +2 -2
  24. package/dist/m365/commands/request.js +2 -2
  25. package/dist/m365/commands/status.js +15 -23
  26. package/dist/m365/connection/commands/connection-list.js +47 -0
  27. package/dist/m365/connection/commands/connection-remove.js +67 -0
  28. package/dist/m365/connection/commands/connection-set.js +56 -0
  29. package/dist/m365/connection/commands/connection-use.js +51 -0
  30. package/dist/m365/connection/commands.js +8 -0
  31. package/dist/m365/entra/aadCommands.js +3 -0
  32. package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +2 -2
  33. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +8 -8
  34. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +2 -2
  35. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +2 -2
  36. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +153 -0
  37. package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +2 -2
  38. package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +4 -4
  39. package/dist/m365/entra/commands/app/app-add.js +2 -2
  40. package/dist/m365/entra/commands/app/app-get.js +1 -1
  41. package/dist/m365/entra/commands/app/app-list.js +1 -1
  42. package/dist/m365/entra/commands/app/app-permission-add.js +4 -8
  43. package/dist/m365/entra/commands/app/app-permission-list.js +182 -0
  44. package/dist/m365/entra/commands/app/app-remove.js +1 -1
  45. package/dist/m365/entra/commands/app/app-role-add.js +1 -1
  46. package/dist/m365/entra/commands/app/app-role-list.js +1 -1
  47. package/dist/m365/entra/commands/app/app-role-remove.js +1 -1
  48. package/dist/m365/entra/commands/app/app-set.js +1 -1
  49. package/dist/m365/entra/commands/{sp/sp-add.js → enterpriseapp/enterpriseapp-add.js} +18 -18
  50. package/dist/m365/entra/commands/{sp/sp-get.js → enterpriseapp/enterpriseapp-get.js} +19 -19
  51. package/dist/m365/entra/commands/{sp/sp-list.js → enterpriseapp/enterpriseapp-list.js} +13 -13
  52. package/dist/m365/entra/commands/group/group-add.js +224 -0
  53. package/dist/m365/entra/commands/group/group-get.js +3 -3
  54. package/dist/m365/entra/commands/group/group-remove.js +2 -2
  55. package/dist/m365/entra/commands/group/group-user-add.js +145 -0
  56. package/dist/m365/entra/commands/group/group-user-list.js +2 -2
  57. package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +2 -2
  58. package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +3 -3
  59. package/dist/m365/entra/commands/m365group/m365group-get.js +3 -3
  60. package/dist/m365/entra/commands/m365group/m365group-remove.js +2 -2
  61. package/dist/m365/entra/commands/m365group/m365group-renew.js +2 -2
  62. package/dist/m365/entra/commands/m365group/m365group-report-activitygroupcounts.js +1 -1
  63. package/dist/m365/entra/commands/m365group/m365group-set.js +2 -2
  64. package/dist/m365/entra/commands/m365group/m365group-teamify.js +2 -2
  65. package/dist/m365/entra/commands/m365group/m365group-user-add.js +2 -2
  66. package/dist/m365/entra/commands/m365group/m365group-user-list.js +3 -3
  67. package/dist/m365/entra/commands/m365group/m365group-user-remove.js +2 -2
  68. package/dist/m365/entra/commands/m365group/m365group-user-set.js +2 -2
  69. package/dist/m365/entra/commands/user/user-get.js +38 -38
  70. package/dist/m365/entra/commands/user/user-license-list.js +1 -1
  71. package/dist/m365/entra/commands/user/user-registrationdetails-list.js +224 -0
  72. package/dist/m365/entra/commands/user/user-set.js +2 -2
  73. package/dist/m365/entra/commands.js +17 -0
  74. package/dist/m365/external/commands/connection/connection-doctor.js +2 -1
  75. package/dist/m365/file/commands/convert/convert-pdf.js +1 -1
  76. package/dist/m365/file/commands/file-copy.js +151 -0
  77. package/dist/m365/file/commands.js +1 -0
  78. package/dist/m365/flow/commands/owner/owner-ensure.js +4 -4
  79. package/dist/m365/flow/commands/owner/owner-remove.js +4 -4
  80. package/dist/m365/onenote/commands/notebook/notebook-list.js +2 -2
  81. package/dist/m365/onenote/commands/page/page-list.js +2 -2
  82. package/dist/m365/outlook/commands/mail/mail-send.js +1 -1
  83. package/dist/m365/outlook/commands/message/message-get.js +1 -1
  84. package/dist/m365/pa/commands/app/app-owner-set.js +2 -2
  85. package/dist/m365/pa/commands/app/app-permission-ensure.js +5 -5
  86. package/dist/m365/pa/commands/app/app-permission-remove.js +5 -5
  87. package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
  88. package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
  89. package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
  90. package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
  91. package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
  92. package/dist/m365/planner/commands/plan/plan-add.js +2 -2
  93. package/dist/m365/planner/commands/plan/plan-get.js +2 -2
  94. package/dist/m365/planner/commands/plan/plan-list.js +2 -2
  95. package/dist/m365/planner/commands/plan/plan-remove.js +2 -2
  96. package/dist/m365/planner/commands/plan/plan-set.js +2 -2
  97. package/dist/m365/planner/commands/roster/roster-member-add.js +2 -2
  98. package/dist/m365/planner/commands/roster/roster-member-get.js +2 -2
  99. package/dist/m365/planner/commands/roster/roster-member-remove.js +2 -2
  100. package/dist/m365/planner/commands/roster/roster-plan-list.js +1 -1
  101. package/dist/m365/planner/commands/task/task-add.js +2 -2
  102. package/dist/m365/planner/commands/task/task-get.js +2 -2
  103. package/dist/m365/planner/commands/task/task-list.js +2 -2
  104. package/dist/m365/planner/commands/task/task-remove.js +2 -2
  105. package/dist/m365/planner/commands/task/task-set.js +2 -2
  106. package/dist/m365/purview/commands/auditlog/auditlog-list.js +1 -1
  107. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-get.js +1 -1
  108. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-list.js +1 -1
  109. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-policysettings-list.js +1 -1
  110. package/dist/m365/spfx/commands/project/DeployWorkflow.js +4 -3
  111. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -1
  112. package/dist/m365/spo/commands/group/group-member-add.js +4 -4
  113. package/dist/m365/spo/commands/group/group-member-remove.js +2 -2
  114. package/dist/m365/spo/commands/group/group-set.js +2 -2
  115. package/dist/m365/spo/commands/site/site-remove.js +2 -2
  116. package/dist/m365/spo/commands/site/site-set.js +2 -2
  117. package/dist/m365/spo/commands/spo-get.js +1 -1
  118. package/dist/m365/spo/commands/spo-search.js +52 -22
  119. package/dist/m365/spo/commands/spo-set.js +1 -1
  120. package/dist/m365/spo/commands/user/user-ensure.js +2 -2
  121. package/dist/m365/teams/commands/app/app-install.js +2 -2
  122. package/dist/m365/teams/commands/channel/channel-get.js +2 -2
  123. package/dist/m365/teams/commands/channel/channel-list.js +2 -2
  124. package/dist/m365/teams/commands/channel/channel-member-add.js +2 -2
  125. package/dist/m365/teams/commands/channel/channel-member-list.js +2 -2
  126. package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -2
  127. package/dist/m365/teams/commands/channel/channel-member-set.js +2 -2
  128. package/dist/m365/teams/commands/channel/channel-remove.js +2 -2
  129. package/dist/m365/teams/commands/channel/channel-set.js +2 -2
  130. package/dist/m365/teams/commands/chat/chat-get.js +1 -1
  131. package/dist/m365/teams/commands/chat/chat-list.js +1 -1
  132. package/dist/m365/teams/commands/chat/chat-message-send.js +1 -1
  133. package/dist/m365/teams/commands/meeting/meeting-add.js +3 -3
  134. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +3 -3
  135. package/dist/m365/teams/commands/meeting/meeting-get.js +4 -4
  136. package/dist/m365/teams/commands/meeting/meeting-list.js +4 -4
  137. package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +3 -3
  138. package/dist/m365/teams/commands/tab/tab-get.js +2 -2
  139. package/dist/m365/teams/commands/team/team-add.js +6 -6
  140. package/dist/m365/teams/commands/team/team-archive.js +2 -2
  141. package/dist/m365/teams/commands/team/team-get.js +2 -2
  142. package/dist/m365/teams/commands/team/team-remove.js +2 -2
  143. package/dist/m365/teams/commands/team/team-unarchive.js +2 -2
  144. package/dist/m365/tenant/commands/id/id-get.js +1 -1
  145. package/dist/m365/tenant/commands/info/info-get.js +1 -1
  146. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +3 -3
  147. package/dist/m365/{yammer/commands/group/group-list.js → viva/commands/engage/engage-group-list.js} +19 -14
  148. package/dist/m365/{yammer/commands/group/group-user-add.js → viva/commands/engage/engage-group-user-add.js} +19 -14
  149. package/dist/m365/{yammer/commands/group/group-user-remove.js → viva/commands/engage/engage-group-user-remove.js} +19 -14
  150. package/dist/m365/{yammer/commands/message/message-add.js → viva/commands/engage/engage-message-add.js} +19 -14
  151. package/dist/m365/{yammer/commands/message/message-get.js → viva/commands/engage/engage-message-get.js} +17 -12
  152. package/dist/m365/{yammer/commands/message/message-like-set.js → viva/commands/engage/engage-message-like-set.js} +21 -16
  153. package/dist/m365/{yammer/commands/message/message-list.js → viva/commands/engage/engage-message-list.js} +21 -16
  154. package/dist/m365/{yammer/commands/message/message-remove.js → viva/commands/engage/engage-message-remove.js} +20 -15
  155. package/dist/m365/{yammer/commands/network/network-list.js → viva/commands/engage/engage-network-list.js} +16 -11
  156. package/dist/m365/viva/commands/engage/engage-report-activitycounts.js +23 -0
  157. package/dist/m365/viva/commands/engage/engage-report-activityusercounts.js +23 -0
  158. package/dist/m365/viva/commands/engage/engage-report-activityuserdetail.js +23 -0
  159. package/dist/m365/viva/commands/engage/engage-report-deviceusagedistributionusercounts.js +23 -0
  160. package/dist/m365/viva/commands/engage/engage-report-deviceusageusercounts.js +23 -0
  161. package/dist/m365/viva/commands/engage/engage-report-deviceusageuserdetail.js +23 -0
  162. package/dist/m365/viva/commands/engage/engage-report-groupsactivitycounts.js +23 -0
  163. package/dist/m365/viva/commands/engage/engage-report-groupsactivitydetail.js +23 -0
  164. package/dist/m365/viva/commands/engage/engage-report-groupsactivitygroupcounts.js +23 -0
  165. package/dist/m365/{yammer/commands/yammer-search.js → viva/commands/engage/engage-search.js} +23 -18
  166. package/dist/m365/{yammer/commands/user/user-get.js → viva/commands/engage/engage-user-get.js} +18 -13
  167. package/dist/m365/{yammer/commands/user/user-list.js → viva/commands/engage/engage-user-list.js} +18 -13
  168. package/dist/m365/{yammer/commands.js → viva/commands/engage/yammerCommands.js} +1 -1
  169. package/dist/m365/viva/commands.js +22 -1
  170. package/dist/request.js +1 -1
  171. package/dist/utils/{aadAdministrativeUnit.js → entraAdministrativeUnit.js} +2 -2
  172. package/dist/utils/{aadDevice.js → entraDevice.js} +2 -2
  173. package/dist/utils/{aadGroup.js → entraGroup.js} +2 -2
  174. package/dist/utils/{aadUser.js → entraUser.js} +38 -2
  175. package/dist/utils/spo.js +38 -16
  176. package/dist/utils/urlUtil.js +31 -0
  177. package/dist/utils/validation.js +8 -0
  178. package/docs/docs/cmd/cli/cli-consent.mdx +9 -9
  179. package/docs/docs/cmd/connection/connection-list.mdx +100 -0
  180. package/docs/docs/cmd/connection/connection-remove.mdx +45 -0
  181. package/docs/docs/cmd/connection/connection-set.mdx +39 -0
  182. package/docs/docs/cmd/connection/connection-use.mdx +98 -0
  183. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +5 -3
  184. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-remove.mdx +107 -0
  185. package/docs/docs/cmd/entra/app/app-add.mdx +2 -1
  186. package/docs/docs/cmd/entra/app/app-get.mdx +1 -0
  187. package/docs/docs/cmd/entra/app/app-list.mdx +1 -0
  188. package/docs/docs/cmd/entra/app/app-permission-add.mdx +3 -2
  189. package/docs/docs/cmd/entra/app/app-permission-list.mdx +105 -0
  190. package/docs/docs/cmd/entra/app/app-remove.mdx +1 -0
  191. package/docs/docs/cmd/entra/app/app-role-add.mdx +1 -0
  192. package/docs/docs/cmd/entra/app/app-role-list.mdx +1 -0
  193. package/docs/docs/cmd/entra/app/app-role-remove.mdx +1 -0
  194. package/docs/docs/cmd/entra/app/app-set.mdx +1 -0
  195. package/docs/docs/cmd/entra/{sp/sp-add.mdx → enterpriseapp/enterpriseapp-add.mdx} +16 -15
  196. package/docs/docs/cmd/entra/{sp/sp-get.mdx → enterpriseapp/enterpriseapp-get.mdx} +15 -14
  197. package/docs/docs/cmd/entra/{sp/sp-list.mdx → enterpriseapp/enterpriseapp-list.mdx} +22 -21
  198. package/docs/docs/cmd/entra/group/group-add.mdx +231 -0
  199. package/docs/docs/cmd/entra/group/group-user-add.mdx +62 -0
  200. package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +1 -1
  201. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +3 -3
  202. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -1
  203. package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +246 -0
  204. package/docs/docs/cmd/external/item/item-add.mdx +1 -1
  205. package/docs/docs/cmd/file/convert/convert-pdf.mdx +4 -0
  206. package/docs/docs/cmd/file/file-add.mdx +4 -0
  207. package/docs/docs/cmd/file/file-copy.mdx +68 -0
  208. package/docs/docs/cmd/file/file-list.mdx +100 -0
  209. package/docs/docs/cmd/login.mdx +15 -0
  210. package/docs/docs/cmd/setup.mdx +4 -0
  211. package/docs/docs/cmd/spo/list/list-webhook-set.mdx +1 -1
  212. package/docs/docs/cmd/spo/listitem/listitem-list.mdx +1 -1
  213. package/docs/docs/cmd/spo/spo-search.mdx +6 -2
  214. package/docs/docs/cmd/spo/theme/theme-set.mdx +14 -2
  215. package/docs/docs/cmd/{yammer/group/group-list.mdx → viva/engage/engage-group-list.mdx} +13 -13
  216. package/docs/docs/cmd/{yammer/group/group-user-add.mdx → viva/engage/engage-group-user-add.mdx} +7 -7
  217. package/docs/docs/cmd/{yammer/group/group-user-remove.mdx → viva/engage/engage-group-user-remove.mdx} +10 -10
  218. package/docs/docs/cmd/{yammer/message/message-add.mdx → viva/engage/engage-message-add.mdx} +12 -13
  219. package/docs/docs/cmd/{yammer/message/message-get.mdx → viva/engage/engage-message-get.mdx} +10 -10
  220. package/docs/docs/cmd/{yammer/message/message-like-set.mdx → viva/engage/engage-message-like-set.mdx} +10 -10
  221. package/docs/docs/cmd/{yammer/message/message-list.mdx → viva/engage/engage-message-list.mdx} +21 -21
  222. package/docs/docs/cmd/{yammer/message/message-remove.mdx → viva/engage/engage-message-remove.mdx} +10 -10
  223. package/docs/docs/cmd/{yammer/network/network-list.mdx → viva/engage/engage-network-list.mdx} +6 -6
  224. package/docs/docs/cmd/{yammer/report/report-activitycounts.mdx → viva/engage/engage-report-activitycounts.mdx} +9 -9
  225. package/docs/docs/cmd/{yammer/report/report-activityusercounts.mdx → viva/engage/engage-report-activityusercounts.mdx} +9 -9
  226. package/docs/docs/cmd/{yammer/report/report-activityuserdetail.mdx → viva/engage/engage-report-activityuserdetail.mdx} +11 -12
  227. package/docs/docs/cmd/{yammer/report/report-deviceusagedistributionusercounts.mdx → viva/engage/engage-report-deviceusagedistributionusercounts.mdx} +5 -5
  228. package/docs/docs/cmd/{yammer/report/report-deviceusageusercounts.mdx → viva/engage/engage-report-deviceusageusercounts.mdx} +5 -5
  229. package/docs/docs/cmd/{yammer/report/report-deviceusageuserdetail.mdx → viva/engage/engage-report-deviceusageuserdetail.mdx} +11 -11
  230. package/docs/docs/cmd/{yammer/report/report-groupsactivitycounts.mdx → viva/engage/engage-report-groupsactivitycounts.mdx} +9 -9
  231. package/docs/docs/cmd/{yammer/report/report-groupsactivitydetail.mdx → viva/engage/engage-report-groupsactivitydetail.mdx} +11 -11
  232. package/docs/docs/cmd/{yammer/report/report-groupsactivitygroupcounts.mdx → viva/engage/engage-report-groupsactivitygroupcounts.mdx} +5 -5
  233. package/docs/docs/cmd/{yammer/yammer-search.mdx → viva/engage/engage-search.mdx} +10 -10
  234. package/docs/docs/cmd/{yammer/user/user-get.mdx → viva/engage/engage-user-get.mdx} +8 -8
  235. package/docs/docs/cmd/{yammer/user/user-list.mdx → viva/engage/engage-user-list.mdx} +11 -11
  236. package/npm-shrinkwrap.json +228 -166
  237. package/package.json +20 -19
  238. package/dist/m365/base/AzmgmtCommand.js +0 -18
  239. package/dist/m365/base/AzmgmtItemsListCommand.js +0 -41
  240. package/dist/m365/yammer/commands/report/report-activitycounts.js +0 -15
  241. package/dist/m365/yammer/commands/report/report-activityusercounts.js +0 -15
  242. package/dist/m365/yammer/commands/report/report-activityuserdetail.js +0 -15
  243. package/dist/m365/yammer/commands/report/report-deviceusagedistributionusercounts.js +0 -15
  244. package/dist/m365/yammer/commands/report/report-deviceusageusercounts.js +0 -15
  245. package/dist/m365/yammer/commands/report/report-deviceusageuserdetail.js +0 -15
  246. package/dist/m365/yammer/commands/report/report-groupsactivitycounts.js +0 -15
  247. package/dist/m365/yammer/commands/report/report-groupsactivitydetail.js +0 -15
  248. package/dist/m365/yammer/commands/report/report-groupsactivitygroupcounts.js +0 -15
@@ -2,33 +2,34 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # entra sp add
5
+ # entra enterpriseapp add
6
6
 
7
- Adds a service principal to a registered Entra app
7
+ Creates an enterprise application (or service principal) for a registered Entra app
8
8
 
9
9
  ## Usage
10
10
 
11
11
  ```sh
12
- m365 entra sp add [options]
12
+ m365 entra enterpriseapp add [options]
13
13
  ```
14
14
 
15
15
  ## Alias
16
16
 
17
17
  ```sh
18
18
  m365 aad sp add [options]
19
+ m365 entra sp add [options]
19
20
  ```
20
21
 
21
22
  ## Options
22
23
 
23
24
  ```md definition-list
24
25
  `--appId [appId]`
25
- : ID of the application to which the service principal should be added
26
+ : ID of the app for which the enterprise application should be created
26
27
 
27
28
  `--appName [appName]`
28
- : Display name of the application to which the service principal should be added
29
+ : Display name of the app for which the enterprise application should be created
29
30
 
30
31
  `--objectId [objectId]`
31
- : ObjectId of the application to which the service principal should be added
32
+ : ObjectId of the app for which the enterprise application should be created
32
33
  ```
33
34
 
34
35
  <Global />
@@ -37,26 +38,26 @@ m365 aad sp add [options]
37
38
 
38
39
  Specify either the `appId`, `appName` or `objectId`. If you specify more than one option value, the command will fail with an error.
39
40
 
40
- If you register an application in the portal, an application object as well as a service principal object are automatically created in your home tenant. If you register an application using CLI for Microsoft 365 or the Microsoft Graph, you'll need to create the service principal separately. To register/create an application using the CLI for Microsoft 365, use the [m365 entra app add](../app/app-add.mdx) command.
41
+ If you register an application in the portal, an application object as well as an enterprise application object are automatically created in your home tenant. If you register an application using CLI for Microsoft 365 or the Microsoft Graph, you'll need to create the enterprise application separately. To register/create an application using the CLI for Microsoft 365, use the [m365 entra app add](../app/app-add.mdx) command.
41
42
 
42
43
  ## Examples
43
44
 
44
- Adds a service principal to a registered Entra app with appId _b2307a39-e878-458b-bc90-03bc578531d6_.
45
+ Creates an enterprise application for a registered Entra app with appId _b2307a39-e878-458b-bc90-03bc578531d6_.
45
46
 
46
47
  ```sh
47
- m365 entra sp add --appId b2307a39-e878-458b-bc90-03bc578531d6
48
+ m365 entra enterpriseapp add --appId b2307a39-e878-458b-bc90-03bc578531d6
48
49
  ```
49
50
 
50
- Adds a service principal to a registered Entra app with appName _Microsoft Graph_.
51
+ Creates an enterprise application for a registered Entra app with appName _Microsoft Graph_.
51
52
 
52
53
  ```sh
53
- m365 entra sp add --appName "Microsoft Graph"
54
+ m365 entra enterpriseapp add --appName "Microsoft Graph"
54
55
  ```
55
56
 
56
- Adds a service principal to a registered Entra app with objectId _b2307a39-e878-458b-bc90-03bc578531d6_.
57
+ Creates an enterprise application for a registered Entra app with objectId _b2307a39-e878-458b-bc90-03bc578531d6_.
57
58
 
58
59
  ```sh
59
- m365 entra sp add --objectId b2307a39-e878-458b-bc90-03bc578531d6
60
+ m365 entra enterpriseapp add --objectId b2307a39-e878-458b-bc90-03bc578531d6
60
61
  ```
61
62
 
62
63
  ## Response
@@ -171,7 +172,7 @@ m365 entra sp add --objectId b2307a39-e878-458b-bc90-03bc578531d6
171
172
  <TabItem value="Markdown">
172
173
 
173
174
  ```md
174
- # entra sp add --appId "8da75b6a-4272-4b17-8ee1-20ba66e2b06f"
175
+ # entra enterpriseapp add --appId "8da75b6a-4272-4b17-8ee1-20ba66e2b06f"
175
176
 
176
177
  Date: 2023-06-02
177
178
 
@@ -195,5 +196,5 @@ m365 entra sp add --objectId b2307a39-e878-458b-bc90-03bc578531d6
195
196
 
196
197
  ## More information
197
198
 
198
- - Application and service principal objects in Entra ID (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
199
+ - Application and enterprise application objects in Entra ID (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
199
200
  - Create servicePrincipal: [https://learn.microsoft.com/graph/api/serviceprincipal-post-serviceprincipals?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/serviceprincipal-post-serviceprincipals?view=graph-rest-1.0)
@@ -2,33 +2,34 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # entra sp get
5
+ # entra enterpriseapp get
6
6
 
7
- Gets information about the specific service principal
7
+ Gets information about an enterprise application (or service principal)
8
8
 
9
9
  ## Usage
10
10
 
11
11
  ```sh
12
- m365 entra sp get [options]
12
+ m365 entra enterpriseapp get [options]
13
13
  ```
14
14
 
15
15
  ## Alias
16
16
 
17
17
  ```sh
18
18
  m365 aad sp get [options]
19
+ m365 entra sp get [options]
19
20
  ```
20
21
 
21
22
  ## Options
22
23
 
23
24
  ```md definition-list
24
25
  `-i, --appId [appId]`
25
- : ID of the application for which the service principal should be retrieved
26
+ : ID of the application for which the enterprise application should be retrieved
26
27
 
27
28
  `-n, --appDisplayName [appDisplayName]`
28
- : Display name of the application for which the service principal should be retrieved
29
+ : Display name of the application for which the enterprise application should be retrieved
29
30
 
30
31
  `--appObjectId [appObjectId]`
31
- : ObjectId of the application for which the service principal should be retrieved
32
+ : ObjectId of the application for which the enterprise application should be retrieved
32
33
  ```
33
34
 
34
35
  <Global />
@@ -39,22 +40,22 @@ Specify either the `appId`, `appObjectId` or `appDisplayName`. If you specify mo
39
40
 
40
41
  ## Examples
41
42
 
42
- Return details about the service principal with appId _b2307a39-e878-458b-bc90-03bc578531d6_.
43
+ Return details about the enterprise application with appId _b2307a39-e878-458b-bc90-03bc578531d6_.
43
44
 
44
45
  ```sh
45
- m365 entra sp get --appId b2307a39-e878-458b-bc90-03bc578531d6
46
+ m365 entra enterpriseapp get --appId b2307a39-e878-458b-bc90-03bc578531d6
46
47
  ```
47
48
 
48
- Return details about the _Microsoft Graph_ service principal.
49
+ Return details about the _Microsoft Graph_ enterprise application.
49
50
 
50
51
  ```sh
51
- m365 entra sp get --appDisplayName "Microsoft Graph"
52
+ m365 entra enterpriseapp get --appDisplayName "Microsoft Graph"
52
53
  ```
53
54
 
54
- Return details about the service principal with ObjectId _b2307a39-e878-458b-bc90-03bc578531dd_.
55
+ Return details about the enterprise application with ObjectId _b2307a39-e878-458b-bc90-03bc578531dd_.
55
56
 
56
57
  ```sh
57
- m365 entra sp get --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
58
+ m365 entra enterpriseapp get --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
58
59
  ```
59
60
 
60
61
  ## Response
@@ -197,7 +198,7 @@ m365 entra sp get --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
197
198
  <TabItem value="Markdown">
198
199
 
199
200
  ```md
200
- # entra sp get --appId "ac7c9b4b-83b0-4a5e-ace2-a3530162c8f8"
201
+ # entra enterpriseapp get --appId "ac7c9b4b-83b0-4a5e-ace2-a3530162c8f8"
201
202
 
202
203
  Date: 2023-06-02
203
204
 
@@ -223,5 +224,5 @@ m365 entra sp get --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
223
224
 
224
225
  ## More information
225
226
 
226
- - Application and service principal objects in Entra ID (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
227
+ - Application and enterprise application objects in Entra ID (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
227
228
  - Get servicePrincipal: [https://learn.microsoft.com/graph/api/serviceprincipal-get?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/serviceprincipal-get?view=graph-rest-1.0)
@@ -2,46 +2,47 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # entra sp list
5
+ # entra enterpriseapp list
6
6
 
7
- Lists the service principals in the directory
7
+ Lists the enterprise applications (or service principals) in Entra ID
8
8
 
9
9
  ## Usage
10
10
 
11
11
  ```sh
12
- m365 entra sp list [options]
12
+ m365 entra enterpriseapp list [options]
13
13
  ```
14
14
 
15
15
  ## Alias
16
16
 
17
17
  ```sh
18
18
  m365 aad sp list [options]
19
+ m365 entra sp list [options]
19
20
  ```
20
21
 
21
22
  ## Options
22
23
 
23
24
  ```md definition-list
24
25
  `--displayName [displayName]`
25
- : Returns only service principals with the specified name
26
+ : Returns only enterprise applications with the specified name
26
27
 
27
28
  `--tag [tag]`
28
- : Returns only service principals with the specified tag
29
+ : Returns only enterprise applications with the specified tag
29
30
  ```
30
31
 
31
32
  <Global />
32
33
 
33
34
  ## Examples
34
35
 
35
- Return a list of all service principals
36
+ Return a list of all enterprise applications
36
37
 
37
38
  ```sh
38
- m365 entra sp list
39
+ m365 entra enterpriseapp list
39
40
  ```
40
41
 
41
- Return a list of all service principals that comply with the display name and the tag parameters
42
+ Return a list of all enterprise applications that comply with the display name and the tag parameters
42
43
 
43
44
  ```sh
44
- m365 entra sp list --displayName "My custom service principal" --tag "WindowsAzureActiveDirectoryIntegratedApp"
45
+ m365 entra enterpriseapp list --displayName "My custom enterprise application" --tag "WindowsAzureActiveDirectoryIntegratedApp"
45
46
  ```
46
47
 
47
48
  ## Response
@@ -56,7 +57,7 @@ m365 entra sp list --displayName "My custom service principal" --tag "WindowsAzu
56
57
  "deletedDateTime": null,
57
58
  "accountEnabled": true,
58
59
  "alternativeNames": [],
59
- "appDisplayName": "My custom service principal",
60
+ "appDisplayName": "My custom enterprise application",
60
61
  "appDescription": null,
61
62
  "appId": "a62ef842-f9ef-49cf-9119-31b85ea58445",
62
63
  "applicationTemplateId": null,
@@ -65,7 +66,7 @@ m365 entra sp list --displayName "My custom service principal" --tag "WindowsAzu
65
66
  "createdDateTime": "2022-11-28T20:32:11Z",
66
67
  "description": null,
67
68
  "disabledByMicrosoftStatus": null,
68
- "displayName": "My custom service principal",
69
+ "displayName": "My custom enterprise application",
69
70
  "homepage": null,
70
71
  "loginUrl": null,
71
72
  "logoutUrl": null,
@@ -102,13 +103,13 @@ m365 entra sp list --displayName "My custom service principal" --tag "WindowsAzu
102
103
  "keyCredentials": [],
103
104
  "oauth2PermissionScopes": [
104
105
  {
105
- "adminConsentDescription": "Allow the application to access My custom service principal on behalf of the signed-in user.",
106
- "adminConsentDisplayName": "Access My custom service principal",
106
+ "adminConsentDescription": "Allow the application to access My custom enterprise application on behalf of the signed-in user.",
107
+ "adminConsentDisplayName": "Access My custom enterprise application",
107
108
  "id": "907a8cea-411a-461a-bb30-261e52febcca",
108
109
  "isEnabled": true,
109
110
  "type": "User",
110
- "userConsentDescription": "Allow the application to access My custom service principal on your behalf.",
111
- "userConsentDisplayName": "Access My custom service principal",
111
+ "userConsentDescription": "Allow the application to access My custom enterprise application on your behalf.",
112
+ "userConsentDisplayName": "Access My custom enterprise application",
112
113
  "value": "user_impersonation"
113
114
  }
114
115
  ],
@@ -129,7 +130,7 @@ m365 entra sp list --displayName "My custom service principal" --tag "WindowsAzu
129
130
  ```text
130
131
  id displayName tag
131
132
  -------------------------------------- ---------------------------- ---------------------------------------
132
- a62ef842-f9ef-49cf-9119-31b85ea58445 My custom service principal WindowsAzureActiveDirectoryIntegratedApp
133
+ a62ef842-f9ef-49cf-9119-31b85ea58445 My custom enterprise application WindowsAzureActiveDirectoryIntegratedApp
133
134
  ```
134
135
 
135
136
  </TabItem>
@@ -137,29 +138,29 @@ m365 entra sp list --displayName "My custom service principal" --tag "WindowsAzu
137
138
 
138
139
  ```csv
139
140
  id,accountEnabled,appDisplayName,appId,appOwnerOrganizationId,appRoleAssignmentRequired,createdDateTime,displayName,servicePrincipalType,signInAudience
140
- 226859cc-86f0-40d3-b308-f43b3a729b6e,1,My custom service principal,a62ef842-f9ef-49cf-9119-31b85ea58445,fd71909b-55e5-44d2-9f78-dc432421d527,,2022-11-28T20:32:11Z,My custom service principal,AzureADMultipleOrgs
141
+ 226859cc-86f0-40d3-b308-f43b3a729b6e,1,My custom enterprise application,a62ef842-f9ef-49cf-9119-31b85ea58445,fd71909b-55e5-44d2-9f78-dc432421d527,,2022-11-28T20:32:11Z,My custom enterprise application,AzureADMultipleOrgs
141
142
  ```
142
143
 
143
144
  </TabItem>
144
145
  <TabItem value="Markdown">
145
146
 
146
147
  ```md
147
- # entra sp list
148
+ # entra enterpriseapp list
148
149
 
149
150
  Date: 27/4/2023
150
151
 
151
- ## My custom service principal (226859cc-86f0-40d3-b308-f43b3a729b6e)
152
+ ## My custom enterprise application (226859cc-86f0-40d3-b308-f43b3a729b6e)
152
153
 
153
154
  Property | Value
154
155
  ---------|-------
155
156
  id | 226859cc-86f0-40d3-b308-f43b3a729b6e
156
157
  accountEnabled | true
157
- appDisplayName | My custom service principal
158
+ appDisplayName | My custom enterprise application
158
159
  appId | a62ef842-f9ef-49cf-9119-31b85ea58445
159
160
  appOwnerOrganizationId | fd71909b-55e5-44d2-9f78-dc432421d527
160
161
  appRoleAssignmentRequired | false
161
162
  createdDateTime | 2022-11-28T20:32:11Z
162
- displayName | My custom service principal
163
+ displayName | My custom enterprise application
163
164
  servicePrincipalType | Application
164
165
  signInAudience | AzureADMultipleOrg
165
166
  ```
@@ -0,0 +1,231 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # entra group add
6
+
7
+ Creates a Microsoft Entra group
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 entra group add [options]
13
+ ```
14
+
15
+ ## Alias
16
+
17
+ ```sh
18
+ m365 aad group add [options]
19
+ ```
20
+
21
+ ## Options
22
+
23
+ ```md definition-list
24
+ `-n, --displayName <displayName>`
25
+ : The name for the group. The maximum length is 256 characters.
26
+
27
+ `-d, --description [description]`
28
+ : The description for the group.
29
+
30
+ `-t, --type <type>`
31
+ : The group type. Valid values: `microsoft365` or `security`.
32
+
33
+ `-m, --mailNickname [mailNickname]`
34
+ : The mail alias for the group (part before the @). Maximum length is 64 characters.
35
+
36
+ `--ownerIds [ownerIds]`
37
+ : Comma-separated list of IDs of Microsoft Entra ID users that will be group owners. Specify either `ownerIds` or `ownerUserNames`, but not both.
38
+
39
+ `--ownerUserNames [ownerUserNames]`
40
+ : Comma-separated list of UPNs of Microsoft Entra ID users that will be group owners. Specify either `ownerIds` or `ownerUserNames`, but not both.
41
+
42
+ `--memberIds [memberIds]`
43
+ : Comma-separated list of IDs of Microsoft Entra ID users that will be group members. Specify either `memberIds` or `memberUserNames`, but not both.
44
+
45
+ `--memberUserNames [memberUserNames]`
46
+ : Comma-separated list of UPNs of Microsoft Entra ID users that will be group members. Specify either `memberIds` or `memberUserNames`, but not both.
47
+
48
+ `--visibility [visibility]`
49
+ : Specifies the group join policy and group content visibility for Microsoft 365 groups. Possible values are: `Private`, `Public`, or `HiddenMembership`. Defaults to `Public`. Specify only when creating a group of type `microsoft365`.
50
+ ```
51
+
52
+ <Global />
53
+
54
+ ## Remarks
55
+
56
+ :::info
57
+
58
+ The `visibility` option affects the behavior of the group.
59
+
60
+ With the `Public` visibility:
61
+ - Anyone can join the group without needing owner permission.
62
+ - Anyone can view the attributes of the group.
63
+ - Anyone can see the members of the group.
64
+
65
+ With the `Private` visibilty:
66
+ - Owner permission is needed to join the group.
67
+ - Anyone can view the attributes of the group.
68
+ - Anyone can see the members of the group.
69
+
70
+ With the `HiddenMembership` visibility:
71
+ - Owner permission is needed to join the group.
72
+ - Guest users cannot view the attributes of the group.
73
+ - Non-members cannot see the members of the group. This setting doesn't affect visibility of group owners.
74
+ - Administrators (global, company, user, and helpdesk) can view the membership of the group.
75
+ - The group appears in the global address book (GAL).
76
+
77
+ :::
78
+
79
+ :::note
80
+
81
+ The `HiddenMembership` visibility can be set only for Microsoft 365 groups when the groups are created. It can't be updated later.
82
+
83
+ :::
84
+
85
+ This command allows using unknown options. For a comprehensive list of group properties, please refer to the [Graph documentation page](https://learn.microsoft.com/graph/api/resources/group?view=graph-rest-1.0#properties).
86
+
87
+ If the specified option is not found, you will receive a `Resource 'xyz' does not exist or one of its queried reference-property objects are not present.` error.
88
+
89
+ ## Examples
90
+
91
+ Create a security group without any owners or members
92
+
93
+ ```sh
94
+ m365 entra group add --displayName Developers --type security
95
+ ```
96
+
97
+ Create a private Microsoft 365 group with owners and members and a custom mail address
98
+
99
+ ```sh
100
+ m365 entra group add --displayName Developers --type microsoft365 --mailNickname devs --ownerUserNames john.doe@contoso.com --memberUserNames "john.doe@contoso.com,adele.vance@contoso.com" --visibility Private
101
+ ```
102
+
103
+ Create a public Microsoft 365 group without any owners or members
104
+
105
+ ```sh
106
+ m365 entra group add --displayName Developers --type microsoft365 --description "This group is for all developers in the company." --visibility Public
107
+ ```
108
+
109
+
110
+ ## Response
111
+
112
+ <Tabs>
113
+ <TabItem value="JSON">
114
+
115
+ ```json
116
+ {
117
+ "id": "ae0e8388-cd70-427f-9503-c57498ee3337",
118
+ "deletedDateTime": null,
119
+ "classification": null,
120
+ "createdDateTime": "2024-01-10T11:33:18Z",
121
+ "creationOptions": [],
122
+ "description": "This group is for all developers in the company.",
123
+ "displayName": "Developers",
124
+ "expirationDateTime": null,
125
+ "groupTypes": [
126
+ "Unified"
127
+ ],
128
+ "isAssignableToRole": null,
129
+ "mail": "devs@contoso.com",
130
+ "mailEnabled": true,
131
+ "mailNickname": "devs",
132
+ "membershipRule": null,
133
+ "membershipRuleProcessingState": null,
134
+ "onPremisesDomainName": null,
135
+ "onPremisesLastSyncDateTime": null,
136
+ "onPremisesNetBiosName": null,
137
+ "onPremisesSamAccountName": null,
138
+ "onPremisesSecurityIdentifier": null,
139
+ "onPremisesSyncEnabled": null,
140
+ "preferredDataLocation": null,
141
+ "preferredLanguage": null,
142
+ "proxyAddresses": [
143
+ "SMTP:devs@contoso.com"
144
+ ],
145
+ "renewedDateTime": "2024-01-10T11:33:18Z",
146
+ "resourceBehaviorOptions": [],
147
+ "resourceProvisioningOptions": [],
148
+ "securityEnabled": true,
149
+ "securityIdentifier": "S-1-12-1-2920186760-1115671920-1959068565-926150296",
150
+ "theme": null,
151
+ "visibility": "Public",
152
+ "onPremisesProvisioningErrors": [],
153
+ "serviceProvisioningErrors": []
154
+ }
155
+ ```
156
+
157
+ </TabItem>
158
+ <TabItem value="Text">
159
+
160
+ ```text
161
+ classification : null
162
+ createdDateTime : 2024-01-10T11:36:31Z
163
+ creationOptions : []
164
+ deletedDateTime : null
165
+ description : This group is for all developers in the company.
166
+ displayName : Developers
167
+ expirationDateTime : null
168
+ groupTypes : ["Unified"]
169
+ id : f7bce6b2-c017-4a00-ba0c-fbbe458364aa
170
+ isAssignableToRole : null
171
+ mail : dev@contoso.com
172
+ mailEnabled : true
173
+ mailNickname : devs
174
+ membershipRule : null
175
+ membershipRuleProcessingState: null
176
+ onPremisesDomainName : null
177
+ onPremisesLastSyncDateTime : null
178
+ onPremisesNetBiosName : null
179
+ onPremisesProvisioningErrors : []
180
+ onPremisesSamAccountName : null
181
+ onPremisesSecurityIdentifier : null
182
+ onPremisesSyncEnabled : null
183
+ preferredDataLocation : null
184
+ preferredLanguage : null
185
+ proxyAddresses : ["SMTP:devs@contoso.com"]
186
+ renewedDateTime : 2024-01-10T11:36:31Z
187
+ resourceBehaviorOptions : []
188
+ resourceProvisioningOptions : []
189
+ securityEnabled : true
190
+ securityIdentifier : S-1-12-1-4156352178-1241563159-3204123834-2858713925
191
+ serviceProvisioningErrors : []
192
+ theme : null
193
+ visibility : Public
194
+ ```
195
+
196
+ </TabItem>
197
+ <TabItem value="CSV">
198
+
199
+ ```csv
200
+ id,deletedDateTime,classification,createdDateTime,description,displayName,expirationDateTime,isAssignableToRole,mail,mailEnabled,mailNickname,membershipRule,membershipRuleProcessingState,onPremisesDomainName,onPremisesLastSyncDateTime,onPremisesNetBiosName,onPremisesSamAccountName,onPremisesSecurityIdentifier,onPremisesSyncEnabled,preferredDataLocation,preferredLanguage,renewedDateTime,securityEnabled,securityIdentifier,theme,visibility
201
+ 4c63e8cd-eb2b-4b0d-9251-d709cc75cf5e,,,2024-01-10T11:37:02Z,This group is for all developers in the company.,Developers,,,devs@contoso.com,1,devs,,,,,,,,,,,2024-01-10T11:37:02Z,1,S-1-12-1-1281616077-1259203371-165106066-1590654412,,Public
202
+ ```
203
+
204
+ </TabItem>
205
+ <TabItem value="Markdown">
206
+
207
+ ```md
208
+ # entra group add --displayName "Developers" --type "microsoft365" --description "This group is for all developers in the company." --visibility "Public" --mailNickname "devs"
209
+
210
+ Date: 1/10/2024
211
+
212
+ ## Developers (b3fd8e8f-eced-45c7-a366-178bc5c1db37)
213
+
214
+ Property | Value
215
+ ---------|-------
216
+ id | b3fd8e8f-eced-45c7-a366-178bc5c1db37
217
+ createdDateTime | 2024-01-10T11:37:39Z
218
+ description | This group is for all developers in the company.
219
+ displayName | Developers
220
+ mail | devs@contoso.com
221
+ mailEnabled | true
222
+ mailNickname | devs
223
+ renewedDateTime | 2024-01-10T11:37:39Z
224
+ securityEnabled | true
225
+ securityIdentifier | S-1-12-1-3019738767-1170730221-2333566627-937148869
226
+ visibility | Public
227
+ ```
228
+
229
+ </TabItem>
230
+ </Tabs>
231
+
@@ -0,0 +1,62 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # entra group user add
4
+
5
+ Adds a user to a Microsoft Entra ID group
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 entra group user add [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-i, --groupId [groupId]`
17
+ : The ID of the Entra ID group. Specify `groupId` or `groupDisplayName` but not both.
18
+
19
+ `-n, --groupDisplayName [groupDisplayName]`
20
+ : The display name of the Entra ID group. Specify `groupId` or `groupDisplayName` but not both.
21
+
22
+ `--ids [ids]`
23
+ : Entra ID IDs of users. You can also pass a comma-separated list of IDs. Specify either `ids` or `userNames` but not both.
24
+
25
+ `--userNames [userNames]`
26
+ : The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either `ids` or `userNames` but not both.
27
+
28
+ `-r, --role <role>`
29
+ : The role to be assigned to the new users. Valid values: `Owner`, `Member`.
30
+ ```
31
+
32
+ <Global />
33
+
34
+ ## Examples
35
+
36
+ Add a single user specified by ID as a member to a group specified by display name
37
+
38
+ ```sh
39
+ m365 entra group user add --groupDisplayName Developers --ids 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
40
+ ```
41
+
42
+ Add multiple users specified by ID as members to a group specified by ID
43
+
44
+ ```sh
45
+ m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --ids "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8" --role Member
46
+ ```
47
+
48
+ Add a single user specified by UPN as an owner to a group specified by display name
49
+
50
+ ```sh
51
+ m365 entra group user add --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
52
+ ```
53
+
54
+ Adds multiple users specified by UPN as owners to a group specified by ID
55
+
56
+ ```sh
57
+ m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userNames "john.doe@contoso.com,adele.vance@contoso.com" --role Owner
58
+ ```
59
+
60
+ ## Response
61
+
62
+ The command won't return a response on success.
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
4
4
 
5
5
  # entra m365group report activitygroupcounts
6
6
 
7
- Get the daily total number of groups and how many of them were active based on email conversations, Yammer posts, and SharePoint file activities.
7
+ Get the daily total number of groups and how many of them were active based on email conversations, Viva Engage posts, and SharePoint file activities.
8
8
 
9
9
  ## Usage
10
10
 
@@ -33,11 +33,11 @@ m365 aad oauth2grant add [options]
33
33
 
34
34
  ## Remarks
35
35
 
36
- Before you can grant service principal OAuth2 permissions, you need its `objectId`. You can retrieve it using the [entra sp get](../sp/sp-get.mdx) command.
36
+ Before you can grant service principal OAuth2 permissions, you need its `objectId`. You can retrieve it using the [entra enterpriseapp get](../enterpriseapp/enterpriseapp-get.mdx) command.
37
37
 
38
- The resource for which you want to grant permissions is designated using its `objectId`. You can retrieve it using the [entra sp get](../sp/sp-get.mdx) command, the same way you would retrieve the `objectId` of the service principal.
38
+ The resource for which you want to grant permissions is designated using its `objectId`. You can retrieve it using the [entra enterpriseapp get](../enterpriseapp/enterpriseapp-get.mdx) command, the same way you would retrieve the `objectId` of the service principal.
39
39
 
40
- When granting OAuth2 permissions, you have to specify which permission scopes you want to grant the service principal. You can get the list of available permission scopes either from the resource documentation or from the `appRoles` property when retrieving information about the service principal using the [entra sp get](../sp/sp-get.mdx) command. Multiple permission scopes can be specified separated by a space.
40
+ When granting OAuth2 permissions, you have to specify which permission scopes you want to grant the service principal. You can get the list of available permission scopes either from the resource documentation or from the `appRoles` property when retrieving information about the service principal using the [entra enterpriseapp get](../enterpriseapp/enterpriseapp-get.mdx) command. Multiple permission scopes can be specified separated by a space.
41
41
 
42
42
  When granting OAuth2 permissions, the values of the `clientId` and `resourceId` properties form a unique key. If a grant for the same `clientId`-`resourceId` pair already exists, running the `entra oauth2grant add` command will fail with an error. If you want to change permissions on an existing OAuth2 grant use the [entra oauth2grant set](./oauth2grant-set.mdx) command instead.
43
43
 
@@ -29,7 +29,7 @@ m365 aad oauth2grant list [options]
29
29
 
30
30
  ## Remarks
31
31
 
32
- In order to list existing OAuth2 permissions granted to a service principal, you need its `objectId`. You can retrieve it using the [entra sp get](../sp/sp-get.mdx) command.
32
+ In order to list existing OAuth2 permissions granted to a service principal, you need its `objectId`. You can retrieve it using the [entra enterpriseapp get](../enterpriseapp/enterpriseapp-get.mdx) command.
33
33
 
34
34
  When using the text output type (default), the command lists only the values of the `objectId`, `resourceId` and `scope` properties of the OAuth grant. When setting the output type to JSON, all available properties are included in the command output.
35
35