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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Add an user to a Team using C#

(0) ShareShare
ReportReport
Posted on by 455

Hi Guys,

I have a requirement that add an user to a team using C#, I saw someone online talking about using this method "AddMembersTeamRequest", but I don't understand how to use those required parameter, such as TeamTemplateIdSystemUserId and Record. Can anyone elaborate on that?

And I also want to add the specified queue for the user, how do i need to do?

Thanks,

Stone

I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at
    RE: Add an user to a Team using C#

    looks like you confused the AddMembersTeamRequest with AddUserToRecordTeamRequest.

    AddMembersTeamRequest is correct and requires TeamId and MemberIds (array of userid)

    hope it helps

  • Stone Huang Profile Picture
    455 on at
    RE: Add an user to a Team using C#

    Hi Guido,

    Thanks for your reminder, I also realized that I had made a mistake.

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 179 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 110

#3
Gerardo Rentería García Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans