Set-ITGlueGroup

SYNOPSIS

Bulk update groups / Update group

SYNTAX

BulkUpdate (Default)

Set-ITGlueGroup -Data <Object> [-FilterName <string>] [-Raw] [-WhatIf] [-Confirm]

ById

Set-ITGlueGroup [-Id] <long> -Data <Object> [-Raw] [-WhatIf] [-Confirm]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

Parameter set [ BulkUpdate ] - The Set-ITGlueGroup cmdlet invokes the PATCH method of the /groups endpoint (Bulk update groups)

Updates a list of groups in bulk. The bulk update PATCH format is similar to the response from a GET on a list resource. It accepts a partial representation of each group-only the attributes you provide will be updated; all others remain unchanged.

The request body must contain a JSON array with one or more objects:

{ “data”: [ { “type”: “groups”, “attributes”: { “id”: 1, “name”: “New Group Name”, “auto_add_new_organizations”: true, “accounts_user_ids”: [1, 2, 3] } }, { “type”: “groups”, “attributes”: { “id”: 2, “name”: “Another Group Name” } } ] }

Parameter set [ ById ] - The Set-ITGlueGroup cmdlet invokes the PATCH method of the /groups/{id} endpoint (Update group)

Updates a group.

Sample Payload:

{ “data”: { “type”: “groups”, “attributes”: { “name”: “Itglue”, “accounts_user_ids”: [1, 2, 3] } } } Response: { “data”: { “id”: “1”, “type”: “groups”, “attributes”: { “name”: “ITGlue”, “created-at”: “2022-10-06T18:39:51.000Z”, “updated-at”: “2025-01-17T21:14:45.000Z”, “description”: “”, “my-glue”: true, “my-glue-account-id”: 1, “hide-from-my-glue”: false, “auto-add-new-organizations”: false }, “relationships”: {} } }

This is a write function. It changes data in ITGlue. Use -WhatIf to see the request without sending it

EXAMPLES

EXAMPLE 1

Set-ITGlueGroup -Data @{} -WhatIf

Shows the PATCH request to the /groups endpoint without sending it

EXAMPLE 2

Set-ITGlueGroup -Id 12345 -Data @{} -WhatIf

Shows the PATCH request to the /groups/{id} endpoint without sending it

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-Data

Defines the data of the JSON:API request body. Accepts a hashtable, an object, or a JSON string

The value is sent as the data property of the request body, such as @{ type = ‘organizations’; attributes = @{ name = ‘Example’ } }. An object with a single data property & a JSON string are sent as is

Body properties:

  • type (string) - groups
  • attributes (object):
    • auto_add_new_organizations (boolean) - Automatically add new organizations to this group
    • description (string) - Description of the group
    • hide_from_my_glue (boolean) - Hide this group from my glue
    • id (integer) - Unique identifier for the group bulk update
    • name (string) - Name of the group
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ById
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: BulkUpdate
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterName

Filter by name

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  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: ''

-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: ''

-WhatIf

Runs the command in a mode that only reports what would happen without performing the actions.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
  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 : PATCH /groups Endpoint : PATCH /groups/{id}