Get-ITGlueUser

SYNOPSIS

List all users / Retrieve a user

SYNTAX

List (Default)

Get-ITGlueUser [-FilterEmail <string>] [-FilterId <long>] [-FilterName <string>]
 [-FilterRoleName <string>] [-FilterSalesforceId <long>] [-PageNumber <long>] [-PageSize <long>]
 [-Sort <string>] [-AllResults] [-Raw]

ById

Get-ITGlueUser [-Id] <long> [-CheckAuthorization <string>] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

Parameter set [ List ] - The Get-ITGlueUser cmdlet invokes the GET method of the /users endpoint (List all users)

Returns a list of the users in your account.

Example return value:

{ “data”: [ { “id”: “35”, “type”: “users”, “attributes”: { “first-name”: “Carl”, “last-name”: “Beck”, “role-name”: “Editor”, “email”: “carl.beck@krakentechs.com”, “avatar”: “”, “invitation-sent-at”: “2016-10-12T21:15:00.000Z”, “invitation-accepted-at”: “2016-10-12T21:15:00.000Z”, “current-sign-in-at”: “2016-10-12T21:15:00.000Z”, “current-sign-in-ip”: 127.0.0.1, “last-sign-in-at”: “2016-10-12T21:15:00.000Z”, “last-sign-in-ip”: 127.0.0.1, “reputation”: 6543, “my-glue”: false, “my-glue-account-id”: null } }, { “id”: “36”, “type”: “users”, “attributes”: { “first-name”: “Larry”, “last-name”: null, “role-name”: “Creator”, “email”: “larry.watson@krakentechs.com”, “avatar”: “”, “invitation-sent-at”: “2016-10-12T21:15:00.000Z”, “invitation-accepted-at”: “2016-10-12T21:15:00.000Z”, “current-sign-in-at”: “2016-10-12T21:15:00.000Z”, “current-sign-in-ip”: 127.0.0.1, “last-sign-in-at”: “2016-10-12T21:15:00.000Z”, “last-sign-in-ip”: 127.0.0.1, “reputation”: 4927, “my-glue”: false, “my-glue-account-id”: null } }, { “id”: “37”, “type”: “users”, “attributes”: { “first-name”: “Jackie”, “last-name”: “Tilds”, “role-name”: “Lite”, “email”: “jackie@happyfrog.itglue.com”, “avatar”: “”, “invitation-sent-at”: “2016-10-12T21:15:00.000Z”, “invitation-accepted-at”: “2016-10-12T21:15:00.000Z”, “current-sign-in-at”: “2016-10-12T21:15:00.000Z”, “current-sign-in-ip”: 127.0.0.1, “last-sign-in-at”: “2016-10-12T21:15:00.000Z”, “last-sign-in-ip”: 127.0.0.1, “reputation”: 4749, “my-glue”: true, “my-glue-account-id”: 2 } } ]

}

Parameter set [ ById ] - The Get-ITGlueUser cmdlet invokes the GET method of the /users/{id} endpoint (Retrieve a user)

Returns information about one user. When the ‘check_authorization’ parameter is provided, the response includes a ‘resource-authorizations’ attribute containing authorization status for the requested resource types. Example return value:

{ “data”: { “id”: “35”, “type”: “users”, “attributes”: { “first-name”: “Carl”, “last-name”: “Beck”, “role-name”: “Editor”, “email”: “carl.beck@krakentechs.com”, “avatar”: “”, “invitation-sent-at”: “2016-10-12T21:15:00.000Z”, “invitation-accepted-at”: “2016-10-12T21:15:00.000Z”, “current-sign-in-at”: “2016-10-12T21:15:00.000Z”, “current-sign-in-ip”: 127.0.0.1, “last-sign-in-at”: “2016-10-12T21:15:00.000Z”, “last-sign-in-ip”: 127.0.0.1, “reputation”: 6543, “my-glue”: true, “my-glue-account-id”: 2, “resource-authorizations”: { “document”: true, “password”: false }, } } }

EXAMPLES

EXAMPLE 1

Get-ITGlueUser

Returns the result of the /users endpoint

EXAMPLE 2

Get-ITGlueUser -PageNumber 2 -PageSize 10

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

EXAMPLE 3

Get-ITGlueUser -AllResults

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

EXAMPLE 4

Get-ITGlueUser -Id 12345

Returns the result of the /users/{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: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-CheckAuthorization

Comma-separated list of resource types to check authorization for

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

-FilterEmail

Filter by email

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- 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: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterName

exact match only

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

-FilterRoleName

Filter by role name

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

-FilterSalesforceId

Filter by salesforce id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- 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: ById
  Position: 0
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PageNumber

Defines the page number to return

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- 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: 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: ‘name’, ‘email’, ‘reputation’, ‘id’, ‘created_at’, ‘updated_at’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- 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 /users Endpoint : GET /users/{id}