@pnp/cli-microsoft365 7.5.0-beta.23612bc → 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 (172) hide show
  1. package/.eslintrc.cjs +6 -2
  2. package/.mocharc.json +3 -5
  3. package/README.md +2 -2
  4. package/allCommands.json +1 -1
  5. package/allCommandsFull.json +1 -1
  6. package/dist/Auth.js +171 -69
  7. package/dist/AuthServer.js +3 -3
  8. package/dist/Command.js +8 -5
  9. package/dist/auth/FileTokenStorage.js +4 -1
  10. package/dist/m365/base/AppCommand.js +2 -2
  11. package/dist/m365/base/PowerAppsCommand.js +2 -2
  12. package/dist/m365/base/PowerAutomateCommand.js +2 -2
  13. package/dist/m365/base/PowerPlatformCommand.js +2 -2
  14. package/dist/m365/base/SpoCommand.js +3 -3
  15. package/dist/m365/base/{YammerCommand.js → VivaEngageCommand.js} +2 -2
  16. package/dist/m365/cli/commands/cli-consent.js +5 -3
  17. package/dist/m365/cli/commands/cli-doctor.js +5 -5
  18. package/dist/m365/commands/ConnectionDetails.js +2 -0
  19. package/dist/m365/commands/login.js +26 -48
  20. package/dist/m365/commands/logout.js +2 -2
  21. package/dist/m365/commands/request.js +2 -2
  22. package/dist/m365/commands/status.js +15 -23
  23. package/dist/m365/connection/commands/connection-list.js +47 -0
  24. package/dist/m365/connection/commands/connection-remove.js +67 -0
  25. package/dist/m365/connection/commands/connection-set.js +56 -0
  26. package/dist/m365/connection/commands/connection-use.js +51 -0
  27. package/dist/m365/connection/commands.js +8 -0
  28. package/dist/m365/entra/aadCommands.js +3 -0
  29. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +153 -0
  30. package/dist/m365/entra/commands/app/app-add.js +2 -2
  31. package/dist/m365/entra/commands/app/app-get.js +1 -1
  32. package/dist/m365/entra/commands/app/app-list.js +1 -1
  33. package/dist/m365/entra/commands/app/app-permission-add.js +1 -1
  34. package/dist/m365/entra/commands/app/app-permission-list.js +182 -0
  35. package/dist/m365/entra/commands/app/app-remove.js +1 -1
  36. package/dist/m365/entra/commands/app/app-role-add.js +1 -1
  37. package/dist/m365/entra/commands/app/app-role-list.js +1 -1
  38. package/dist/m365/entra/commands/app/app-role-remove.js +1 -1
  39. package/dist/m365/entra/commands/app/app-set.js +1 -1
  40. package/dist/m365/entra/commands/{sp/sp-add.js → enterpriseapp/enterpriseapp-add.js} +18 -18
  41. package/dist/m365/entra/commands/{sp/sp-get.js → enterpriseapp/enterpriseapp-get.js} +19 -19
  42. package/dist/m365/entra/commands/{sp/sp-list.js → enterpriseapp/enterpriseapp-list.js} +13 -13
  43. package/dist/m365/entra/commands/group/group-add.js +224 -0
  44. package/dist/m365/entra/commands/m365group/m365group-report-activitygroupcounts.js +1 -1
  45. package/dist/m365/entra/commands/user/user-get.js +38 -38
  46. package/dist/m365/entra/commands/user/user-license-list.js +1 -1
  47. package/dist/m365/entra/commands/user/user-registrationdetails-list.js +224 -0
  48. package/dist/m365/entra/commands/user/user-set.js +2 -2
  49. package/dist/m365/entra/commands.js +16 -0
  50. package/dist/m365/file/commands/convert/convert-pdf.js +1 -1
  51. package/dist/m365/file/commands/file-copy.js +151 -0
  52. package/dist/m365/file/commands.js +1 -0
  53. package/dist/m365/outlook/commands/mail/mail-send.js +1 -1
  54. package/dist/m365/outlook/commands/message/message-get.js +1 -1
  55. package/dist/m365/pa/commands/app/app-permission-ensure.js +1 -1
  56. package/dist/m365/pa/commands/app/app-permission-remove.js +1 -1
  57. package/dist/m365/planner/commands/roster/roster-plan-list.js +1 -1
  58. package/dist/m365/purview/commands/auditlog/auditlog-list.js +1 -1
  59. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-get.js +1 -1
  60. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-list.js +1 -1
  61. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-policysettings-list.js +1 -1
  62. package/dist/m365/spfx/commands/project/DeployWorkflow.js +4 -3
  63. package/dist/m365/spo/commands/spo-get.js +1 -1
  64. package/dist/m365/spo/commands/spo-search.js +52 -22
  65. package/dist/m365/spo/commands/spo-set.js +1 -1
  66. package/dist/m365/teams/commands/chat/chat-get.js +1 -1
  67. package/dist/m365/teams/commands/chat/chat-list.js +1 -1
  68. package/dist/m365/teams/commands/chat/chat-message-send.js +1 -1
  69. package/dist/m365/teams/commands/meeting/meeting-add.js +1 -1
  70. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +1 -1
  71. package/dist/m365/teams/commands/meeting/meeting-get.js +1 -1
  72. package/dist/m365/teams/commands/meeting/meeting-list.js +2 -2
  73. package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +1 -1
  74. package/dist/m365/tenant/commands/id/id-get.js +1 -1
  75. package/dist/m365/tenant/commands/info/info-get.js +1 -1
  76. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +3 -3
  77. package/dist/m365/{yammer/commands/group/group-list.js → viva/commands/engage/engage-group-list.js} +19 -14
  78. package/dist/m365/{yammer/commands/group/group-user-add.js → viva/commands/engage/engage-group-user-add.js} +19 -14
  79. package/dist/m365/{yammer/commands/group/group-user-remove.js → viva/commands/engage/engage-group-user-remove.js} +19 -14
  80. package/dist/m365/{yammer/commands/message/message-add.js → viva/commands/engage/engage-message-add.js} +19 -14
  81. package/dist/m365/{yammer/commands/message/message-get.js → viva/commands/engage/engage-message-get.js} +17 -12
  82. package/dist/m365/{yammer/commands/message/message-like-set.js → viva/commands/engage/engage-message-like-set.js} +21 -16
  83. package/dist/m365/{yammer/commands/message/message-list.js → viva/commands/engage/engage-message-list.js} +21 -16
  84. package/dist/m365/{yammer/commands/message/message-remove.js → viva/commands/engage/engage-message-remove.js} +20 -15
  85. package/dist/m365/{yammer/commands/network/network-list.js → viva/commands/engage/engage-network-list.js} +16 -11
  86. package/dist/m365/viva/commands/engage/engage-report-activitycounts.js +23 -0
  87. package/dist/m365/viva/commands/engage/engage-report-activityusercounts.js +23 -0
  88. package/dist/m365/viva/commands/engage/engage-report-activityuserdetail.js +23 -0
  89. package/dist/m365/viva/commands/engage/engage-report-deviceusagedistributionusercounts.js +23 -0
  90. package/dist/m365/viva/commands/engage/engage-report-deviceusageusercounts.js +23 -0
  91. package/dist/m365/viva/commands/engage/engage-report-deviceusageuserdetail.js +23 -0
  92. package/dist/m365/viva/commands/engage/engage-report-groupsactivitycounts.js +23 -0
  93. package/dist/m365/viva/commands/engage/engage-report-groupsactivitydetail.js +23 -0
  94. package/dist/m365/viva/commands/engage/engage-report-groupsactivitygroupcounts.js +23 -0
  95. package/dist/m365/{yammer/commands/yammer-search.js → viva/commands/engage/engage-search.js} +23 -18
  96. package/dist/m365/{yammer/commands/user/user-get.js → viva/commands/engage/engage-user-get.js} +18 -13
  97. package/dist/m365/{yammer/commands/user/user-list.js → viva/commands/engage/engage-user-list.js} +18 -13
  98. package/dist/m365/{yammer/commands.js → viva/commands/engage/yammerCommands.js} +1 -1
  99. package/dist/m365/viva/commands.js +22 -1
  100. package/dist/request.js +1 -1
  101. package/dist/utils/spo.js +36 -14
  102. package/dist/utils/urlUtil.js +31 -0
  103. package/dist/utils/validation.js +4 -0
  104. package/docs/docs/cmd/cli/cli-consent.mdx +9 -9
  105. package/docs/docs/cmd/connection/connection-list.mdx +100 -0
  106. package/docs/docs/cmd/connection/connection-remove.mdx +45 -0
  107. package/docs/docs/cmd/connection/connection-set.mdx +39 -0
  108. package/docs/docs/cmd/connection/connection-use.mdx +98 -0
  109. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +5 -3
  110. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-remove.mdx +107 -0
  111. package/docs/docs/cmd/entra/app/app-add.mdx +2 -1
  112. package/docs/docs/cmd/entra/app/app-get.mdx +1 -0
  113. package/docs/docs/cmd/entra/app/app-list.mdx +1 -0
  114. package/docs/docs/cmd/entra/app/app-permission-add.mdx +1 -0
  115. package/docs/docs/cmd/entra/app/app-permission-list.mdx +105 -0
  116. package/docs/docs/cmd/entra/app/app-remove.mdx +1 -0
  117. package/docs/docs/cmd/entra/app/app-role-add.mdx +1 -0
  118. package/docs/docs/cmd/entra/app/app-role-list.mdx +1 -0
  119. package/docs/docs/cmd/entra/app/app-role-remove.mdx +1 -0
  120. package/docs/docs/cmd/entra/app/app-set.mdx +1 -0
  121. package/docs/docs/cmd/entra/{sp/sp-add.mdx → enterpriseapp/enterpriseapp-add.mdx} +16 -15
  122. package/docs/docs/cmd/entra/{sp/sp-get.mdx → enterpriseapp/enterpriseapp-get.mdx} +15 -14
  123. package/docs/docs/cmd/entra/{sp/sp-list.mdx → enterpriseapp/enterpriseapp-list.mdx} +22 -21
  124. package/docs/docs/cmd/entra/group/group-add.mdx +231 -0
  125. package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +1 -1
  126. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +3 -3
  127. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -1
  128. package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +246 -0
  129. package/docs/docs/cmd/external/item/item-add.mdx +1 -1
  130. package/docs/docs/cmd/file/convert/convert-pdf.mdx +4 -0
  131. package/docs/docs/cmd/file/file-add.mdx +4 -0
  132. package/docs/docs/cmd/file/file-copy.mdx +68 -0
  133. package/docs/docs/cmd/file/file-list.mdx +100 -0
  134. package/docs/docs/cmd/login.mdx +15 -0
  135. package/docs/docs/cmd/setup.mdx +4 -0
  136. package/docs/docs/cmd/spo/list/list-webhook-set.mdx +1 -1
  137. package/docs/docs/cmd/spo/spo-search.mdx +6 -2
  138. package/docs/docs/cmd/spo/theme/theme-set.mdx +14 -2
  139. package/docs/docs/cmd/{yammer/group/group-list.mdx → viva/engage/engage-group-list.mdx} +13 -13
  140. package/docs/docs/cmd/{yammer/group/group-user-add.mdx → viva/engage/engage-group-user-add.mdx} +7 -7
  141. package/docs/docs/cmd/{yammer/group/group-user-remove.mdx → viva/engage/engage-group-user-remove.mdx} +10 -10
  142. package/docs/docs/cmd/{yammer/message/message-add.mdx → viva/engage/engage-message-add.mdx} +12 -13
  143. package/docs/docs/cmd/{yammer/message/message-get.mdx → viva/engage/engage-message-get.mdx} +10 -10
  144. package/docs/docs/cmd/{yammer/message/message-like-set.mdx → viva/engage/engage-message-like-set.mdx} +10 -10
  145. package/docs/docs/cmd/{yammer/message/message-list.mdx → viva/engage/engage-message-list.mdx} +21 -21
  146. package/docs/docs/cmd/{yammer/message/message-remove.mdx → viva/engage/engage-message-remove.mdx} +10 -10
  147. package/docs/docs/cmd/{yammer/network/network-list.mdx → viva/engage/engage-network-list.mdx} +6 -6
  148. package/docs/docs/cmd/{yammer/report/report-activitycounts.mdx → viva/engage/engage-report-activitycounts.mdx} +9 -9
  149. package/docs/docs/cmd/{yammer/report/report-activityusercounts.mdx → viva/engage/engage-report-activityusercounts.mdx} +9 -9
  150. package/docs/docs/cmd/{yammer/report/report-activityuserdetail.mdx → viva/engage/engage-report-activityuserdetail.mdx} +11 -12
  151. package/docs/docs/cmd/{yammer/report/report-deviceusagedistributionusercounts.mdx → viva/engage/engage-report-deviceusagedistributionusercounts.mdx} +5 -5
  152. package/docs/docs/cmd/{yammer/report/report-deviceusageusercounts.mdx → viva/engage/engage-report-deviceusageusercounts.mdx} +5 -5
  153. package/docs/docs/cmd/{yammer/report/report-deviceusageuserdetail.mdx → viva/engage/engage-report-deviceusageuserdetail.mdx} +11 -11
  154. package/docs/docs/cmd/{yammer/report/report-groupsactivitycounts.mdx → viva/engage/engage-report-groupsactivitycounts.mdx} +9 -9
  155. package/docs/docs/cmd/{yammer/report/report-groupsactivitydetail.mdx → viva/engage/engage-report-groupsactivitydetail.mdx} +11 -11
  156. package/docs/docs/cmd/{yammer/report/report-groupsactivitygroupcounts.mdx → viva/engage/engage-report-groupsactivitygroupcounts.mdx} +5 -5
  157. package/docs/docs/cmd/{yammer/yammer-search.mdx → viva/engage/engage-search.mdx} +10 -10
  158. package/docs/docs/cmd/{yammer/user/user-get.mdx → viva/engage/engage-user-get.mdx} +8 -8
  159. package/docs/docs/cmd/{yammer/user/user-list.mdx → viva/engage/engage-user-list.mdx} +11 -11
  160. package/npm-shrinkwrap.json +60 -0
  161. package/package.json +3 -2
  162. package/dist/m365/base/AzmgmtCommand.js +0 -18
  163. package/dist/m365/base/AzmgmtItemsListCommand.js +0 -41
  164. package/dist/m365/yammer/commands/report/report-activitycounts.js +0 -15
  165. package/dist/m365/yammer/commands/report/report-activityusercounts.js +0 -15
  166. package/dist/m365/yammer/commands/report/report-activityuserdetail.js +0 -15
  167. package/dist/m365/yammer/commands/report/report-deviceusagedistributionusercounts.js +0 -15
  168. package/dist/m365/yammer/commands/report/report-deviceusageusercounts.js +0 -15
  169. package/dist/m365/yammer/commands/report/report-deviceusageuserdetail.js +0 -15
  170. package/dist/m365/yammer/commands/report/report-groupsactivitycounts.js +0 -15
  171. package/dist/m365/yammer/commands/report/report-groupsactivitydetail.js +0 -15
  172. package/dist/m365/yammer/commands/report/report-groupsactivitygroupcounts.js +0 -15
@@ -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
+
@@ -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
 
@@ -0,0 +1,246 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # entra user registrationdetails list
6
+
7
+ Retrieves a list of the authentication methods registered for users
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 entra user registrationdetails list [options]
13
+ ```
14
+
15
+ ## Alias
16
+
17
+ ```sh
18
+ m365 aad user registrationdetails list [options]
19
+ ```
20
+
21
+ ## Options
22
+
23
+ ```md definition-list
24
+ `--isAdmin [isAdmin]`
25
+ : Filter for users who are admins. Allowed values are `true` or `false`. If not specified, returns all users.
26
+
27
+ `--userType [userType]`
28
+ : Filter for members or guest users. Allowed values are `member` or `guest`. If not specified, returns all users.
29
+
30
+ `--userPreferredMethodForSecondaryAuthentication [userPreferredMethodForSecondaryAuthentication]`
31
+ : Filter users by selected method as default second-factor authentication. Allowed values are `push`, `oath`, `voiceMobile`, `voiceAlternateMobile`, `voiceOffice`, `sms` or `none`. Specify either one method or more methods separated by a comma.
32
+
33
+ `--systemPreferredAuthenticationMethods [systemPreferredAuthenticationMethods]`
34
+ : Filter users by most secure authentication methods registered for second-factor authentication. Allowed values are `push`, `oath`, `voiceMobile`, `voiceAlternateMobile`, `voiceOffice`, `sms` or `none`. Specify either one method or more methods separated by a comma.
35
+
36
+ `--isSelfServicePasswordResetRegistered [isSelfServicePasswordResetRegistered]`
37
+ : Filter for users who have registered for self-service password reset. Allowed values are `true` or `false`. If not specified, returns all users.
38
+
39
+ `--isSelfServicePasswordResetEnabled [isSelfServicePasswordResetEnabled]`
40
+ : Filter for users who have been enabled for self-service password reset. Allowed values are `true` or `false`. If not specified, returns all users.
41
+
42
+ `--isSelfServicePasswordResetCapable [isSelfServicePasswordResetCapable]`
43
+ : Filter for users who are ready to perform self-service password reset. Allowed values are `true` or `false`. If not specified, returns all users.
44
+
45
+ `--isMfaRegistered [isMfaRegistered]`
46
+ : Filter for users who are registered for multi-factor authentication. Allowed values are `true` or `false`. If not specified, returns all users.
47
+
48
+ `--isMfaCapable [isMfaCapable]`
49
+ : Filter for users who are ready to perform password reset or multi-factor authentication. Allowed values are `true` or `false`. If not specified, returns all users.
50
+
51
+ `--isPasswordlessCapable [isPasswordlessCapable]`
52
+ : Filter for user who have registered a password less strong authentication method. Allowed values are `true` or `false`. If not specified, returns all users.
53
+
54
+ `--isSystemPreferredAuthenticationMethodEnabled [isSystemPreferredAuthenticationMethodEnabled]`
55
+ : Filter for users who have enabled system preferred authentication method. Allowed values are `true` or `false`. If not specified, returns all users.
56
+
57
+ `--methodsRegistered [methodsRegistered]`
58
+ : Filter users by registered methods used during registration. Allowed values are `mobilePhone`, `email`, `fido2`, `microsoftAuthenticatorPush` or `softwareOneTimePasscode`. Specify either one method or more methods separated by a comma.
59
+
60
+ `--userIds [userIds]`
61
+ : Filter users by ids. Specify at most 20 ids separated by a comma.
62
+
63
+ `--userPrincipalNames [userPrincipalNames]`
64
+ : Filter users by user principal names. Specify at most 20 UPN separated by a comma.
65
+
66
+ `-p, --properties [properties]`
67
+ : Comma-separated list of properties to retrieve.
68
+ ```
69
+
70
+ <Global />
71
+
72
+ ## Remarks
73
+
74
+ Using the `--properties` option, you can specify a comma-separated list of registration details properties to retrieve from the Microsoft Graph. If you don't specify any properties, the command will retrieve user's account name, registered methods and timestamp of last update.
75
+
76
+ :::info
77
+
78
+ When multiple values are specified for `--userPreferredMethodForSecondaryAuthentication` option, the command returns registration details with at least one specified selected method as default second-factor authentication.
79
+
80
+ When multiple values are specified for `--systemPreferredAuthenticationMethods` option, the command returns registration details with at least one specified most secure authentication methods registered for second-factor authentication.
81
+
82
+ When multiple values are specified for `--registeredMethods` option, the command returns registration details with at least one specified registered methods used during registration.
83
+
84
+ :::
85
+
86
+ ## Examples
87
+
88
+ Retrieve registration details for all users
89
+
90
+ ```sh
91
+ m365 entra user registrationdetails list
92
+ ```
93
+
94
+ Retrieve user registration details and returns only specific properties
95
+
96
+ ```sh
97
+ m365 entra user registrationdetails list --properties 'id,isAdmin'
98
+ ```
99
+
100
+ Retrieve registration details for admins
101
+
102
+ ```sh
103
+ m365 entra user registrationdetails list --isAdmin true
104
+ ```
105
+
106
+ Retrieve registration details for guest users
107
+
108
+ ```sh
109
+ m365 entra user registrationdetails list --userType guest
110
+ ```
111
+
112
+ Retrieve registration details for users who selected either sms or push authentication method as the default second-factor for performing multifactor authentication
113
+
114
+ ```sh
115
+ m365 entra user registrationdetails list --userPreferredMethodForSecondaryAuthentication 'sms,push'
116
+ ```
117
+
118
+ Retrieve registration details for users with push authentication method as the most secure authentication method among the registered methods for second factor authentication determined by the system
119
+
120
+ ```sh
121
+ m365 entra user registrationdetails list --systemPreferredAuthenticationMethods push
122
+ ```
123
+
124
+ Retrieve registration details for users who have used either Microsoft Authenticator app or mobile phone during registration
125
+
126
+ ```sh
127
+ m365 entra user registrationdetails list --methodsRegistered 'microsoftAuthenticatorPush,mobilePhone'
128
+ ```
129
+
130
+ ## Response
131
+
132
+ <Tabs>
133
+ <TabItem value="JSON">
134
+
135
+ ```json
136
+ [
137
+ {
138
+ "id": "61b0c52f-a902-4769-9a09-c6628335b00a",
139
+ "userPrincipalName": "AdeleV@contoso.onmicrosoft.com",
140
+ "userDisplayName": "Adele Vance",
141
+ "userType": "member",
142
+ "isAdmin": false,
143
+ "isSsprRegistered": false,
144
+ "isSsprEnabled": false,
145
+ "isSsprCapable": false,
146
+ "isMfaRegistered": false,
147
+ "isMfaCapable": false,
148
+ "isPasswordlessCapable": false,
149
+ "methodsRegistered": [],
150
+ "isSystemPreferredAuthenticationMethodEnabled": false,
151
+ "systemPreferredAuthenticationMethods": [],
152
+ "userPreferredMethodForSecondaryAuthentication": "none",
153
+ "lastUpdatedDateTime": "2024-01-23T19:37:43.7170699Z"
154
+ },
155
+ {
156
+ "id": "ebd27dbd-75f2-4ef8-bd51-102c3faf62ec",
157
+ "userPrincipalName": "john.doe@contoso.onmicrosoft.com",
158
+ "userDisplayName": "John Doe",
159
+ "userType": "member",
160
+ "isAdmin": false,
161
+ "isSsprRegistered": false,
162
+ "isSsprEnabled": false,
163
+ "isSsprCapable": false,
164
+ "isMfaRegistered": true,
165
+ "isMfaCapable": true,
166
+ "isPasswordlessCapable": false,
167
+ "methodsRegistered": [
168
+ "microsoftAuthenticatorPush",
169
+ "softwareOneTimePasscode"
170
+ ],
171
+ "isSystemPreferredAuthenticationMethodEnabled": false,
172
+ "systemPreferredAuthenticationMethods": [],
173
+ "userPreferredMethodForSecondaryAuthentication": "push",
174
+ "lastUpdatedDateTime": "2024-01-23T19:37:43.7165489Z"
175
+ }
176
+ ]
177
+ ```
178
+
179
+ </TabItem>
180
+ <TabItem value="Text">
181
+
182
+ ```text
183
+ userPrincipalName methodsRegistered lastUpdatedDateTime
184
+ ----------------------------------------------- -------------------------------------------------------------------- ----------------------------
185
+ AdeleV@contoso.onmicrosoft.com 2024-01-23T19:37:43.7170699Z
186
+ john.doe@contoso.onmicrosoft.com microsoftAuthenticatorPush,softwareOneTimePasscode 2024-01-23T19:37:43.7165489Z
187
+ ```
188
+
189
+ </TabItem>
190
+ <TabItem value="CSV">
191
+
192
+ ```csv
193
+ id,userPrincipalName,userDisplayName,userType,isAdmin,isSsprRegistered,isSsprEnabled,isSsprCapable,isMfaRegistered,isMfaCapable,isPasswordlessCapable,isSystemPreferredAuthenticationMethodEnabled,userPreferredMethodForSecondaryAuthentication,lastUpdatedDateTime
194
+ 61b0c52f-a902-4769-9a09-c6628335b00a,AdeleV@contoso.onmicrosoft.com,Adele Vance,member,,,,,,,,,none,2024-01-23T19:37:43.7170699Z
195
+ ebd27dbd-75f2-4ef8-bd51-102c3faf62ec,john.doe@contoso.onmicrosoft.com,John Doe,member,,,,,1,1,,,push,2024-01-23T19:37:43.7165489Z
196
+ ```
197
+
198
+ </TabItem>
199
+ <TabItem value="Markdown">
200
+
201
+ ```md
202
+ # entra user registrationdetails list
203
+
204
+ Date: 1/27/2024
205
+
206
+ ## 61b0c52f-a902-4769-9a09-c6628335b00a
207
+
208
+ Property | Value
209
+ ---------|-------
210
+ id | 61b0c52f-a902-4769-9a09-c6628335b00a
211
+ userPrincipalName | AdeleV@contoso.onmicrosoft.com
212
+ userDisplayName | Adele Vance
213
+ userType | member
214
+ isAdmin | false
215
+ isSsprRegistered | false
216
+ isSsprEnabled | false
217
+ isSsprCapable | false
218
+ isMfaRegistered | false
219
+ isMfaCapable | false
220
+ isPasswordlessCapable | false
221
+ isSystemPreferredAuthenticationMethodEnabled | false
222
+ userPreferredMethodForSecondaryAuthentication | none
223
+ lastUpdatedDateTime | 2024-01-23T19:37:43.7170699Z
224
+
225
+ ## ebd27dbd-75f2-4ef8-bd51-102c3faf62ec
226
+
227
+ Property | Value
228
+ ---------|-------
229
+ id | ebd27dbd-75f2-4ef8-bd51-102c3faf62ec
230
+ userPrincipalName | john.doe@contoso.onmicrosoft.com
231
+ userDisplayName | John Doe
232
+ userType | member
233
+ isAdmin | false
234
+ isSsprRegistered | false
235
+ isSsprEnabled | false
236
+ isSsprCapable | false
237
+ isMfaRegistered | true
238
+ isMfaCapable | true
239
+ isPasswordlessCapable | false
240
+ isSystemPreferredAuthenticationMethodEnabled | false
241
+ userPreferredMethodForSecondaryAuthentication | push
242
+ lastUpdatedDateTime | 2024-01-23T19:37:43.7165489Z
243
+ ```
244
+
245
+ </TabItem>
246
+ </Tabs>
@@ -18,7 +18,7 @@ m365 external item add [options]
18
18
  `-i, --id <id>`
19
19
  : The ID of the item to create
20
20
 
21
- `--externalConnectionId <name>`
21
+ `--externalConnectionId <externalConnectionId>`
22
22
  : The ID of the external connection on which to create the item
23
23
 
24
24
  `--content <content>`
@@ -55,3 +55,7 @@ Converts file from a document library to PDF and saves the converted file to the
55
55
  ```sh
56
56
  m365 file convert pdf --sourceFile "https://contoso.sharepoint.com/Shared Documents/file.docx" --targetFile "https://contoso.sharepoint.com/Shared Documents/file.pdf"
57
57
  ```
58
+
59
+ ## Response
60
+
61
+ The command won't return a response on success.
@@ -62,3 +62,7 @@ Uploads file from the current folder to a document library in the specified site
62
62
  ```sh
63
63
  m365 file add --filePath file.pdf --folderUrl "https://contoso.sharepoint.com/sites/Contoso/Shared Documents" --siteUrl "https://contoso.sharepoint.com/sites/Contoso"
64
64
  ```
65
+
66
+ ## Response
67
+
68
+ The command won't return a response on success.
@@ -0,0 +1,68 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # file copy
4
+
5
+ Copies a file to another location using the Microsoft Graph
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 file copy [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-u, --webUrl <webUrl>`
17
+ : The URL of the site where the file is located.
18
+
19
+ `-s, --sourceUrl <sourceUrl>`
20
+ : Server-relative or absolute URL of the file.
21
+
22
+ `-t, --targetUrl <targetUrl>`
23
+ : Server-relative or absolute URL of the location.
24
+
25
+ `--newName [newName]`
26
+ : New name of the destination file.
27
+
28
+ `--nameConflictBehavior [nameConflictBehavior]`
29
+ : Behavior when a document with the same name is already present at the destination. Possible values: `fail`, `replace`, `rename`. Default is `fail`.
30
+ ```
31
+
32
+ <Global />
33
+
34
+ ## Examples
35
+
36
+ Copy a file by server-relative URL to a document library in another site collection with server relative URL
37
+
38
+ ```sh
39
+ m365 file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/sites/project/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents"
40
+ ```
41
+
42
+ Copy a file by absolute URL to a document library in another site collection with absolute URL
43
+
44
+ ```sh
45
+ m365 file copy --webUrl https://contoso.sharepoint.com --sourceUrl "https://contoso.sharepoint.com/Shared Documents/Document.pdf" --targetUrl "https://contoso.sharepoint.com/sites/IT/Shared Documents"
46
+ ```
47
+
48
+ Copy a file to a document library in another site collection and rename the file
49
+
50
+ ```sh
51
+ m365 file copy --webUrl https://contoso.sharepoint.com --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --newName "newName"
52
+ ```
53
+
54
+ Copy a file to a document library in another site collection and rename the file if a file with the same name already exists.
55
+
56
+ ```sh
57
+ m365 file copy --webUrl https://contoso.sharepoint.com --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --nameConflictBehavior rename
58
+ ```
59
+
60
+ Copy a file to Onedrive for business
61
+
62
+ ```sh
63
+ m365 file copy --webUrl https://contoso.sharepoint.com --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "https://contoso-my.sharepoint.com/personal/john_contoso_onmicrosoft_com/documents"
64
+ ```
65
+
66
+ ## Response
67
+
68
+ The command won't return a response on success.