Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/Teams/beta/examples/Get-MgBetaAllTeamChannel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Example 1: List all channels

```powershell
Import-Module Microsoft.Graph.Beta.Teams
Get-MgBetaAllTeamChannel -TeamId $teamId
```
This example will list all channels

### Example 2: List all shared channels

```powershell
Import-Module Microsoft.Graph.Beta.Teams
Get-MgBetaAllTeamChannel -TeamId $teamId -Filter "membershipType eq 'shared'"
```
This example will list all shared channels

16 changes: 9 additions & 7 deletions src/Teams/beta/examples/Get-MgBetaChatMember.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
### Example 1: Code snippet
### Example 1: Code snippet

```powershellImport-Module Microsoft.Graph.Beta.Teams
```powershell
Import-Module Microsoft.Graph.Beta.Teams
Get-MgBetaChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId
```
This example shows how to use the Get-MgBetaChatMember Cmdlet.

Get-MgBetaChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId
```
This example shows how to use the Get-MgBetaChatMember Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
8 changes: 6 additions & 2 deletions src/Teams/beta/examples/Get-MgBetaChatPermissionGrant.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### Example 1: Using the Get-MgBetaChatPermissionGrant Cmdlet
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.Teams
Get-MgBetaChatPermissionGrant -ChatId $chatId
```
This example shows how to use the Get-MgBetaChatPermissionGrant Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

18 changes: 0 additions & 18 deletions src/Teams/beta/examples/Get-MgBetaGroupTeamPermissionGrant.md
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
{{ Add output here }}
```

{{ Add description here }}

22 changes: 22 additions & 0 deletions src/Teams/v1.0/examples/Get-MgAllTeamChannel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Example 1: List all channels

```powershell
Import-Module Microsoft.Graph.Teams
Get-MgAllTeamChannel -TeamId $teamId
```
This example will list all channels

### Example 2: List all shared channels

```powershell
Import-Module Microsoft.Graph.Teams
Get-MgAllTeamChannel -TeamId $teamId -Filter "membershipType eq 'shared'"
```
This example will list all shared channels