Get-ITGlueContact

SYNOPSIS

List all contacts in your account / List all contacts for a particular organization / Retrieve a contact / Retrieve a contact for a particular organization

SYNTAX

List (Default)

Get-ITGlueContact [-FilterContactTypeId <long>] [-FilterFirstName <string>] [-FilterId <long>]
 [-FilterImportant <bool>] [-FilterLastName <string>] [-FilterOrganizationId <long>]
 [-FilterPrimaryEmail <string>] [-FilterPsaId <string>] [-FilterPsaIntegrationType <string>]
 [-FilterTitle <string>] [-Include <string>] [-PageNumber <long>] [-PageSize <long>]
 [-Sort <string>] [-AllResults] [-Raw]

ByOrganizationById

Get-ITGlueContact [-OrganizationId] <long> [-Id] <long> [-Include <string>] [-Raw]

ByOrganization

Get-ITGlueContact [-OrganizationId] <long> [-FilterContactTypeId <long>] [-FilterFirstName <string>]
 [-FilterId <long>] [-FilterImportant <bool>] [-FilterLastName <string>]
 [-FilterOrganizationId <long>] [-FilterPrimaryEmail <string>] [-FilterPsaId <string>]
 [-FilterPsaIntegrationType <string>] [-FilterTitle <string>] [-Include <string>]
 [-PageNumber <long>] [-PageSize <long>] [-Sort <string>] [-AllResults] [-Raw]

ById

Get-ITGlueContact [-Id] <long> [-Include <string>] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

Parameter set [ List ] - The Get-ITGlueContact cmdlet invokes the GET method of the /contacts endpoint (List all contacts in your account)

Returns a list of contacts for all organizations or for a specified organization.

Example return value:

{ “data”: [ { “id”: “72”, “type”: “contacts”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “Robert Storts”, “first-name”: “Robert”, “last-name”: “Storts”, “title”: “Director of IT”, “contact-type-id”: 24, “contact-type-name”: “Approver”, “location-id”: null, “location-name”: null, “important”: null, “notes”: null, “created-at”: “2016-09-12T19:10:26.000Z”, “updated-at”: “2016-09-12T19:10:26.000Z”, “contact-emails”: [ { “value”: “robert@happyfrog.itglue.com”, “primary”: true, “label-name”: “Work” } ], “contact-phones”: [ { “value”: “4155552156”, “extension”: null, “primary”: true, “label-name”: “Work”, “label-type”: “phone”, “formatted-value”: “(415) 555-2156” }, { “value”: “8134890123”, “extension”: null, “primary”: false, “label-name”: “Cell”, “label-type”: “phone”, “formatted-value”: “(813) 489-0123” } ] } }, { “id”: “73”, “type”: “contacts”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “John Morgan”, “first-name”: “John”, “last-name”: “Morgan”, “title”: “VP Operations”, “contact-type-id”: 24, “contact-type-name”: “Approver”, “location-id”: null, “location-name”: null, “important”: true, “notes”: null, “created-at”: “2016-09-12T19:10:26.000Z”, “updated-at”: “2016-09-12T19:10:26.000Z”, “contact-emails”: [ { “value”: “john.morgan@happyfrog.itglue.com”, “primary”: true, “label-name”: “Work” }, { “value”: “john@home.com”, “primary”: false, “label-name”: “Home” } ], “contact-phones”: [ { “value”: “4155557673”, “extension”: null, “primary”: true, “label-name”: “Work”, “label-type”: “phone”, “formatted-value”: “(415) 555-7673” } ] } } ] }

Parameter set [ ByOrganization ] - The Get-ITGlueContact cmdlet invokes the GET method of the /organizations/{organization_id}/relationships/contacts endpoint (List all contacts for a particular organization)

Returns a list of contacts for all organizations or for a specified organization.

Example return value:

{ “data”: [ { “id”: “72”, “type”: “contacts”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “Robert Storts”, “first-name”: “Robert”, “last-name”: “Storts”, “title”: “Director of IT”, “contact-type-id”: 24, “contact-type-name”: “Approver”, “location-id”: null, “location-name”: null, “important”: null, “notes”: null, “created-at”: “2016-09-12T19:10:26.000Z”, “updated-at”: “2016-09-12T19:10:26.000Z”, “contact-emails”: [ { “value”: “robert@happyfrog.itglue.com”, “primary”: true, “label-name”: “Work” } ], “contact-phones”: [ { “value”: “4155552156”, “extension”: null, “primary”: true, “label-name”: “Work”, “label-type”: “phone”, “formatted-value”: “(415) 555-2156” }, { “value”: “8134890123”, “extension”: null, “primary”: false, “label-name”: “Cell”, “label-type”: “phone”, “formatted-value”: “(813) 489-0123” } ] } }, { “id”: “73”, “type”: “contacts”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “John Morgan”, “first-name”: “John”, “last-name”: “Morgan”, “title”: “VP Operations”, “contact-type-id”: 24, “contact-type-name”: “Approver”, “location-id”: null, “location-name”: null, “important”: true, “notes”: null, “created-at”: “2016-09-12T19:10:26.000Z”, “updated-at”: “2016-09-12T19:10:26.000Z”, “contact-emails”: [ { “value”: “john.morgan@happyfrog.itglue.com”, “primary”: true, “label-name”: “Work” }, { “value”: “john@home.com”, “primary”: false, “label-name”: “Home” } ], “contact-phones”: [ { “value”: “4155557673”, “extension”: null, “primary”: true, “label-name”: “Work”, “label-type”: “phone”, “formatted-value”: “(415) 555-7673” } ] } } ] }

Parameter set [ ById ] - The Get-ITGlueContact cmdlet invokes the GET method of the /contacts/{id} endpoint (Retrieve a contact)

Returns the details of an existing contact.

Example return value:

{ “data”: { “id”: “72”, “type”: “contacts”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “Robert Storts”, “first-name”: “Robert”, “last-name”: “Storts”, “title”: “Director of IT”, “contact-type-id”: 24, “contact-type-name”: “Approver”, “location-id”: null, “location-name”: null, “important”: null, “notes”: null, “created-at”: “2016-09-12T19:10:26.000Z”, “updated-at”: “2016-09-12T19:10:26.000Z”, “contact-emails”: [ { “value”: “robert@happyfrog.itglue.com”, “primary”: true, “label-name”: “Work” } ], “contact-phones”: [ { “value”: “4155552156”, “extension”: null, “primary”: true, “label-name”: “Work”, “label-type”: “phone”, “formatted-value”: “(415) 555-2156” }, { “value”: “8134890123”, “extension”: null, “primary”: false, “label-name”: “Cell”, “label-type”: “phone”, “formatted-value”: “(813) 489-0123” } ] }, “relationships”: { “attachments”: { “data”: [ { “id”: “1”, “type”: “attachments” } ] } }, “included”: [ { “id”: “1”, “type”: “attachments”, “attributes”: { “name”: “xxx.txt”, “attachment-file-name”: “xxx.txt”, “attachment-content-type”: “text/x-ruby-script”, “attachment-file-size”: 314368, “ext”: “txt”, “viewable”: true, “download-url”: “/download/url”, “created-at”: “2018-03-01T23:14:18.000Z”, “updated-at”: “2018-03-01T23:14:18.000Z” } } ] } }

Parameter set [ ByOrganizationById ] - The Get-ITGlueContact cmdlet invokes the GET method of the /organizations/{organization_id}/relationships/contacts/{id} endpoint (Retrieve a contact for a particular organization)

Returns the details of an existing contact.

Example return value:

{ “data”: { “id”: “72”, “type”: “contacts”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “Robert Storts”, “first-name”: “Robert”, “last-name”: “Storts”, “title”: “Director of IT”, “contact-type-id”: 24, “contact-type-name”: “Approver”, “location-id”: null, “location-name”: null, “important”: null, “notes”: null, “created-at”: “2016-09-12T19:10:26.000Z”, “updated-at”: “2016-09-12T19:10:26.000Z”, “contact-emails”: [ { “value”: “robert@happyfrog.itglue.com”, “primary”: true, “label-name”: “Work” } ], “contact-phones”: [ { “value”: “4155552156”, “extension”: null, “primary”: true, “label-name”: “Work”, “label-type”: “phone”, “formatted-value”: “(415) 555-2156” }, { “value”: “8134890123”, “extension”: null, “primary”: false, “label-name”: “Cell”, “label-type”: “phone”, “formatted-value”: “(813) 489-0123” } ] }, “relationships”: { “attachments”: { “data”: [ { “id”: “1”, “type”: “attachments” } ] } }, “included”: [ { “id”: “1”, “type”: “attachments”, “attributes”: { “name”: “xxx.txt”, “attachment-file-name”: “xxx.txt”, “attachment-content-type”: “text/x-ruby-script”, “attachment-file-size”: 314368, “ext”: “txt”, “viewable”: true, “download-url”: “/download/url”, “created-at”: “2018-03-01T23:14:18.000Z”, “updated-at”: “2018-03-01T23:14:18.000Z” } } ] } }

EXAMPLES

EXAMPLE 1

Get-ITGlueContact

Returns the result of the /contacts endpoint

EXAMPLE 2

Get-ITGlueContact -PageNumber 2 -PageSize 10

Returns the second page of 10 items from the /contacts endpoint

EXAMPLE 3

Get-ITGlueContact -AllResults

Returns every item from the /contacts endpoint by requesting every page of the results

EXAMPLE 4

Get-ITGlueContact -OrganizationId 12345

Returns the result of the /organizations/{organization_id}/relationships/contacts endpoint

EXAMPLE 5

Get-ITGlueContact -OrganizationId 12345 -PageNumber 2 -PageSize 10

Returns the second page of 10 items from the /organizations/{organization_id}/relationships/contacts endpoint

EXAMPLE 6

Get-ITGlueContact -OrganizationId 12345 -AllResults

Returns every item from the /organizations/{organization_id}/relationships/contacts endpoint by requesting every page of the results

EXAMPLE 7

Get-ITGlueContact -Id 12345

Returns the result of the /contacts/{id} endpoint

EXAMPLE 8

Get-ITGlueContact -OrganizationId 12345 -Id 12345

Returns the result of the /organizations/{organization_id}/relationships/contacts/{id} endpoint

PARAMETERS

-AllResults

Returns all items from the endpoint by requesting every page of the results

When PageSize is not defined 1000 items are requested with each page

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterContactTypeId

Filter by contact type id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterFirstName

Filter by first name

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterId

Filter by id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterImportant

Filter by important

Type: System.Boolean
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterLastName

Filter by last name

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterOrganizationId

Filter by organization id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterPrimaryEmail

Filter by primary email

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterPsaId

Notes: This must be accompanied by the filter for psa_integration_type

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterPsaIntegrationType

Filter by psa integration type

Allowed values: ‘manage’, ‘autotask’, ‘tigerpaw’, ‘kaseya-bms’, ‘pulseway-psa’, ‘vorex’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterTitle

Filter by title

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Id

Defines the ID of the item

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
  Position: 1
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: ById
  Position: 0
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Include

Notes: Comma separated values

Allowed values: ‘adapters_resources’, ‘location’, ‘passwords’, ‘attachments’, ‘tickets’, ‘distinct_remote_contacts’, ‘resource_fields’, ‘user_resource_accesses’, ‘group_resource_accesses’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: ById
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-OrganizationId

Only required for nested relationships route

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases:
- organization_id
ParameterSets:
- Name: ByOrganizationById
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
- Name: ByOrganization
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PageNumber

Defines the page number to return

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PageSize

Defines the number of items to return with each page

The maximum page size is 1000

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Raw

Returns the full API response (data, meta, links, & included) instead of only the data

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Sort

Notes: To Invert order use -, eg: -name Comma separated values

Allowed values: ‘first_name’, ‘last_name’, ‘id’, ‘created_at’, ‘updated_at’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

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

INPUTS

System.Int64

OUTPUTS

NOTES

Endpoint : GET /contacts Endpoint : GET /organizations/{organization_id}/relationships/contacts Endpoint : GET /contacts/{id} Endpoint : GET /organizations/{organization_id}/relationships/contacts/{id}