Add-Team

Prev Next

Summary

Creates a new team.

Add-Team
    -Entry

Returns the created team object.

Parameters

Parameter

Type

Required?

Notes

Entry

Team object

Yes


Examples

Create a new team

# Create a team object with required fields
$team = @{
    Name = "Processing"
}

$team = Add-Team -Entry $team

# Output some information to help indicate that the team was created
Write-Output "Created team '$($team.Name)' (Id: $($team.Id), # of users: $($team.NumberOfUsers))"

# For debug purposes, convert the data to output as JSON so we can see all the fields
Write-Output ""
Write-Output "JSON Results:"

$jsonOutput = $team | ConvertTo-Json -Depth 10

# Output the data
Write-Output $jsonOutput

Execution results:

Created team 'Processing' (Id: 34e89524-1052-4381-a19a-083a20de9514, # of users: 0)

JSON Results:
{
  "Id": "34e89524-1052-4381-a19a-083a20de9514",
  "Name": "Processing",
  "Description": null,
  "IsSystemTeam": false,
  "NumberOfUsers": 0,
  "TeamUsers": [],
  "LinkedUser": null,
  "CreatedByFullName": "Max Miller",
  "CreatedById": "510e109b-6ff5-4442-9670-cd5e3cd82a7a",
  "CreatedOn": "2026-01-20T20:01:51.7395555+00:00",
  "CreatedBy": null,
  "LastUpdatedByFullName": "Max Miller",
  "LastUpdatedById": "510e109b-6ff5-4442-9670-cd5e3cd82a7a",
  "LastUpdatedOn": "2026-01-20T20:01:51.7395555+00:00",
  "LastUpdatedBy": null
}