CmdID / PowerShell / Cmdlets / Add
Add-TeamUser
The Add-TeamUser adds an owner or member to the team, and to the unified group which backs the team. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 3 parameters Its page in the reference
Parameters
-GroupIdGroupId of the team.-RoleMember or Owner.-UserUPN of a user of the organization (user principal name - e.g.