Get JCPolicyGroupMember - TheJumpCloud/support GitHub Wiki

Get-JCPolicyGroupMember

SYNOPSIS

This function will return the policies that are members of the specified policy group.

SYNTAX

ById

Get-JCPolicyGroupMember -PolicyGroupID <String> [<CommonParameters>]

ByName

Get-JCPolicyGroupMember -Name <String> [<CommonParameters>]

DESCRIPTION

Get-JCPolicyGroupMember will return policies which are members of the specified policy group.

EXAMPLES

Example 1

PS C:\> Get-JCPolicyGroupMember -PolicyGroupID 66c3a774294f1e9071f080c9

This will return all policies that are members of the policy group with id: '66c3a774294f1e9071f080c9'

Example 2

PS C:\> Get-JCPolicyGroupMember -Name "PolicyGroupName"

This will return all policies that are members of the policy group with name: 'PolicyGroupName'

PARAMETERS

-Name

The Name of the JumpCloud policy group to query and return members of

Type: System.String
Parameter Sets: ByName
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PolicyGroupID

The ID of the JumpCloud policy group to query and return members of

Type: System.String
Parameter Sets: ById
Aliases: _id, id

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️