Get JCAssociation - TheJumpCloud/support GitHub Wiki
external help file: JumpCloud-help.xml Module Name: JumpCloud online version: https://github.com/TheJumpCloud/support/wiki/Get-JCAssociation schema: 2.0.0
The function Get-JCAssociation can be used to query an object's associations and then provide information about how objects are associated with one another.
Get-JCAssociation [-Type] <String> [-Force] [-Id] <String[]>
[[-Fields] <Array>] [[-Limit] <Int32>] [[-Skip] <Int32>] [[-Paginate] <Boolean>] [[-TargetType] <String[]>]
[-Direct] [-Indirect] [-IncludeInfo] [-IncludeNames] [-IncludeVisualPath] [<CommonParameters>]
Get-JCAssociation [-Type] <String> [-Force] [-Name] <String[]>
[[-Fields] <Array>] [[-Limit] <Int32>] [[-Skip] <Int32>] [[-Paginate] <Boolean>] [[-TargetType] <String[]>]
[-Direct] [-Indirect] [-IncludeInfo] [-IncludeNames] [-IncludeVisualPath] [<CommonParameters>]
Get-JCAssociation [-Type] <String> [-Force] [[-Fields] <Array>]
[[-Limit] <Int32>] [[-Skip] <Int32>] [[-Paginate] <Boolean>] [[-TargetType] <String[]>] [-Direct] [-Indirect]
[-IncludeInfo] [-IncludeNames] [-IncludeVisualPath] [<CommonParameters>]
Get-JCAssociation [-Type] <String> [-Force] [[-Fields] <Array>]
[[-Limit] <Int32>] [[-Skip] <Int32>] [[-Paginate] <Boolean>] [[-TargetType] <String[]>] [-Direct] [-Indirect]
[-IncludeInfo] [-IncludeNames] [-IncludeVisualPath] [<CommonParameters>]
The Get-JCAssociation function allows you to view the associations of a specific object to a target object.
PS C:\> Get-JCAssociation -Type:user_group -Name:employee -TargetType:users
List all "users" that are associated with the user_group "employee".
PS C:\> Get-JCAssociation -Type:system -Id:5c9a95f84tdo1376318g5148
List all associations with the system "5c9a95f84tdo1376318g5148".
PS C:\> Get-JCAssociation -Type:system -Id:5c9a95f84tdo1376318g5148 -TargetType:users -Direct
List all "users" that have a direct association with the system "5c9a95f84tdo1376318g5148".
PS C:\> Get-JCAssociation -Type:system -Id:5c9a95f84tdo1376318g5148 -TargetType:users -Indirect
List all "users" that have a indirect association with the system "5c9a95f84tdo1376318g5148".
PS C:\> Get-JCAssociation -Type:system -Id:5c9a95f84tdo1376318g5148 -TargetType:users -IncludeInfo -IncludeNames -IncludeVisualPath
List all "users" that are associated with the system "5c9a95f84tdo1376318g5148" and also get additional metadata about each object.
Returns only "Direct" associations.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
An array of the fields/properties/columns you want to return from the search.
Type: System.Array
Parameter Sets: (All)
Aliases:
Required: False
Position: 95
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Bypass user prompts and dynamic ValidateSet.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The unique id of the object.
Type: System.String[]
Parameter Sets: ById
Aliases: _id
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Appends "Info" and "TargetInfo" properties to output.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Appends "Name" and "TargetName" properties to output.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: 8
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Appends "visualPathById", "visualPathByName", and "visualPathByType" properties to output.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: 9
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Returns only "Indirect" associations.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The number of items you want to return per API call.
Type: System.Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 97
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The name of the object.
Type: System.String[]
Parameter Sets: ByName
Aliases: domain, displayName, username
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Whether or not you want to paginate through the results.
Type: System.Boolean
Parameter Sets: (All)
Aliases:
Accepted values: True, False
Required: False
Position: 99
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The type of the target object.
Type: System.String[]
Parameter Sets: (All)
Aliases: TargetSingular
Accepted values: user, user_group, system, system_group, policy, command, application, g_suite, ldap_server, office_365, radius_server
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The type of the object.
Type: System.String
Parameter Sets: (All)
Aliases: TypeNameSingular
Accepted values: command, ldap_server, policy, application, radius_server, system_group, system, user_group, user, g_suite, office_365
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The number of items you want to skip over per API call.
Type: System.Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 98
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.