Skip to content

Commit b3712b4

Browse files
committed
Add "graph teams list" command
1 parent 2af0d05 commit b3712b4

6 files changed

Lines changed: 712 additions & 20 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# graph teams list
2+
3+
Lists Microsoft Teams teams in the current tenant
4+
5+
## Usage
6+
7+
```sh
8+
graph teams list [options]
9+
```
10+
11+
## Options
12+
13+
Option|Description
14+
------|-----------
15+
`--help`|output usage information
16+
`-j, --joined`|Show only joined teams
17+
`-o, --output [output]`|Output type. `json|text`. Default `text`
18+
`--verbose`|Runs command with verbose logging
19+
`--debug`|Runs command with debug logging
20+
21+
!!! important
22+
Before using this command, connect to the Microsoft Graph, using the [graph connect](../connect.md) command.
23+
24+
## Remarks
25+
26+
To list available Microsoft Teams teams, you have to first connect to the Microsoft Graph using the [graph connect](../connect.md) command, eg. `graph connect`.
27+
28+
You can only see details or archived status on Microsoft Teams you are a member of
29+
30+
## Examples
31+
32+
List all Microsoft Teams in the tenant
33+
34+
```sh
35+
graph teams list
36+
```
37+
38+
List all Microsoft Teams in the tenant you are a member of
39+
40+
```sh
41+
graph teams list --joined
42+
```

docs/manual/mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ pages:
179179
- o365group set: 'cmd/graph/o365group/o365group-set.md'
180180
- siteclassification:
181181
- siteclassification get: 'cmd/graph/siteclassification/siteclassification-get.md'
182+
- teams:
183+
- teams list: 'cmd/graph/teams/teams-list.md'
182184
- user:
183185
- user get: 'cmd/graph/user/user-get.md'
184186
- user list: 'cmd/graph/user/user-list.md'

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"o365",
2929
"spfx",
3030
"sharepoint online",
31-
"sharepoint"
31+
"sharepoint",
32+
"microsoft teams"
3233
],
3334
"author": "https://github.com/pnp/office365-cli/graphs/contributors",
3435
"maintainers": [

src/o365/graph/commands/teams/Team.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
export interface FunSettings {
2-
3-
}
4-
51
export interface Team {
62
id: string;
73
displayName: string;

0 commit comments

Comments
 (0)