web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Cannot add users to Team using powershell module

(0) ShareShare
ReportReport
Posted on by 20

Hello,

I'm trying to add a user to a team using the Microsoft.Xrm.Data.Powershell module

I'm using the example https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell.Samples/blob/master/UserOperations/Team_AddMemberToTeam.ps1

However when I execute it I receive

ResponseName Results ExtensionData
------------ ------- -------------
AddMembersTeam {} System.Runtime.Serialization.ExtensionDataObject

It seems nothing is happening. The user is not added to the team.

If I add the user manually in the web ui everything works.

How can I further troubleshoot this?

Thank you in advance.

I have the same question (0)
  • Suggested answer
    Wei Xiong Profile Picture
    on at

    Hi Jorge,

    These are the official document of add user to teams using powershell. You could refer to the sample and test.

    https://docs.microsoft.com/en-us/powershell/module/teams/add-teamuser?view=teams-ps

    https://techcommunity.microsoft.com/t5/microsoft-teams/adding-team-members-to-a-team-using-powershell/m-p/65035#

    Thanks,

    Wei

  • Suggested answer
    Wei Xiong Profile Picture
    on at

    Please let me know if any question.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans