@pnp/cli-microsoft365 11.6.0 → 11.7.0-beta.293104a

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 (32) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/config.js +1 -0
  4. package/dist/m365/entra/commands/user/user-license-add.js +2 -1
  5. package/dist/m365/entra/commands/user/user-license-list.js +4 -9
  6. package/dist/m365/entra/commands/user/user-license-remove.js +2 -1
  7. package/dist/m365/outlook/commands/calendar/calendar-add.js +85 -0
  8. package/dist/m365/outlook/commands/calendar/calendar-get.js +71 -0
  9. package/dist/m365/outlook/commands/calendar/calendar-remove.js +100 -0
  10. package/dist/m365/outlook/commands/event/event-cancel.js +103 -0
  11. package/dist/m365/outlook/commands/event/event-list.js +115 -0
  12. package/dist/m365/outlook/commands/event/event-remove.js +104 -0
  13. package/dist/m365/outlook/commands.js +6 -0
  14. package/dist/m365/teams/commands/chat/chat-message-list.js +43 -4
  15. package/dist/utils/calendar.js +37 -0
  16. package/dist/utils/calendarGroup.js +22 -0
  17. package/dist/utils/entraApp.js +9 -2
  18. package/docs/docs/cmd/entra/license/license-list.mdx +19 -0
  19. package/docs/docs/cmd/entra/m365group/m365group-conversation-list.mdx +19 -0
  20. package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +19 -0
  21. package/docs/docs/cmd/entra/user/user-license-add.mdx +19 -0
  22. package/docs/docs/cmd/entra/user/user-license-list.mdx +18 -1
  23. package/docs/docs/cmd/entra/user/user-license-remove.mdx +21 -0
  24. package/docs/docs/cmd/outlook/calendar/calendar-add.mdx +165 -0
  25. package/docs/docs/cmd/outlook/calendar/calendar-get.mdx +165 -0
  26. package/docs/docs/cmd/outlook/calendar/calendar-remove.mdx +86 -0
  27. package/docs/docs/cmd/outlook/event/event-cancel.mdx +85 -0
  28. package/docs/docs/cmd/outlook/event/event-list.mdx +245 -0
  29. package/docs/docs/cmd/outlook/event/event-remove.mdx +85 -0
  30. package/docs/docs/cmd/teams/chat/chat-message-list.mdx +23 -2
  31. package/npm-shrinkwrap.json +322 -306
  32. package/package.json +33 -21
@@ -0,0 +1,86 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # outlook calendar remove
6
+
7
+ Removes the calendar of a user.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook calendar remove [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --id [id]`
19
+ : ID of the calendar. Specify either `id` or `name`, but not both.
20
+
21
+ `-n, --name [name]`
22
+ : Name of the calendar. Specify either `id` or `name`, but not both.
23
+
24
+ `--userId [userId]`
25
+ : ID of the user. Specify either `userId` or `userName`, but not both.
26
+
27
+ `--userName [userName]`
28
+ : UPN of the user. Specify either `userId` or `userName`, but not both.
29
+
30
+ `--calendarGroupId [calendarGroupId]`
31
+ : ID of the calendar group. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
32
+
33
+ `--calendarGroupName [calendarGroupName]`
34
+ : Name of the calendar group. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
35
+
36
+ `--permanent`
37
+ : Permanently remove the calendar, don't send it to the recycle bin.
38
+
39
+ `-f, --force`
40
+ : Don't prompt for confirmation.
41
+ ```
42
+
43
+ <Global />
44
+
45
+ ## Permissions
46
+
47
+ <Tabs>
48
+ <TabItem value="Delegated">
49
+
50
+ | Resource | Permissions |
51
+ |-----------------|---------------------|
52
+ | Microsoft Graph | Calendars.ReadWrite |
53
+
54
+ </TabItem>
55
+ <TabItem value="Application">
56
+
57
+ | Resource | Permissions |
58
+ |-----------------|---------------------|
59
+ | Microsoft Graph | Calendars.ReadWrite |
60
+
61
+ </TabItem>
62
+ </Tabs>
63
+
64
+ ## Examples
65
+
66
+ Remove the calendar for the current signed-in user by id.
67
+
68
+ ```sh
69
+ m365 outlook calendar remove --userId "@meId" --id "AAMkAGI2TGuLAAA="
70
+ ```
71
+
72
+ Permanently remove the calendar from a specific calendar group for the current signed-in user by name.
73
+
74
+ ```sh
75
+ m365 outlook calendar remove --userId "@meId" --calendarGroupName "Colleague calendars" --name "Calendar" --permanent
76
+ ```
77
+
78
+ Remove the calendar from a specific calendar group for a specific user by name.
79
+
80
+ ```sh
81
+ m365 outlook calendar remove --userId b743445a-112c-4fda-9afd-05943f9c7b36 --calendarGroupId "AAMkADIxYjJiYmIzLTFmNjYtNGNhMy0YOkcEEh3vhfAAAGgdFjAAA=" --name "Calendar"
82
+ ```
83
+
84
+ ## Response
85
+
86
+ The command won't return a response on success.
@@ -0,0 +1,85 @@
1
+ import Global from '../../_global.mdx';
2
+ import TabItem from '@theme/TabItem';
3
+ import Tabs from '@theme/Tabs';
4
+
5
+ # outlook event cancel
6
+
7
+ Cancels a calendar event
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook event cancel [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --id <id>`
19
+ : ID of the event.
20
+
21
+ `--userId [userId]`
22
+ : ID of the user that owns the calendar. Specify either `userId` or `userName`, but not both. This option is required when using application permissions.
23
+
24
+ `--userName [userName]`
25
+ : UPN of the user that owns the calendar. Specify either `userId` or `userName`, but not both. This option is required when using application permissions.
26
+
27
+ `--comment [comment]`
28
+ : A comment about the cancellation sent to all the attendees.
29
+
30
+ `-f, --force`
31
+ : Don't prompt for confirmation.
32
+ ```
33
+
34
+ <Global />
35
+
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|---------------------|
43
+ | Microsoft Graph | Calendars.ReadWrite |
44
+
45
+ </TabItem>
46
+ <TabItem value="Application">
47
+
48
+ | Resource | Permissions |
49
+ |-----------------|---------------------|
50
+ | Microsoft Graph | Calendars.ReadWrite |
51
+
52
+ </TabItem>
53
+ </Tabs>
54
+
55
+ ## Remarks
56
+
57
+ :::info
58
+
59
+ This action is only available to the organizer of the event.
60
+
61
+ :::
62
+
63
+ ## Examples
64
+
65
+ Cancel a calendar event from the current logged-in user without a comment
66
+
67
+ ```sh
68
+ m365 outlook event cancel --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAENAAAiIsqMbYjsT5e-T7KzowPTAAAa_WKzAAA=
69
+ ```
70
+
71
+ Cancel a calendar event from a specific user with a comment
72
+
73
+ ```sh
74
+ m365 outlook event cancel --userName "john.doe@contoso.com" --comment "Cancelling for this week due to all hands" --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAENAAAiIsqMbYjsT5e-T7KzowPTAAAa_WKzAAA=
75
+ ```
76
+
77
+ Cancel a calendar event from a specific user specified by user ID
78
+
79
+ ```sh
80
+ m365 outlook event cancel --userId 6799fd1a-723b-4eb7-8e52-41ae530274ca --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAENAAAiIsqMbYjsT5e-T7KzowPTAAAa_WKzAAA=
81
+ ```
82
+
83
+ ## Response
84
+
85
+ The command won't return a response on success.
@@ -0,0 +1,245 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # event list
6
+
7
+ Retrieves a list of events from a specific calendar of a user.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook event list [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `--userId [userId]`
19
+ : ID of the user. Specify either `userId` or `userName`, but not both.
20
+
21
+ `--userName [userName]`
22
+ : UPN of the user. Specify either `userId` or `userName`, but not both.
23
+
24
+ `--calendarId [calendarId]`
25
+ : ID of the calendar. Specify either `calendarId` or `calendarName`, but not both.
26
+
27
+ `--calendarName [calendarName]`
28
+ : Name of the calendar. Specify either `calendarId` or `calendarName`, but not both.
29
+
30
+ `--startDateTime [startDateTime]`
31
+ : Time indicating the inclusive start of a time range when the event starts.
32
+
33
+ `--endDateTime [endDateTime]`
34
+ : Time indicating the exclusive end of a time range when the event starts.
35
+
36
+ `--timeZone [timeZone]`
37
+ : The time zone for the event start and end times.
38
+
39
+ `--properties [properties]`
40
+ : Comma-separated list of properties to retrieve.
41
+
42
+ `--filter [filter]`
43
+ : OData filter to apply when retrieving the events.
44
+ ```
45
+
46
+ <Global />
47
+
48
+ ## Remarks
49
+
50
+ :::info
51
+
52
+ When you specify a value for `timeZone`, consider the options of the [time zone list](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11#time-zones), or [additional time zone list](https://learn.microsoft.com/en-us/graph/api/resources/datetimetimezone?view=graph-rest-1.0#additional-time-zones)
53
+
54
+ :::
55
+
56
+ ## Permissions
57
+
58
+ <Tabs>
59
+ <TabItem value="Delegated">
60
+
61
+ | Resource | Permissions |
62
+ |-----------------|-------------------------------------|
63
+ | Microsoft Graph | Calendars.ReadBasic, Calendars.Read |
64
+
65
+ </TabItem>
66
+ <TabItem value="Application">
67
+
68
+ | Resource | Permissions |
69
+ |-----------------|-------------------------------------|
70
+ | Microsoft Graph | Calendars.ReadBasic, Calendars.Read |
71
+
72
+ </TabItem>
73
+ </Tabs>
74
+
75
+
76
+ ## Examples
77
+
78
+ List all events for the current signed-in user from a calendar specified by id.
79
+
80
+ ```sh
81
+ m365 outlook event list --userId "@meId" --calendarId "AAMkAGRkZ"
82
+ ```
83
+
84
+ List all events for the current signed-in user from a calendar specified by id and return event times in Pacific Standard Time time zone.
85
+
86
+ ```sh
87
+ m365 outlook event list --userId "@meId" --calendarId "AAMkAGRkZ" --timeZone 'Pacific Standard Time'
88
+ ```
89
+
90
+ List only id, subject, start time and end time of all events for a specific user and specific calendar
91
+
92
+ ```sh
93
+ m365 outlook event list --userName "john.doe@contoso.com" --calendarName "Calendar" --properties "id,subject,start,end"
94
+ ```
95
+
96
+ Filter events for the current signed-in user
97
+
98
+ ```sh
99
+ m365 outlook event list --userId "@meId" --calendarId "AAMkAGRkZ" --filter "contains(subject, 'contoso')"
100
+ ```
101
+
102
+ List all events from specific date range
103
+
104
+ ```sh
105
+ m365 outlook event list --userId "@meId" --calendarId "AAMkAGRkZ" --startDateTime '2026-01-01' --endDateTime '2026-01-31'
106
+ ```
107
+
108
+ ## Response
109
+
110
+ <Tabs>
111
+ <TabItem value="JSON">
112
+
113
+ ```json
114
+ [
115
+ {
116
+ "id": "AQMkAGRlM2Y5YTkzLWI2NzAtNDczOS05YWMyLTJhZGY2MGExMGU0MgBGAAADSG3wPE27kUeySjmT5eRT8QcAfJKVL07AC6GQ5pgAAAA==",
117
+ "createdDateTime": "2026-03-29T13:57:47.9194633Z",
118
+ "lastModifiedDateTime": "2026-03-29T13:59:48.6329479Z",
119
+ "changeKey": "fJKVL07sbkmIfHqjbDnRgQAC54IeWA==",
120
+ "categories": [],
121
+ "transactionId": "localevent:c95ac848-7295-ad3e-ee1e-f3832b10bf3e",
122
+ "originalStartTimeZone": "Greenwich Standard Time",
123
+ "originalEndTimeZone": "Greenwich Standard Time",
124
+ "iCalUId": "040000008200E00074C5B7101A82E008000000006B71750684BFDC01000000000000000010000000872F2916501A8442A7DB64D2E460E3D9",
125
+ "uid": "040000008200E00074C5B7101A82E008000000006B71750684BFDC01000000000000000010000000872F2916501A8442A7DB64D2E460E3D9",
126
+ "reminderMinutesBeforeStart": 15,
127
+ "isReminderOn": true,
128
+ "hasAttachments": false,
129
+ "subject": "Retro",
130
+ "bodyPreview": "Retrospective",
131
+ "importance": "normal",
132
+ "sensitivity": "normal",
133
+ "isAllDay": false,
134
+ "isCancelled": false,
135
+ "isOrganizer": true,
136
+ "responseRequested": true,
137
+ "seriesMasterId": null,
138
+ "showAs": "busy",
139
+ "type": "singleInstance",
140
+ "webLink": "https://outlook.office365.com/owa/?itemid=AQMkAGRlM2Y%3D%3D&exvsurl=1&path=/calendar/item",
141
+ "onlineMeetingUrl": null,
142
+ "isOnlineMeeting": false,
143
+ "onlineMeetingProvider": "unknown",
144
+ "allowNewTimeProposals": true,
145
+ "occurrenceId": null,
146
+ "isDraft": false,
147
+ "hideAttendees": false,
148
+ "responseStatus": {
149
+ "response": "organizer",
150
+ "time": "0001-01-01T00:00:00Z"
151
+ },
152
+ "body": {
153
+ "contentType": "html",
154
+ "content": "<html>\r\\\n<head>\r\\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\\\n</head>\r\\\n<body>\r\\\n<div class=\"elementToProof\" style=\"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)\">\r\\\nRetrospective</div>\r\\\n</body>\r\\\n</html>\r\\\n"
155
+ },
156
+ "start": {
157
+ "dateTime": "2026-03-29T16:00:00.0000000",
158
+ "timeZone": "UTC"
159
+ },
160
+ "end": {
161
+ "dateTime": "2026-03-29T18:00:00.0000000",
162
+ "timeZone": "UTC"
163
+ },
164
+ "location": {
165
+ "displayName": "",
166
+ "locationType": "default",
167
+ "uniqueIdType": "unknown",
168
+ "address": {},
169
+ "coordinates": {}
170
+ },
171
+ "locations": [],
172
+ "recurrence": null,
173
+ "attendees": [],
174
+ "organizer": {
175
+ "emailAddress": {
176
+ "name": "John Doe",
177
+ "address": "john.doe@contoso.com"
178
+ }
179
+ },
180
+ "onlineMeeting": null
181
+ }
182
+ ]
183
+ ```
184
+
185
+ </TabItem>
186
+ <TabItem value="Text">
187
+
188
+ ```text
189
+ id subject
190
+ -------------------------------------------------------------------------------------------------------------------------------------------------------- -------
191
+ AQMkAGRlM2Y5YTkzLWI2NzAtNDczOS05YWMyLTJhZGY2MGExMGU0MgBGAAADSG3wPE27kUeySjmT5eRT8QcAfJKVL07AC6GQ5pgAAAA== Retro
192
+ ```
193
+
194
+ </TabItem>
195
+ <TabItem value="CSV">
196
+
197
+ ```csv
198
+ id,createdDateTime,lastModifiedDateTime,changeKey,transactionId,originalStartTimeZone,originalEndTimeZone,iCalUId,uid,reminderMinutesBeforeStart,isReminderOn,hasAttachments,subject,bodyPreview,importance,sensitivity,isAllDay,isCancelled,isOrganizer,responseRequested,seriesMasterId,showAs,type,webLink,onlineMeetingUrl,isOnlineMeeting,onlineMeetingProvider,allowNewTimeProposals,occurrenceId,isDraft,hideAttendees,recurrence,onlineMeeting
199
+ AQMkAGRlM2Y5YTkzLWI2NzAtNDczOS05YWMyLTJhZGY2MGExMGU0MgBGAAADSG3wPE27kUeySjmT5eRT8QcAfJKVL07AC6GQ5pgAAAA==,2026-03-29T13:57:47.9194633Z,2026-03-29T13:59:48.6329479Z,fJKVL07sbkmIfHqjbDnRgQAC54IeWA==,localevent:c95ac848-7295-ad3e-ee1e-f3832b10bf3e,Greenwich Standard Time,Greenwich Standard Time,040000008200E00074C5B7101A82E008000000006B71750684BFDC01000000000000000010000000872F2916501A8442A7DB64D2E460E3D9,040000008200E00074C5B7101A82E008000000006B71750684BFDC01000000000000000010000000872F2916501A8442A7DB64D2E460E3D9,15,1,0,Retro,Retrospective,normal,normal,0,0,1,1,,busy,singleInstance,https://outlook.office365.com/owa/?itemid=AQMkAGRlM2Y=1&path=/calendar/item,,0,unknown,1,,0,0,,
200
+ ```
201
+
202
+ </TabItem>
203
+ <TabItem value="Markdown">
204
+
205
+ ```md
206
+ # outlook event list --debug "false" --verbose "false" --userId "893f9116-e024-4bc6-8e98-54c245129485" --startDateTime "2026-03-29" --endDateTime "2026-03-31"
207
+
208
+ Date: 3/29/2026
209
+
210
+ ## AQMkAGRlM2Y5YTkzLWI2NzAtNDczOS05YWMyLTJhZGY2MGExMGU0MgBGAAADSG3wPE27kUeySjmT5eRT8QcAfJKVL07AC6GQ5pgAAAA==
211
+
212
+ Property | Value
213
+ ---------|-------
214
+ id | AQMkAGRlM2Y5YTkzLWI2NzAtNDczOS05YWMyLTJhZGY2MGExMGU0MgBGAAADSG3wPE27kUeySjmT5eRT8QcAfJKVL07AC6GQ5pgAAAA==
215
+ createdDateTime | 2026-03-29T13:57:47.9194633Z
216
+ lastModifiedDateTime | 2026-03-29T13:59:48.6329479Z
217
+ changeKey | fJKVL07sbkmIfHqjbDnRgQAC54IeWA==
218
+ transactionId | localevent:c95ac848-7295-ad3e-ee1e-f3832b10bf3e
219
+ originalStartTimeZone | Greenwich Standard Time
220
+ originalEndTimeZone | Greenwich Standard Time
221
+ iCalUId | 040000008200E00074C5B7101A82E008000000006B71750684BFDC01000000000000000010000000872F2916501A8442A7DB64D2E460E3D9
222
+ uid | 040000008200E00074C5B7101A82E008000000006B71750684BFDC01000000000000000010000000872F2916501A8442A7DB64D2E460E3D9
223
+ reminderMinutesBeforeStart | 15
224
+ isReminderOn | true
225
+ hasAttachments | false
226
+ subject | Retro
227
+ bodyPreview | Retrospective
228
+ importance | normal
229
+ sensitivity | normal
230
+ isAllDay | false
231
+ isCancelled | false
232
+ isOrganizer | true
233
+ responseRequested | true
234
+ showAs | busy
235
+ type | singleInstance
236
+ webLink | https://outlook.office365.com/owa/?itemid=AQMkAGRlM2Y5YTkzLWI2NzAtNDczOS05YWMyLTJhZGY2MGExMGU0MgBGAAADSG3wPE27kUeySjmT5eRT8QcAfJKVL07sbkmIfHqjbDnRgQAAAgENAAAAfJKVL07sbkmIfHqjbDnRgQAC6GQ5pgAAAA%3D%3D&exvsurl=1&path=/calendar/item
237
+ isOnlineMeeting | false
238
+ onlineMeetingProvider | unknown
239
+ allowNewTimeProposals | true
240
+ isDraft | false
241
+ hideAttendees | false
242
+ ```
243
+
244
+ </TabItem>
245
+ </Tabs>
@@ -0,0 +1,85 @@
1
+ import Global from '../../_global.mdx';
2
+ import TabItem from '@theme/TabItem';
3
+ import Tabs from '@theme/Tabs';
4
+
5
+ # outlook event remove
6
+
7
+ Removes an event from a calendar
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook event remove [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --id <id>`
19
+ : ID of the event.
20
+
21
+ `--userId [userId]`
22
+ : ID of the user that owns the calendar. Specify either `userId` or `userName`, but not both. This option is required when using application permissions.
23
+
24
+ `--userName [userName]`
25
+ : UPN of the user that owns the calendar. Specify either `userId` or `userName`, but not both. This option is required when using application permissions.
26
+
27
+ `--permanent`
28
+ : Permanently remove the event, don't send it to the recycle bin.
29
+
30
+ `-f, --force`
31
+ : Don't prompt for confirmation.
32
+ ```
33
+
34
+ <Global />
35
+
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|---------------------|
43
+ | Microsoft Graph | Calendars.ReadWrite |
44
+
45
+ </TabItem>
46
+ <TabItem value="Application">
47
+
48
+ | Resource | Permissions |
49
+ |-----------------|---------------------|
50
+ | Microsoft Graph | Calendars.ReadWrite |
51
+
52
+ </TabItem>
53
+ </Tabs>
54
+
55
+ ## Remarks
56
+
57
+ :::warning
58
+
59
+ When using the `--permanent` option, the event will be permanently deleted and cannot be recovered.
60
+
61
+ :::
62
+
63
+ ## Examples
64
+
65
+ Remove a calendar event from the current logged-in user
66
+
67
+ ```sh
68
+ m365 outlook event remove --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAENAAAiIsqMbYjsT5e-T7KzowPTAAAa_WKzAAA=
69
+ ```
70
+
71
+ Permanently remove a calendar event from a specific user
72
+
73
+ ```sh
74
+ m365 outlook event remove --userName "john.doe@contoso.com" --permanent --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAENAAAiIsqMbYjsT5e-T7KzowPTAAAa_WKzAAA=
75
+ ```
76
+
77
+ Remove a calendar event from a specific user specified by user ID
78
+
79
+ ```sh
80
+ m365 outlook event remove --userId 6799fd1a-723b-4eb7-8e52-41ae530274ca --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAENAAAiIsqMbYjsT5e-T7KzowPTAAAa_WKzAAA=
81
+ ```
82
+
83
+ ## Response
84
+
85
+ The command won't return a response on success.
@@ -18,8 +18,17 @@ m365 teams chat message list [options]
18
18
  `-i, --chatId <chatId>`
19
19
  : The ID of the chat conversation.
20
20
 
21
- `--endDateTime [endDateTime]`
21
+ `--createdEndDateTime [createdEndDateTime]`
22
22
  : Time indicating the exclusive end of a time range when the message was created.
23
+
24
+ `--endDateTime [endDateTime]`
25
+ : (deprecated. Use `createdEndDateTime` instead) Time indicating the exclusive end of a time range when the message was created.
26
+
27
+ `--modifiedStartDateTime [modifiedStartDateTime]`
28
+ : Time indicating the inclusive start of a time range when the message was last modified. Cannot be combined with `createdEndDateTime`.
29
+
30
+ `--modifiedEndDateTime [modifiedEndDateTime]`
31
+ : Time indicating the exclusive end of a time range when the message was last modified. Cannot be combined with `createdEndDateTime`.
23
32
  ```
24
33
 
25
34
  <Global />
@@ -54,7 +63,19 @@ m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread
54
63
  List messages from a Microsoft Teams chat conversation created before November 1, 2022
55
64
 
56
65
  ```sh
57
- m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2 --endDateTime 2022-11-01T00:00:00Z
66
+ m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2 --createdEndDateTime 2022-11-01T00:00:00Z
67
+ ```
68
+
69
+ List messages from a Microsoft Teams chat conversation modified after October 1, 2025
70
+
71
+ ```sh
72
+ m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2 --modifiedStartDateTime 2025-10-01T00:00:00Z
73
+ ```
74
+
75
+ List messages from a Microsoft Teams chat conversation modified between October 1, 2025 and November 1, 2025
76
+
77
+ ```sh
78
+ m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2 --modifiedStartDateTime 2025-10-01T00:00:00Z --modifiedEndDateTime 2025-11-01T00:00:00Z
58
79
  ```
59
80
 
60
81
  ## Response