@pnp/cli-microsoft365 7.5.0-beta.d4d820f → 7.5.0

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 (178) 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/base/AppCommand.js +2 -2
  13. package/dist/m365/base/PowerAppsCommand.js +2 -2
  14. package/dist/m365/base/PowerAutomateCommand.js +2 -2
  15. package/dist/m365/base/PowerPlatformCommand.js +2 -2
  16. package/dist/m365/base/SpoCommand.js +3 -3
  17. package/dist/m365/base/{YammerCommand.js → VivaEngageCommand.js} +2 -2
  18. package/dist/m365/cli/commands/cli-consent.js +5 -3
  19. package/dist/m365/cli/commands/cli-doctor.js +5 -5
  20. package/dist/m365/commands/ConnectionDetails.js +2 -0
  21. package/dist/m365/commands/login.js +26 -48
  22. package/dist/m365/commands/logout.js +2 -2
  23. package/dist/m365/commands/request.js +2 -2
  24. package/dist/m365/commands/status.js +15 -23
  25. package/dist/m365/connection/commands/connection-list.js +47 -0
  26. package/dist/m365/connection/commands/connection-remove.js +67 -0
  27. package/dist/m365/connection/commands/connection-set.js +56 -0
  28. package/dist/m365/connection/commands/connection-use.js +51 -0
  29. package/dist/m365/connection/commands.js +8 -0
  30. package/dist/m365/entra/aadCommands.js +3 -0
  31. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +153 -0
  32. package/dist/m365/entra/commands/app/app-add.js +2 -2
  33. package/dist/m365/entra/commands/app/app-get.js +1 -1
  34. package/dist/m365/entra/commands/app/app-list.js +1 -1
  35. package/dist/m365/entra/commands/app/app-permission-add.js +1 -1
  36. package/dist/m365/entra/commands/app/app-permission-list.js +182 -0
  37. package/dist/m365/entra/commands/app/app-remove.js +1 -1
  38. package/dist/m365/entra/commands/app/app-role-add.js +1 -1
  39. package/dist/m365/entra/commands/app/app-role-list.js +1 -1
  40. package/dist/m365/entra/commands/app/app-role-remove.js +1 -1
  41. package/dist/m365/entra/commands/app/app-set.js +1 -1
  42. package/dist/m365/entra/commands/{sp/sp-add.js → enterpriseapp/enterpriseapp-add.js} +18 -18
  43. package/dist/m365/entra/commands/{sp/sp-get.js → enterpriseapp/enterpriseapp-get.js} +19 -19
  44. package/dist/m365/entra/commands/{sp/sp-list.js → enterpriseapp/enterpriseapp-list.js} +13 -13
  45. package/dist/m365/entra/commands/group/group-add.js +224 -0
  46. package/dist/m365/entra/commands/group/group-user-add.js +145 -0
  47. package/dist/m365/entra/commands/m365group/m365group-report-activitygroupcounts.js +1 -1
  48. package/dist/m365/entra/commands/user/user-get.js +38 -38
  49. package/dist/m365/entra/commands/user/user-license-list.js +1 -1
  50. package/dist/m365/entra/commands/user/user-registrationdetails-list.js +224 -0
  51. package/dist/m365/entra/commands/user/user-set.js +2 -2
  52. package/dist/m365/entra/commands.js +17 -0
  53. package/dist/m365/external/commands/connection/connection-doctor.js +2 -1
  54. package/dist/m365/file/commands/convert/convert-pdf.js +1 -1
  55. package/dist/m365/file/commands/file-copy.js +151 -0
  56. package/dist/m365/file/commands.js +1 -0
  57. package/dist/m365/outlook/commands/mail/mail-send.js +1 -1
  58. package/dist/m365/outlook/commands/message/message-get.js +1 -1
  59. package/dist/m365/pa/commands/app/app-permission-ensure.js +1 -1
  60. package/dist/m365/pa/commands/app/app-permission-remove.js +1 -1
  61. package/dist/m365/planner/commands/roster/roster-plan-list.js +1 -1
  62. package/dist/m365/purview/commands/auditlog/auditlog-list.js +1 -1
  63. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-get.js +1 -1
  64. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-list.js +1 -1
  65. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-policysettings-list.js +1 -1
  66. package/dist/m365/spfx/commands/project/DeployWorkflow.js +4 -3
  67. package/dist/m365/spo/commands/spo-get.js +1 -1
  68. package/dist/m365/spo/commands/spo-search.js +52 -22
  69. package/dist/m365/spo/commands/spo-set.js +1 -1
  70. package/dist/m365/teams/commands/chat/chat-get.js +1 -1
  71. package/dist/m365/teams/commands/chat/chat-list.js +1 -1
  72. package/dist/m365/teams/commands/chat/chat-message-send.js +1 -1
  73. package/dist/m365/teams/commands/meeting/meeting-add.js +1 -1
  74. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +1 -1
  75. package/dist/m365/teams/commands/meeting/meeting-get.js +1 -1
  76. package/dist/m365/teams/commands/meeting/meeting-list.js +2 -2
  77. package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +1 -1
  78. package/dist/m365/tenant/commands/id/id-get.js +1 -1
  79. package/dist/m365/tenant/commands/info/info-get.js +1 -1
  80. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +3 -3
  81. package/dist/m365/{yammer/commands/group/group-list.js → viva/commands/engage/engage-group-list.js} +19 -14
  82. package/dist/m365/{yammer/commands/group/group-user-add.js → viva/commands/engage/engage-group-user-add.js} +19 -14
  83. package/dist/m365/{yammer/commands/group/group-user-remove.js → viva/commands/engage/engage-group-user-remove.js} +19 -14
  84. package/dist/m365/{yammer/commands/message/message-add.js → viva/commands/engage/engage-message-add.js} +19 -14
  85. package/dist/m365/{yammer/commands/message/message-get.js → viva/commands/engage/engage-message-get.js} +17 -12
  86. package/dist/m365/{yammer/commands/message/message-like-set.js → viva/commands/engage/engage-message-like-set.js} +21 -16
  87. package/dist/m365/{yammer/commands/message/message-list.js → viva/commands/engage/engage-message-list.js} +21 -16
  88. package/dist/m365/{yammer/commands/message/message-remove.js → viva/commands/engage/engage-message-remove.js} +20 -15
  89. package/dist/m365/{yammer/commands/network/network-list.js → viva/commands/engage/engage-network-list.js} +16 -11
  90. package/dist/m365/viva/commands/engage/engage-report-activitycounts.js +23 -0
  91. package/dist/m365/viva/commands/engage/engage-report-activityusercounts.js +23 -0
  92. package/dist/m365/viva/commands/engage/engage-report-activityuserdetail.js +23 -0
  93. package/dist/m365/viva/commands/engage/engage-report-deviceusagedistributionusercounts.js +23 -0
  94. package/dist/m365/viva/commands/engage/engage-report-deviceusageusercounts.js +23 -0
  95. package/dist/m365/viva/commands/engage/engage-report-deviceusageuserdetail.js +23 -0
  96. package/dist/m365/viva/commands/engage/engage-report-groupsactivitycounts.js +23 -0
  97. package/dist/m365/viva/commands/engage/engage-report-groupsactivitydetail.js +23 -0
  98. package/dist/m365/viva/commands/engage/engage-report-groupsactivitygroupcounts.js +23 -0
  99. package/dist/m365/{yammer/commands/yammer-search.js → viva/commands/engage/engage-search.js} +23 -18
  100. package/dist/m365/{yammer/commands/user/user-get.js → viva/commands/engage/engage-user-get.js} +18 -13
  101. package/dist/m365/{yammer/commands/user/user-list.js → viva/commands/engage/engage-user-list.js} +18 -13
  102. package/dist/m365/{yammer/commands.js → viva/commands/engage/yammerCommands.js} +1 -1
  103. package/dist/m365/viva/commands.js +22 -1
  104. package/dist/request.js +1 -1
  105. package/dist/utils/entraUser.js +36 -0
  106. package/dist/utils/spo.js +36 -14
  107. package/dist/utils/urlUtil.js +31 -0
  108. package/dist/utils/validation.js +8 -0
  109. package/docs/docs/cmd/cli/cli-consent.mdx +9 -9
  110. package/docs/docs/cmd/connection/connection-list.mdx +100 -0
  111. package/docs/docs/cmd/connection/connection-remove.mdx +45 -0
  112. package/docs/docs/cmd/connection/connection-set.mdx +39 -0
  113. package/docs/docs/cmd/connection/connection-use.mdx +98 -0
  114. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +5 -3
  115. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-remove.mdx +107 -0
  116. package/docs/docs/cmd/entra/app/app-add.mdx +2 -1
  117. package/docs/docs/cmd/entra/app/app-get.mdx +1 -0
  118. package/docs/docs/cmd/entra/app/app-list.mdx +1 -0
  119. package/docs/docs/cmd/entra/app/app-permission-add.mdx +1 -0
  120. package/docs/docs/cmd/entra/app/app-permission-list.mdx +105 -0
  121. package/docs/docs/cmd/entra/app/app-remove.mdx +1 -0
  122. package/docs/docs/cmd/entra/app/app-role-add.mdx +1 -0
  123. package/docs/docs/cmd/entra/app/app-role-list.mdx +1 -0
  124. package/docs/docs/cmd/entra/app/app-role-remove.mdx +1 -0
  125. package/docs/docs/cmd/entra/app/app-set.mdx +1 -0
  126. package/docs/docs/cmd/entra/{sp/sp-add.mdx → enterpriseapp/enterpriseapp-add.mdx} +16 -15
  127. package/docs/docs/cmd/entra/{sp/sp-get.mdx → enterpriseapp/enterpriseapp-get.mdx} +15 -14
  128. package/docs/docs/cmd/entra/{sp/sp-list.mdx → enterpriseapp/enterpriseapp-list.mdx} +22 -21
  129. package/docs/docs/cmd/entra/group/group-add.mdx +231 -0
  130. package/docs/docs/cmd/entra/group/group-user-add.mdx +62 -0
  131. package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +1 -1
  132. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +3 -3
  133. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -1
  134. package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +246 -0
  135. package/docs/docs/cmd/external/item/item-add.mdx +1 -1
  136. package/docs/docs/cmd/file/convert/convert-pdf.mdx +4 -0
  137. package/docs/docs/cmd/file/file-add.mdx +4 -0
  138. package/docs/docs/cmd/file/file-copy.mdx +68 -0
  139. package/docs/docs/cmd/file/file-list.mdx +100 -0
  140. package/docs/docs/cmd/login.mdx +15 -0
  141. package/docs/docs/cmd/setup.mdx +4 -0
  142. package/docs/docs/cmd/spo/list/list-webhook-set.mdx +1 -1
  143. package/docs/docs/cmd/spo/spo-search.mdx +6 -2
  144. package/docs/docs/cmd/spo/theme/theme-set.mdx +14 -2
  145. package/docs/docs/cmd/{yammer/group/group-list.mdx → viva/engage/engage-group-list.mdx} +13 -13
  146. package/docs/docs/cmd/{yammer/group/group-user-add.mdx → viva/engage/engage-group-user-add.mdx} +7 -7
  147. package/docs/docs/cmd/{yammer/group/group-user-remove.mdx → viva/engage/engage-group-user-remove.mdx} +10 -10
  148. package/docs/docs/cmd/{yammer/message/message-add.mdx → viva/engage/engage-message-add.mdx} +12 -13
  149. package/docs/docs/cmd/{yammer/message/message-get.mdx → viva/engage/engage-message-get.mdx} +10 -10
  150. package/docs/docs/cmd/{yammer/message/message-like-set.mdx → viva/engage/engage-message-like-set.mdx} +10 -10
  151. package/docs/docs/cmd/{yammer/message/message-list.mdx → viva/engage/engage-message-list.mdx} +21 -21
  152. package/docs/docs/cmd/{yammer/message/message-remove.mdx → viva/engage/engage-message-remove.mdx} +10 -10
  153. package/docs/docs/cmd/{yammer/network/network-list.mdx → viva/engage/engage-network-list.mdx} +6 -6
  154. package/docs/docs/cmd/{yammer/report/report-activitycounts.mdx → viva/engage/engage-report-activitycounts.mdx} +9 -9
  155. package/docs/docs/cmd/{yammer/report/report-activityusercounts.mdx → viva/engage/engage-report-activityusercounts.mdx} +9 -9
  156. package/docs/docs/cmd/{yammer/report/report-activityuserdetail.mdx → viva/engage/engage-report-activityuserdetail.mdx} +11 -12
  157. package/docs/docs/cmd/{yammer/report/report-deviceusagedistributionusercounts.mdx → viva/engage/engage-report-deviceusagedistributionusercounts.mdx} +5 -5
  158. package/docs/docs/cmd/{yammer/report/report-deviceusageusercounts.mdx → viva/engage/engage-report-deviceusageusercounts.mdx} +5 -5
  159. package/docs/docs/cmd/{yammer/report/report-deviceusageuserdetail.mdx → viva/engage/engage-report-deviceusageuserdetail.mdx} +11 -11
  160. package/docs/docs/cmd/{yammer/report/report-groupsactivitycounts.mdx → viva/engage/engage-report-groupsactivitycounts.mdx} +9 -9
  161. package/docs/docs/cmd/{yammer/report/report-groupsactivitydetail.mdx → viva/engage/engage-report-groupsactivitydetail.mdx} +11 -11
  162. package/docs/docs/cmd/{yammer/report/report-groupsactivitygroupcounts.mdx → viva/engage/engage-report-groupsactivitygroupcounts.mdx} +5 -5
  163. package/docs/docs/cmd/{yammer/yammer-search.mdx → viva/engage/engage-search.mdx} +10 -10
  164. package/docs/docs/cmd/{yammer/user/user-get.mdx → viva/engage/engage-user-get.mdx} +8 -8
  165. package/docs/docs/cmd/{yammer/user/user-list.mdx → viva/engage/engage-user-list.mdx} +11 -11
  166. package/npm-shrinkwrap.json +228 -166
  167. package/package.json +21 -20
  168. package/dist/m365/base/AzmgmtCommand.js +0 -18
  169. package/dist/m365/base/AzmgmtItemsListCommand.js +0 -41
  170. package/dist/m365/yammer/commands/report/report-activitycounts.js +0 -15
  171. package/dist/m365/yammer/commands/report/report-activityusercounts.js +0 -15
  172. package/dist/m365/yammer/commands/report/report-activityuserdetail.js +0 -15
  173. package/dist/m365/yammer/commands/report/report-deviceusagedistributionusercounts.js +0 -15
  174. package/dist/m365/yammer/commands/report/report-deviceusageusercounts.js +0 -15
  175. package/dist/m365/yammer/commands/report/report-deviceusageuserdetail.js +0 -15
  176. package/dist/m365/yammer/commands/report/report-groupsactivitycounts.js +0 -15
  177. package/dist/m365/yammer/commands/report/report-groupsactivitydetail.js +0 -15
  178. package/dist/m365/yammer/commands/report/report-groupsactivitygroupcounts.js +0 -15
@@ -0,0 +1,100 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # connection list
6
+
7
+ Show the list of available connections
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 connection list [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ <Global />
18
+
19
+ ## Remarks
20
+
21
+ If you are logged in to Microsoft 365 with multiple identities, this command will show you a list of users and/or applications used to sign in.
22
+
23
+ ## Examples
24
+
25
+ Show the list of available identities used to sign in to Microsoft 365
26
+
27
+ ```sh
28
+ m365 connection list
29
+ ```
30
+
31
+ ## Response
32
+
33
+ <Tabs>
34
+ <TabItem value="JSON">
35
+
36
+ ```json
37
+ [
38
+ {
39
+ "name": "028de82d-7fd9-476e-a9fd-be9714280ff3",
40
+ "connectedAs": "alexw@contoso.com",
41
+ "authType": "DeviceCode",
42
+ "active": true
43
+ },
44
+ {
45
+ "name": "acd6df42-10a9-4315-8928-53334f1c9d01",
46
+ "connectedAs": "Contoso Application",
47
+ "authType": "Secret",
48
+ "active": false
49
+ }
50
+ ]
51
+ ```
52
+
53
+ </TabItem>
54
+ <TabItem value="Text">
55
+
56
+ ```text
57
+ name connectedAs authType active
58
+ ------------------------------------ ------------------- ---------- ------
59
+ 028de82d-7fd9-476e-a9fd-be9714280ff3 alexw@contoso.com DeviceCode true
60
+ acd6df42-10a9-4315-8928-53334f1c9d01 Contoso Application Secret false
61
+ ```
62
+
63
+ </TabItem>
64
+ <TabItem value="CSV">
65
+
66
+ ```csv
67
+ name,connectedAs,authType,active
68
+ 028de82d-7fd9-476e-a9fd-be9714280ff3,alexw@contoso.com,DeviceCode,true
69
+ acd6df42-10a9-4315-8928-53334f1c9d01,Contoso Application,Secret,false
70
+ ```
71
+
72
+ </TabItem>
73
+ <TabItem value="Markdown">
74
+
75
+ ```md
76
+ # connection list
77
+
78
+ Date: 7/2/2023
79
+
80
+ ## 028de82d-7fd9-476e-a9fd-be9714280ff3
81
+
82
+ Property | Value
83
+ ---------|-------
84
+ name | 028de82d-7fd9-476e-a9fd-be9714280ff3
85
+ connectedAs | alexw@contoso.com
86
+ authType | DeviceCode
87
+ active | true
88
+
89
+ ## acd6df42-10a9-4315-8928-53334f1c9d01
90
+
91
+ Property | Value
92
+ ---------|-------
93
+ name | acd6df42-10a9-4315-8928-53334f1c9d01
94
+ connectedAs | Contoso Application
95
+ authType | Secret
96
+ active | false
97
+ ```
98
+
99
+ </TabItem>
100
+ </Tabs>
@@ -0,0 +1,45 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # connection remove
4
+
5
+ Remove the specified connection
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 connection remove [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-n, --name <name>`
17
+ : The name of the connection to remove.
18
+
19
+ `-f, --force`
20
+ : Don't prompt for confirmation to remove the connection.
21
+ ```
22
+
23
+ <Global />
24
+
25
+ ## Remarks
26
+
27
+ The value for `--name` can be found by running [m365 connection list](connection-list.mdx).
28
+
29
+ ## Examples
30
+
31
+ Remove an existing connection
32
+
33
+ ```sh
34
+ m365 connection remove --name '0bb7cb89-7fae-4775-a01a-c372cc167371'
35
+ ```
36
+
37
+ Remove an existing connection without prompting for confirmation
38
+
39
+ ```sh
40
+ m365 connection remove --name '0bb7cb89-7fae-4775-a01a-c372cc167371' --force
41
+ ```
42
+
43
+ ## Response
44
+
45
+ The command won't return a response on success.
@@ -0,0 +1,39 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # connection set
4
+
5
+ Rename the specified connection
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 connection set [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-n, --name <name>`
17
+ : The name of the connection to update.
18
+
19
+ `--newName <newName>`
20
+ : The new name of the connection.
21
+ ```
22
+
23
+ <Global />
24
+
25
+ ## Remarks
26
+
27
+ The value for `--name` can be found by running [m365 connection list](connection-list.mdx). You can update the name of a connection to any value to make switching connections easier.
28
+
29
+ ## Examples
30
+
31
+ Update an existing connection
32
+
33
+ ```sh
34
+ m365 connection set --name '0bb7cb89-7fae-4775-a01a-c372cc167371' --newName 'myworkaccount'
35
+ ```
36
+
37
+ ## Response
38
+
39
+ The command won't return a response on success.
@@ -0,0 +1,98 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # connection use
6
+
7
+ Activate the specified Microsoft 365 tenant connection
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 connection use [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-n, --name <name>`
19
+ : The name of the connection to switch to.
20
+ ```
21
+
22
+ <Global />
23
+
24
+ ## Remarks
25
+
26
+ The value for `--name` can be found by running [m365 connection list](connection-list.mdx). You can update the name of a connection by running [m365 connection set](connection-set.mdx).
27
+
28
+ ## Examples
29
+
30
+ Switch to a different connection
31
+
32
+ ```sh
33
+ m365 connection use --name '6e70c8ea-571d-4daf-bc48-9e1b49ac3390'
34
+ ```
35
+
36
+ Switch to another connection by a custom connection name
37
+
38
+ ```sh
39
+ m365 connection use --name 'myworkaccount'
40
+ ```
41
+
42
+ ## Response
43
+
44
+ <Tabs>
45
+ <TabItem value="JSON">
46
+
47
+ ```json
48
+ {
49
+ "connectedAs": "alexw@contoso.com",
50
+ "connectedName": "028de82d-7fd9-476e-a9fd-be9714280ff3",
51
+ "authType": "DeviceCode",
52
+ "appId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
53
+ "appTenant": "common",
54
+ "cloudType": "Public"
55
+ }
56
+ ```
57
+
58
+ </TabItem>
59
+ <TabItem value="Text">
60
+
61
+ ```text
62
+ appId : 31359c7f-bd7e-475c-86db-fdb8c937548e
63
+ appTenant : common
64
+ authType : DeviceCode
65
+ cloudType : Public
66
+ connectionName : 028de82d-7fd9-476e-a9fd-be9714280ff3
67
+ connectedAs: alexw@contoso.com
68
+ ```
69
+
70
+ </TabItem>
71
+ <TabItem value="CSV">
72
+
73
+ ```csv
74
+ connectionName,connectedAs,authType,appId,appTenant,cloudType
75
+ alexw@contoso.com,028de82d-7fd9-476e-a9fd-be9714280ff3,DeviceCode,31359c7f-bd7e-475c-86db-fdb8c937548e,common,Public
76
+ ```
77
+
78
+ </TabItem>
79
+ <TabItem value="Markdown">
80
+
81
+ ```md
82
+ # connection use
83
+
84
+ Date: 7/2/2023
85
+
86
+ Property | Value
87
+ ---------|-------
88
+ connectedAs | alexw@contoso.com
89
+ connectionName | 028de82d-7fd9-476e-a9fd-be9714280ff3
90
+ authType | DeviceCode
91
+ appId | 31359c7f-bd7e-475c-86db-fdb8c937548e
92
+ appTenant | common
93
+ cloudType | Public
94
+ ```
95
+
96
+ </TabItem>
97
+ </Tabs>
98
+
@@ -1,6 +1,4 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
- import Tabs from '@theme/Tabs';
3
- import TabItem from '@theme/TabItem';
4
2
 
5
3
  # entra administrativeunit member add
6
4
 
@@ -94,6 +92,10 @@ Add a single device specified by name to an administrative unit specified by nam
94
92
  m365 entra administrativeunit member add --administrativeUnitName 'Marketing Division' --deviceName 'JohnDoe-PC'
95
93
  ```
96
94
 
95
+ ## Response
96
+
97
+ The command won't return a response on success.
98
+
97
99
  ## More information
98
100
 
99
- - Administrative units: https://learn.microsoft.com/entra/identity/role-based-access-control/administrative-units
101
+ - Administrative units: https://learn.microsoft.com/entra/identity/role-based-access-control/administrative-units
@@ -0,0 +1,107 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # entra administrativeunit member remove
4
+
5
+ Removes a member (user, group, or device) from an administrative unit
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 entra administrativeunit member remove [options]
11
+ ```
12
+
13
+ ## options
14
+
15
+ ```md definition-list
16
+ `-i, --id [id]`
17
+ : The id of the member to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
18
+
19
+ `--userId [userId]`
20
+ : The id of the user to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
21
+
22
+ `--userName [userName]`
23
+ : The user principal name (UPN) of the user to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
24
+
25
+ `--groupId [groupId]`
26
+ : The id of the group to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
27
+
28
+ `--groupName [groupName]`
29
+ : The name of the group to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
30
+
31
+ `--deviceId [deviceId]`
32
+ : The id of the device to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
33
+
34
+ `--deviceName [deviceName]`
35
+ : The name of the device to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
36
+
37
+ `--administrativeUnitId [administrativeUnitId]`
38
+ : The id of the administrative unit. Specify either `administrativeUnitId` or `administrativeUnitName` but not both.
39
+
40
+ `--administrativeUnitName [administrativeUnitName]`
41
+ : The name of the administrative unit. Specify either `administrativeUnitId` or `administrativeUnitName` but not both.
42
+
43
+ `-f, --force`
44
+ : Don't prompt for confirmation.
45
+ ```
46
+
47
+ <Global />
48
+
49
+ ## Remarks
50
+
51
+ :::info
52
+
53
+ To use this command you must be either **Global Administrator** or **Privileged Role Administrator**.
54
+
55
+ :::
56
+
57
+ ## Examples
58
+
59
+ Remove a member specified by id from an administrative unit specified by id
60
+
61
+ ```sh
62
+ m365 entra administrativeunit member remove --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
63
+ ```
64
+
65
+ Remove a user specified by id from an administrative unit specified by id
66
+
67
+ ```sh
68
+ m365 entra administrativeunit member remove --userId 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
69
+ ```
70
+
71
+ Remove a group specified by id from an administrative unit specified by id
72
+
73
+ ```sh
74
+ m365 entra administrativeunit member remove --groupId b2307a39-e878-458b-bc90-03bc578531d6 --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
75
+ ```
76
+
77
+ Remove a device specified by id from an administrative unit specified by id
78
+
79
+ ```sh
80
+ m365 entra administrativeunit member remove --deviceId 810c84a8-4a9e-49e6-bf7d-12d183f40d01 --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
81
+ ```
82
+
83
+ Remove a user specified by UPN from an administrative unit specified by name
84
+
85
+ ```sh
86
+ m365 entra administrativeunit member remove --userName john.doe@contoso.com --administrativeUnitName 'Marketing Division'
87
+ ```
88
+
89
+ Remove a group specified by name from an administrative unit specified by id
90
+
91
+ ```sh
92
+ m365 entra administrativeunit member remove --groupName 'Marketing Group' --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
93
+ ```
94
+
95
+ Remove a device specified by name from an administrative unit specified by name
96
+
97
+ ```sh
98
+ m365 entra administrativeunit member remove --deviceName 'JohnDoe-PC' --administrativeUnitName 'Marketing Division'
99
+ ```
100
+
101
+ ## Response
102
+
103
+ The command won't return a response on success
104
+
105
+ ## More information
106
+
107
+ - [Administrative units](https://learn.microsoft.com/entra/identity/role-based-access-control/administrative-units)
@@ -16,6 +16,7 @@ m365 entra app add [options]
16
16
 
17
17
  ```sh
18
18
  m365 aad app add [options]
19
+ m365 entra appregistration add [options]
19
20
  ```
20
21
 
21
22
  ## Options
@@ -109,7 +110,7 @@ After creating the Entra app registration, this command returns the app ID and o
109
110
 
110
111
  If you want to store the information about the created Entra app registration, use the `--save` option. This is useful when you build solutions connected to Microsoft 365 and want to easily manage app registrations used with your solution. When you use the `--save` option, after you create the app registration, the command will write its ID and name to the `.m365rc.json` file in the current directory. If the file already exists, it will add the information about the to it, allowing you to track multiple apps. If the file doesn't exist, the command will create it.
111
112
 
112
- When specifying `--grantAdminConsent` option, a service principal will be created for the app registration.
113
+ When specifying `--grantAdminConsent` option, an enterprise application will be created for the app registration.
113
114
 
114
115
  ## Examples
115
116
 
@@ -16,6 +16,7 @@ m365 entra app get [options]
16
16
 
17
17
  ```sh
18
18
  m365 aad app get [options]
19
+ m365 entra appregistration get [options]
19
20
  ```
20
21
 
21
22
  ## Options
@@ -16,6 +16,7 @@ m365 entra app list [options]
16
16
 
17
17
  ```sh
18
18
  m365 aad app list [options]
19
+ m365 entra appregistration list [options]
19
20
  ```
20
21
 
21
22
  ## Options
@@ -16,6 +16,7 @@ m365 entra app permission add [options]
16
16
 
17
17
  ```sh
18
18
  m365 aad app permission add [options]
19
+ m365 entra appregistration permission add [options]
19
20
  ```
20
21
 
21
22
  ## Options
@@ -0,0 +1,105 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # entra app permission list
6
+
7
+ Lists the application and delegated permissions for a specified Entra Application Registration
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 entra app permission list [options]
13
+ ```
14
+
15
+ ## Alias
16
+
17
+ ```sh
18
+ m365 aad app permission list [options]
19
+ ```
20
+
21
+ ## Options
22
+
23
+ ```md definition-list
24
+ `-i, --appId [appId]`
25
+ : Client ID of the Application Registration to retrieve the permissions for. Specify `appId` or `appObjectId` but not both.
26
+
27
+ `--appObjectId [appObjectId]`
28
+ : Object ID of the Application Registration to retrieve the permissions for. Specify `appId` or `appObjectId` but not both.
29
+
30
+ `--type [type]`
31
+ : The type of permissions to retrieve. Allowed values: `delegated`, `application`, `all`. Defaults to `all`.
32
+ ```
33
+
34
+ <Global />
35
+
36
+ ## Remarks
37
+
38
+ For best performance use the `objectId` option to reference the Entra application registration to get. If you use `appId`, this command will first need to find the corresponding object ID for that application.
39
+
40
+ ## Examples
41
+
42
+ Retrieves all permissions for an Entra app registration
43
+
44
+ ```sh
45
+ m365 entra app permission list --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690'
46
+ ```
47
+
48
+ Retrieves all delegated permissions for an Entra app registration
49
+
50
+ ```sh
51
+ m365 entra app permission list --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --type delegated
52
+ ```
53
+
54
+ ## Response
55
+
56
+ <Tabs>
57
+ <TabItem value="JSON">
58
+
59
+ ```json
60
+ [
61
+ {
62
+ "resource": "Microsoft Graph",
63
+ "resourceId": "00000003-0000-0000-c000-000000000000",
64
+ "permission": "User.Read",
65
+ "type": "Delegated"
66
+ }
67
+ ]
68
+ ```
69
+
70
+ </TabItem>
71
+ <TabItem value="Text">
72
+
73
+ ```text
74
+ resource resourceId permission type
75
+ ---------------------------- ------------------------------------ --------------------------------- -----------
76
+ Microsoft Graph 00000003-0000-0000-c000-000000000000 User.Read Delegated
77
+ ```
78
+
79
+ </TabItem>
80
+ <TabItem value="CSV">
81
+
82
+ ```csv
83
+ resource,resourceId,permission,type
84
+ Microsoft Graph,00000003-0000-0000-c000-000000000000,User.Read,Delegated
85
+ ```
86
+
87
+ </TabItem>
88
+ <TabItem value="Markdown">
89
+
90
+ ```md
91
+ # entra app permission list --appId "2bf26ae1-9be3-425f-a393-5fe8390e3a36"
92
+
93
+ Date: 27/12/2023
94
+
95
+ Property | Value
96
+ ---------|-------
97
+ resource | Microsoft Graph
98
+ resourceId | 00000003-0000-0000-c000-000000000000
99
+ permission | User.Read
100
+ type | Delegated
101
+ ```
102
+
103
+ </TabItem>
104
+ </Tabs>
105
+
@@ -14,6 +14,7 @@ m365 entra app remove [options]
14
14
 
15
15
  ```sh
16
16
  m365 aad app remove [options]
17
+ m365 entra appregistration remove [options]
17
18
  ```
18
19
 
19
20
  ## Options
@@ -14,6 +14,7 @@ m365 entra app role add [options]
14
14
 
15
15
  ```sh
16
16
  m365 aad app role add [options]
17
+ m365 entra appregistration role add [options]
17
18
  ```
18
19
 
19
20
  ## Options
@@ -16,6 +16,7 @@ m365 entra app role list [options]
16
16
 
17
17
  ```sh
18
18
  m365 aad app role list [options]
19
+ m365 entra appregistration role list [options]
19
20
  ```
20
21
 
21
22
  ## Options
@@ -14,6 +14,7 @@ m365 entra app role remove [options]
14
14
 
15
15
  ```sh
16
16
  m365 aad app role remove [options]
17
+ m365 entra appregistration role remove [options]
17
18
  ```
18
19
 
19
20
  ## Options
@@ -14,6 +14,7 @@ m365 entra app set [options]
14
14
 
15
15
  ```sh
16
16
  m365 aad app set [options]
17
+ m365 entra appregistration set [options]
17
18
  ```
18
19
 
19
20
  ## Options