New-ITGlueGroup
SYNOPSIS
Create a group
SYNTAX
__AllParameterSets
New-ITGlueGroup [-Data] <Object> [-Raw] [-WhatIf] [-Confirm]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
The New-ITGlueGroup cmdlet invokes the POST method of the /groups endpoint (Create a group)
Creates a group.
Sample Payload:
{ “data”: { “type”: “groups”, “attributes”: { “name”: “my group” }, “relationships”: { “my-glue-account”: { “data”: { “type”: “my-glue-account”, “attributes”: { “id”: 1688 } } }, “users”: { “data”: [ { “type”: “users”, “attributes”: { “id”: 33850 } } ] }, “organizations”: { “data”: [ { “type”: “organizations”, “attributes”: { “id”: 998356 } } ] } } } } Response: { “data”: { “id”: “21217”, “type”: “groups”, “attributes”: { “name”: “my group”, “created-at”: “2025-04-16T15:34:28.000Z”, “updated-at”: “2025-04-16T15:34:28.000Z”, “description”: null, “my-glue”: true, “my-glue-account-id”: 1688, “hide-from-my-glue”: false, “auto-add-new-organizations”: false }, “relationships”: { “my-glue-account”: { “data”: { “id”: “1688”, “type”: “my_glue_account” } }, “organizations”: { “data”: [ { “id”: “998356”, “type”: “organizations” } ] } } } }
This is a write function. It changes data in ITGlue. Use -WhatIf to see the request without sending it
EXAMPLES
EXAMPLE 1
New-ITGlueGroup -Data @{} -WhatIf
Shows the POST request to the /groups 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):
- accounts_user_ids (array) - Array of account user ids
- 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: (All)
Position: 0
IsRequired: true
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: ''
-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
OUTPUTS
NOTES
Endpoint : POST /groups