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
68 changes: 34 additions & 34 deletions docs/Get-AdoMembership.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!--
document type: cmdlet
external help file: Azure.DevOps.PSModule-Help.xml
HelpUri: https://learn.microsoft.com/en-us/rest/api/azure/devops/graph/memberships/get
Locale: en-NL
HelpUri: 'https://learn.microsoft.com/en-us/rest/api/azure/devops/graph/memberships/get
Locale: nl-NL
Module Name: Azure.DevOps.PSModule
ms.date: 11/01/2025
ms.date: 02-22-2026
PlatyPS schema version: 2024-05-01
title: Get-AdoMembership
-->
Expand All @@ -17,18 +17,18 @@ Get membership relationships

## SYNTAX

### GetMembership
### ListMemberships (Default)

```text
Get-AdoMembership [[-CollectionUri] <string>] [-SubjectDescriptor] <string[]>
[-ContainerDescriptor] <string> [[-Version] <string>] [<CommonParameters>]
```powershell
Get-AdoMembership -SubjectDescriptor <string[]> [-CollectionUri <string>] [-Depth <int>]
[-Direction <string>] [-Version <string>] [<CommonParameters>]
```

### ListMemberships
### GetMembership

```text
Get-AdoMembership [[-CollectionUri] <string>] [-SubjectDescriptor] <string[]>
[[-Depth] <int32>] [[-Direction] <string>] [[-Version] <string>] [<CommonParameters>]
```powershell
Get-AdoMembership -SubjectDescriptor <string[]> [-CollectionUri <string>]
[-ContainerDescriptor <string>] [-Version <string>] [<CommonParameters>]
```

## ALIASES
Expand Down Expand Up @@ -128,28 +128,6 @@ AcceptedValues: []
HelpMessage: ''
```

### -SubjectDescriptor

Mandatory.
A descriptor to the child subject in the relationship.

```yaml
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -ContainerDescriptor

Optional.
Expand Down Expand Up @@ -180,7 +158,7 @@ Default is 1.

```yaml
Type: System.Int32
DefaultValue: ''
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
Expand Down Expand Up @@ -222,6 +200,28 @@ AcceptedValues:
HelpMessage: ''
```

### -SubjectDescriptor

Mandatory.
A descriptor to the child subject in the relationship.

```yaml
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -Version

Optional.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

Retrieves all memberships of a group with a depth of 2.
#>
[CmdletBinding()]
[CmdletBinding(DefaultParameterSetName = 'ListMemberships')]
param (
[Parameter(ValueFromPipelineByPropertyName)]
[ValidateScript({ Confirm-CollectionUri -Uri $_ })]
Expand Down