File tree Expand file tree Collapse file tree 3 files changed +175
-188
lines changed
src/m365/teams/commands/chat Expand file tree Collapse file tree 3 files changed +175
-188
lines changed Original file line number Diff line number Diff line change 1
1
# teams chat list
2
2
3
- Lists all Microsoft Teams chat conversations for the current user.
3
+ Lists all Microsoft Teams chat conversations for the current or a specific user.
4
4
5
5
## Usage
6
6
@@ -10,9 +10,15 @@ m365 teams chat list [options]
10
10
11
11
## Options
12
12
13
- ` -t, --type [chatType ] `
13
+ ` -t, --type [type ] `
14
14
: The chat type to optionally filter chat conversations by type. The value can be ` oneOnOne ` , ` group ` or ` meeting ` .
15
15
16
+ ` --userId [userId] `
17
+ : ID of the user. Has to be specified when using application permissions. Specify either ` userId ` or ` userName ` , but not both.
18
+
19
+ ` --userName [userName] `
20
+ : UPN of the user. Has to be specified when using application permissions. Specify either ` userId ` or ` userName ` , but not both.
21
+
16
22
--8<-- "docs/cmd/_ global.md"
17
23
18
24
## Examples
@@ -23,10 +29,16 @@ List all the Microsoft Teams chat conversations of the current user.
23
29
m365 teams chat list
24
30
```
25
31
26
- List only the one on one Microsoft Teams chat conversations.
32
+ List only the one on one Microsoft Teams chat conversations of a specific user retrieved by id.
33
+
34
+ ``` sh
35
+ m365 teams chat list --userId e6296ed0-4b7d-4ace-aed4-f6b7371ce060 --type oneOnOne
36
+ ```
37
+
38
+ List only the group Microsoft Teams chat conversations of a specific user retrieved by mail
27
39
28
40
``` sh
29
- m365 teams chat list --type oneOnOne
41
+ m365 teams chat list --
userName ' [email protected] ' -- type
group
30
42
```
31
43
32
44
## Response
You can’t perform that action at this time.
0 commit comments