--- title: "Get-TeamUser" slug: "scripting-get-team-user" updated: 2026-01-20T20:18:51Z published: 2026-01-20T20:18:51Z canonical: "help.agilityblue.com/scripting-get-team-user" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.agilityblue.com/llms.txt > Use this file to discover all available pages before exploring further. # Get-TeamUser ## Summary Retrieves an existing team user. ```powershell Get-TeamUser    -Id ``` Returns a team user object. ## Parameters | Parameter | Type | Required? | Notes | | --- | --- | --- | --- | | Id | Int32 | Yes | The team user id. | ## Examples ### Get an existing team user This example retrieves a specific team user and outputs it as JSON. ```powershell # Retrieve a specific team user by id $teamUser = Get-TeamUser -Id 10 Write-Output "Retrieved user '$($teamUser.UserFullName)' of team '$($teamUser.TeamName)' (Id: #$($teamUser.TeamUserId))" # For debug purposes, convert the entity to output as JSON so we can see the available fields Write-Output "" Write-Output "JSON Results:" $jsonOutput = $teamUser | ConvertTo-Json -Depth 10 # Output the entity Write-Output $jsonOutput ``` Execution results: ```json Retrieved user 'Max Miller' of team 'Processing' (Id: #10) JSON Results: {  "TeamUserId": 10,  "TeamId": "34e89524-1052-4381-a19a-083a20de9514",  "UserId": "08077d23-bb13-4727-b76d-ab8fdf9d870f",  "Team": null,  "TeamName": "Processing",  "User": null,  "UserFullName": "Max Miller",  "UserEmail": "mmiller@agilityblue.com",  "UserActive": true,  "CreatedByFullName": "Max Miller",  "CreatedById": "510e109b-6ff5-4442-9670-cd5e3cd82a7a",  "CreatedOn": "2026-01-20T20:13:48.6160196+00:00",  "CreatedBy": null,  "LastUpdatedByFullName": "Max Miller",  "LastUpdatedById": "510e109b-6ff5-4442-9670-cd5e3cd82a7a",  "LastUpdatedOn": "2026-01-20T20:13:48.6160196+00:00",  "LastUpdatedBy": null } ```