@pnp/cli-microsoft365 10.5.0-beta.b872a3f → 10.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 (76) hide show
  1. package/README.md +1 -1
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/Auth.js +61 -3
  5. package/dist/appInsights.js +10 -4
  6. package/dist/m365/booking/commands/business/business-get.js +0 -3
  7. package/dist/m365/commands/login.js +3 -0
  8. package/dist/m365/entra/commands/user/user-guest-add.js +0 -3
  9. package/dist/m365/flow/commands/environment/environment-get.js +0 -3
  10. package/dist/m365/flow/commands/flow-get.js +0 -3
  11. package/dist/m365/flow/commands/run/run-get.js +0 -3
  12. package/dist/m365/pa/commands/app/app-get.js +0 -3
  13. package/dist/m365/pa/commands/environment/environment-get.js +0 -3
  14. package/dist/m365/planner/commands/bucket/bucket-add.js +0 -3
  15. package/dist/m365/planner/commands/plan/plan-add.js +0 -3
  16. package/dist/m365/planner/commands/plan/plan-get.js +0 -3
  17. package/dist/m365/planner/commands/plan/plan-set.js +0 -3
  18. package/dist/m365/planner/commands/task/task-checklistitem-add.js +0 -3
  19. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +0 -3
  20. package/dist/m365/pp/commands/card/card-get.js +0 -3
  21. package/dist/m365/pp/commands/copilot/copilot-get.js +0 -3
  22. package/dist/m365/pp/commands/dataverse/dataverse-table-get.js +0 -3
  23. package/dist/m365/pp/commands/environment/environment-get.js +0 -3
  24. package/dist/m365/pp/commands/solution/solution-get.js +0 -3
  25. package/dist/m365/pp/commands/solution/solution-publisher-get.js +0 -3
  26. package/dist/m365/pp/commands/website/website-get.js +0 -3
  27. package/dist/m365/spo/commands/group/group-member-add.js +0 -3
  28. package/dist/m365/spo/commands/homesite/homesite-add.js +66 -0
  29. package/dist/m365/spo/commands/page/page-copy.js +0 -3
  30. package/dist/m365/spo/commands/page/page-get.js +0 -3
  31. package/dist/m365/spo/commands/page/page-header-set.js +47 -10
  32. package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +0 -3
  33. package/dist/m365/spo/commands.js +1 -0
  34. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +0 -3
  35. package/dist/m365/todo/commands/list/list-get.js +0 -3
  36. package/dist/m365/todo/commands/task/task-get.js +0 -3
  37. package/dist/m365/viva/commands/engage/engage-community-user-add.js +113 -0
  38. package/dist/m365/viva/commands/engage/engage-community-user-remove.js +107 -0
  39. package/dist/m365/viva/commands/engage/engage-message-add.js +0 -3
  40. package/dist/m365/viva/commands/engage/engage-message-get.js +0 -3
  41. package/dist/m365/viva/commands/engage/engage-user-get.js +0 -3
  42. package/dist/m365/viva/commands.js +2 -0
  43. package/docs/docs/cmd/booking/business/business-get.mdx +13 -0
  44. package/docs/docs/cmd/entra/user/user-guest-add.mdx +11 -0
  45. package/docs/docs/cmd/flow/environment/environment-get.mdx +2 -0
  46. package/docs/docs/cmd/flow/flow-get.mdx +2 -0
  47. package/docs/docs/cmd/flow/run/run-get.mdx +17 -13
  48. package/docs/docs/cmd/login.mdx +9 -1
  49. package/docs/docs/cmd/pa/app/app-get.mdx +8 -2
  50. package/docs/docs/cmd/pa/environment/environment-get.mdx +5 -3
  51. package/docs/docs/cmd/planner/plan/plan-add.mdx +2 -0
  52. package/docs/docs/cmd/planner/plan/plan-get.mdx +8 -4
  53. package/docs/docs/cmd/planner/plan/plan-set.mdx +2 -0
  54. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +6 -3
  55. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +12 -3
  56. package/docs/docs/cmd/pp/card/card-get.mdx +36 -5
  57. package/docs/docs/cmd/pp/copilot/copilot-get.mdx +41 -5
  58. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +19 -4
  59. package/docs/docs/cmd/pp/environment/environment-get.mdx +5 -2
  60. package/docs/docs/cmd/pp/solution/solution-get.mdx +12 -7
  61. package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +12 -7
  62. package/docs/docs/cmd/pp/website/website-get.mdx +22 -4
  63. package/docs/docs/cmd/spo/group/group-member-add.mdx +12 -3
  64. package/docs/docs/cmd/spo/homesite/homesite-add.mdx +124 -0
  65. package/docs/docs/cmd/spo/page/page-copy.mdx +30 -4
  66. package/docs/docs/cmd/spo/page/page-get.mdx +44 -5
  67. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.mdx +7 -0
  68. package/docs/docs/cmd/todo/list/list-get.mdx +7 -4
  69. package/docs/docs/cmd/todo/task/task-get.mdx +7 -2
  70. package/docs/docs/cmd/viva/engage/engage-community-user-add.mdx +67 -0
  71. package/docs/docs/cmd/viva/engage/engage-community-user-remove.mdx +55 -0
  72. package/docs/docs/cmd/viva/engage/engage-message-add.mdx +37 -12
  73. package/docs/docs/cmd/viva/engage/engage-message-get.mdx +27 -13
  74. package/docs/docs/cmd/viva/engage/engage-user-get.mdx +50 -8
  75. package/npm-shrinkwrap.json +97 -84
  76. package/package.json +15 -15
@@ -0,0 +1,55 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # viva engage community user remove
6
+
7
+ Removes a specified user from a Microsoft 365 Viva Engage community
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 viva engage community user remove [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --communityId [communityId]`
19
+ : The ID of the Viva Engage community. Specify `communityId`, `communityDisplayName` or `entraGroupId`.
20
+
21
+ `-n, --communityDisplayName [communityDisplayName]`
22
+ : The display name of the Viva Engage community. Specify `communityId`, `communityDisplayName` or `entraGroupId`.
23
+
24
+ `--entraGroupId [entraGroupId]`
25
+ : The ID of the Microsoft 365 group. Specify `communityId`, `communityDisplayName` or `entraGroupId`.
26
+
27
+ `--id [id]`
28
+ : Microsoft Entra ID of the user. Specify either `id` or `userName` but not both.
29
+
30
+ `--userName [userName]`
31
+ : The user principal name of the user. Specify either `id` or `userName` but not both.
32
+
33
+ `-f, --force`
34
+ : Don't prompt for confirming removing the user from the specified Viva Engage community.
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Examples
40
+
41
+ Remove a user specified by ID as a member from a community specified by display name.
42
+
43
+ ```sh
44
+ m365 viva engage community user remove --communityDisplayName "All company" --id 098b9f52-f48c-4401-819f-29c33794c3f5
45
+ ```
46
+
47
+ Remove a user specified by UPN from a community specified by its group ID without confirmation.
48
+
49
+ ```sh
50
+ m365 viva engage community user remove --entraGroupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userName john.doe@contoso.com --force
51
+ ```
52
+
53
+ ## Response
54
+
55
+ The command won't return a response on success.
@@ -16,19 +16,19 @@ m365 viva engage message add [options]
16
16
 
17
17
  ```md definition-list
18
18
  `-b, --body <body>`
19
- : The text of the message body
19
+ : The text of the message body.
20
20
 
21
21
  `--groupId [groupId]`
22
- : Post the message to this group, specified by ID. If this is set then the networkId is inferred from it. You must either specify `groupId`, `repliedToId`, or `directToUserIds` to send the message
22
+ : Post the message to this group, specified by ID. If this is set then the networkId is inferred from it. You must either specify `groupId`, `repliedToId`, or `directToUserIds` to send the message.
23
23
 
24
24
  `-r, --repliedToId [repliedToId]`
25
- : The message ID this message is in reply to. If this is set then groupId and networkId are inferred from it. You must either specify `groupId`, `repliedToId`, or `directToUserIds` to send the message
25
+ : The message ID this message is in reply to. If this is set then groupId and networkId are inferred from it. You must either specify `groupId`, `repliedToId`, or `directToUserIds` to send the message.
26
26
 
27
27
  `-d, --directToUserIds [directToUserIds]`
28
- : Send a private message to one or more users, specified by ID. Alternatively, you can use the Viva Engage network e-mail addresses instead of the IDs. You must either specify `groupId`, `repliedToId`, or `directToUserIds` to send the message
28
+ : Send a private message to one or more users, specified by ID. Alternatively, you can use the Viva Engage network e-mail addresses instead of the IDs. You must either specify `groupId`, `repliedToId`, or `directToUserIds` to send the message.
29
29
 
30
30
  `--networkId [networkId]`
31
- : Specify the network to post a message
31
+ : Specify the network to post a message.
32
32
  ```
33
33
 
34
34
  <Global />
@@ -43,37 +43,37 @@ In order to use this command, you need to grant the Microsoft Entra application
43
43
 
44
44
  ## Examples
45
45
 
46
- Replies to a message with the ID 1231231231
46
+ Replies to a message with the ID 1231231231.
47
47
 
48
48
  ```sh
49
49
  m365 viva engage message add --body "Hello everyone!" --repliedToId 1231231231
50
50
  ```
51
51
 
52
- Sends a private conversation to the user with the ID 1231231231
52
+ Sends a private conversation to the user with the ID 1231231231.
53
53
 
54
54
  ```sh
55
55
  m365 viva engage message add --body "Hello everyone!" --directToUserIds 1231231231
56
56
  ```
57
57
 
58
- Sends a private conversation to multiple users by ID
58
+ Sends a private conversation to multiple users by ID.
59
59
 
60
60
  ```sh
61
61
  m365 viva engage message add --body "Hello everyone!" --directToUserIds "1231231231,1121312"
62
62
  ```
63
63
 
64
- Sends a private conversation to the user with several e-mail addresses
64
+ Sends a private conversation to the user with several e-mail addresses.
65
65
 
66
66
  ```sh
67
67
  m365 viva engage message add --body "Hello everyone!" --directToUserIds "pl@nubo.eu,sc@nubo.eu"
68
68
  ```
69
69
 
70
- Posts a message to the group with the ID 12312312312
70
+ Posts a message to the group with the ID 12312312312.
71
71
 
72
72
  ```sh
73
73
  m365 viva engage message add --body "Hello everyone!" --groupId 12312312312
74
74
  ```
75
75
 
76
- Posts a message to the group with the ID 12312312312 in the network 11112312
76
+ Posts a message to the group with the ID 12312312312 in the network 11112312.
77
77
 
78
78
  ```sh
79
79
  m365 viva engage message add --body "Hello everyone!" --groupId 12312312312 --networkId 11112312
@@ -126,7 +126,32 @@ m365 viva engage message add --body "Hello everyone!" --groupId 12312312312 --ne
126
126
  <TabItem value="Text">
127
127
 
128
128
  ```text
129
- id: 2000337648877569
129
+ attachments : []
130
+ body : {"parsed":"Hello everyone!","plain":"Hello everyone!","rich":"Hello everyone!"}
131
+ chat_client_sequence: null
132
+ client_type : O365 Api Auth
133
+ client_url : https://api.yammer.com
134
+ content_excerpt : Hello everyone!
135
+ created_at : 2022/11/11 20:59:56 +0000
136
+ delegate_id : null
137
+ direct_message : false
138
+ group_created_id : 31158067201
139
+ group_id : 31158067201
140
+ id : 2000337346863105
141
+ language : null
142
+ liked_by : {"count":0,"names":[]}
143
+ message_type : update
144
+ network_id : 5897756673
145
+ notified_user_ids : []
146
+ privacy : public
147
+ replied_to_id : null
148
+ sender_id : 36425097217
149
+ sender_type : user
150
+ supplemental_reply : false
151
+ system_message : false
152
+ thread_id : 2000337346863105
153
+ url : https://www.yammer.com/api/v1/messages/2000337346863105
154
+ web_url : https://www.yammer.com/contoso.onmicrosoft.com/messages/2000337346863105
130
155
  ```
131
156
 
132
157
  </TabItem>
@@ -31,13 +31,13 @@ In order to use this command, you need to grant the Microsoft Entra application
31
31
 
32
32
  ## Examples
33
33
 
34
- Returns the Viva Engage message with the id 1239871123
34
+ Returns the Viva Engage message with the id 1239871123.
35
35
 
36
36
  ```sh
37
37
  m365 viva engage message get --id 1239871123
38
38
  ```
39
39
 
40
- Returns the Viva Engage message with the id 1239871123 in JSON format
40
+ Returns the Viva Engage message with the id 1239871123 in JSON format.
41
41
 
42
42
  ```sh
43
43
  m365 viva engage message get --id 1239871123 --output json
@@ -89,17 +89,31 @@ m365 viva engage message get --id 1239871123 --output json
89
89
  <TabItem value="Text">
90
90
 
91
91
  ```text
92
- content_excerpt: Hello everyone!
93
- created_at : 2022/11/11 21:00:20 +0000
94
- direct_message : false
95
- group_id : 31158067201
96
- id : 2000337749565441
97
- message_type : update
98
- privacy : public
99
- replied_to_id : null
100
- sender_id : 36425097217
101
- system_message : false
102
- thread_id : 2000337749565441
92
+ attachments : []
93
+ body : {"parsed":"Hello everyone!","plain":"Hello everyone!","rich":"Hello everyone!"}
94
+ chat_client_sequence: null
95
+ client_type : O365 Api Auth
96
+ client_url : https://api.yammer.com
97
+ content_excerpt : Hello everyone!
98
+ created_at : 2022/11/11 21:00:20 +0000
99
+ delegate_id : null
100
+ direct_message : false
101
+ group_id : 31158067201
102
+ id : 2000337749565441
103
+ language : no
104
+ liked_by : {"count":0,"names":[]}
105
+ message_type : update
106
+ network_id : 5897756673
107
+ notified_user_ids : []
108
+ privacy : public
109
+ replied_to_id : null
110
+ sender_id : 36425097217
111
+ sender_type : user
112
+ supplemental_reply : false
113
+ system_message : false
114
+ thread_id : 2000337749565441
115
+ url : https://www.yammer.com/api/v1/messages/2000337749565441
116
+ web_url : https://www.yammer.com/contoso.onmicrosoft.com/messages/2000337749565441
103
117
  ```
104
118
 
105
119
  </TabItem>
@@ -146,20 +146,62 @@ m365 viva engage user get --email john.smith@contoso.com --output json
146
146
  <TabItem value="Text">
147
147
 
148
148
  ```text
149
- email : johndoe@contoso.onmicrosoft.com
150
- full_name: johndoe
151
- id : 172006440961
152
- job_title:
153
- state : active
154
- url : https://www.yammer.com/api/v1/users/172006440961
149
+ type : user
150
+ id : 172006440961
151
+ network_id : 5897756673
152
+ state : active
153
+ job_title :
154
+ location : null
155
+ interests : null
156
+ summary : null
157
+ expertise : null
158
+ full_name : johndoe
159
+ activated_at : 2021/10/08 11:45:32 +0000
160
+ auto_activated : false
161
+ show_ask_for_photo : true
162
+ first_name :
163
+ last_name :
164
+ network_name : Contoso
165
+ network_domains : [contoso.onmicrosoft.com]
166
+ url : https://www.yammer.com/api/v1/users/172006440961
167
+ web_url : https://www.yammer.com/contoso.onmicrosoft.com/users/172006440961
168
+ name : admvalo
169
+ mugshot_url : https://mugshot0eu-1.assets-yammer.com/mugshot/images/no_photo.png?P1=1668205841&P2=104&P3=1&P4=rnM2FPGOQRZja018qxAFshyyDKKH5SoUXkdpCeizRsdD7Ggb9sLSsdEaq-icgk8g-QTHFd0Te4e1gWAZTGEQekSQop6G6zDcipIVbZMJStEzfKKUpSPckcXnRhfiI55yq5AOLhVcH2PP_ZBFF-0KXMaP8Hy4dGDIRzmnUGhFuik0yjNBoGaYL86ltEaDMQdpS6rS3lmIMzLPGEMfr30vethAxRT7SKBbNYxZ9iPxO6TY26cYCfv0VyyMQkGGviPU4__EVjOoklhD_AqFGFGHtRTcsafpKOxCE70Z-nUpIPbYCel3las7w105u4SvPPC00Q5LUMDynUvzPiR4-vbWPg&size=48x48
170
+ mugshot_redirect_url : https://www.yammer.com/mugshot/images/redirect/48x48/no_photo.png
171
+ mugshot_url_template : https://mugshot0eu-1.assets-yammer.com/mugshot/images/no_photo.png?P1=1668205841&P2=104&P3=1&P4=rnM2FPGOQRZja018qxAFshyyDKKH5SoUXkdpCeizRsdD7Ggb9sLSsdEaq-icgk8g-QTHFd0Te4e1gWAZTGEQekSQop6G6zDcipIVbZMJStEzfKKUpSPckcXnRhfiI55yq5AOLhVcH2PP_ZBFF-0KXMaP8Hy4dGDIRzmnUGhFuik0yjNBoGaYL86ltEaDMQdpS6rS3lmIMzLPGEMfr30vethAxRT7SKBbNYxZ9iPxO6TY26cYCfv0VyyMQkGGviPU4__EVjOoklhD_AqFGFGHtRTcsafpKOxCE70Z-nUpIPbYCel3las7w105u4SvPPC00Q5LUMDynUvzPiR4-vbWPg&size={width}x{height}
172
+ mugshot_redirect_url_template: https://www.yammer.com/mugshot/images/redirect/{width}x{height}/no_photo.png
173
+ birth_date :
174
+ birth_date_complete :
175
+ timezone : Pacific Time (US & Canada)
176
+ external_urls : []
177
+ admin : true
178
+ verified_admin : true
179
+ m365_yammer_admin : false
180
+ supervisor_admin : false
181
+ o365_tenant_admin : true
182
+ can_broadcast : true
183
+ department : null
184
+ email : johndoe@contoso.onmicrosoft.com
185
+ guest : false
186
+ aad_guest : false
187
+ can_view_delegations : false
188
+ can_create_new_network : false
189
+ can_browse_external_networks: false
190
+ reaction_accent_color : none
191
+ significant_other :
192
+ kids_names :
193
+ previous_companies : []
194
+ schools : []
195
+ show_invite_lightbox : false
196
+ age_bucket : notSet
155
197
  ```
156
198
 
157
199
  </TabItem>
158
200
  <TabItem value="CSV">
159
201
 
160
202
  ```csv
161
- id,full_name,email,job_title,state,url
162
- 172006440961,admvalo,johndoe@contoso.onmicrosoft.com,,active,https://www.yammer.com/api/v1/users/172006440961
203
+ type,id,network_id,state,job_title,location,interests,summary,expertise,full_name,activated_at,auto_activated,show_ask_for_photo,first_name,last_name,network_name,network_domains,url,web_url,name,mugshot_url,mugshot_redirect_url,mugshot_url_template,mugshot_redirect_url_template,birth_date,birth_date_complete,timezone,external_urls,admin,verified_admin,m365_yammer_admin,supervisor_admin,o365_tenant_admin,can_broadcast,department,email,guest,aad_guest,can_view_delegations,can_create_new_network,can_browse_external_networks,reaction_accent_color,significant_other,kids_names,previous_companies,schools,show_invite_lightbox,age_bucket
204
+ user,172006440961,5897756673,active,,,null,null,null,johndoe,"2021/10/08 11:45:32 +0000",false,true,,,Contoso,"[contoso.onmicrosoft.com]","https://www.yammer.com/api/v1/users/172006440961","https://www.yammer.com/contoso.onmicrosoft.com/users/172006440961",admvalo,"https://mugshot0eu-1.assets-yammer.com/mugshot/images/no_photo.png?P1=1668205841&P2=104&P3=1&P4=rnM2FPGOQRZja018qxAFshyyDKKH5SoUXkdpCeizRsdD7Ggb9sLSsdEaq-icgk8g-QTHFd0Te4e1gWAZTGEQekSQop6G6zDcipIVbZMJStEzfKKUpSPckcXnRhfiI55yq5AOLhVcH2PP_ZBFF-0KXMaP8Hy4dGDIRzmnUGhFuik0yjNBoGaYL86ltEaDMQdpS6rS3lmIMzLPGEMfr30vethAxRT7SKBbNYxZ9iPxO6TY26cYCfv0VyyMQkGGviPU4__EVjOoklhD_AqFGFGHtRTcsafpKOxCE70Z-nUpIPbYCel3las7w105u4SvPPC00Q5LUMDynUvzPiR4-vbWPg&size=48x48","https://www.yammer.com/mugshot/images/redirect/48x48/no_photo.png","https://mugshot0eu-1.assets-yammer.com/mugshot/images/no_photo.png?P1=1668205841&P2=104&P3=1&P4=rnM2FPGOQRZja018qxAFshyyDKKH5SoUXkdpCeizRsdD7Ggb9sLSsdEaq-icgk8g-QTHFd0Te4e1gWAZTGEQekSQop6G6zDcipIVbZMJStEzfKKUpSPckcXnRhfiI55yq5AOLhVcH2PP_ZBFF-0KXMaP8Hy4dGDIRzmnUGhFuik0yjNBoGaYL86ltEaDMQdpS6rS3lmIMzLPGEMfr30vethAxRT7SKBbNYxZ9iPxO6TY26cYCfv0VyyMQkGGviPU4__EVjOoklhD_AqFGFGHtRTcsafpKOxCE70Z-nUpIPbYCel3las7w105u4SvPPC00Q5LUMDynUvzPiR4-vbWPg&size={width}x{height}","https://www.yammer.com/mugshot/images/redirect/{width}x{height}/no_photo.png",,"",Pacific Time (US & Canada),[],true,true,false,false,true,true,null,johndoe@contoso.onmicrosoft.com,false,false,false,false,false,none,,,[],[],false,notSet
163
205
  ```
164
206
 
165
207
  </TabItem>