Add users to an app in Teams

%3CLINGO-SUB%20id%3D%22lingo-sub-1398633%22%20slang%3D%22en-US%22%3EAdd%20users%20to%20an%20app%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1398633%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%20we%20are%20building%20an%20app%20for%20Teams%20(using%20.Net).%20One%20function%20of%20the%20app%20is%20-%20user%20can%20set%20up%20a%20network.%20How%20can%20we%20show%20list%20of%20users%20who%20are%20already%20part%20of%20your%20Teams%20channel%20to%20a%20user%3F%20So%20that%20they%20can%20add%20anyone%20of%20them%20to%20their%20network.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ESimilar%20example%3A%20When%20we%20set%20up%20a%20task%20through%20Planner%20app%20in%20Teams%2C%20there%20is%20an%20option%20to%20assign%20task%20to%20a%20list%20of%20people.%20That%20list%20automatically%20gets%20populated%20based%20on%20all%20the%20users%20who%20are%20part%20of%20your%20channel.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20can%20we%20do%20that%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELooking%20for%20help%20on%20this%20-%26nbsp%3B%20please%20share%20your%20inputs%20or%20related%20resources%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20very%20much%2C%3C%2FP%3E%3CP%3EBilly%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1398633%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1398806%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20users%20to%20an%20app%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1398806%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F402561%22%20target%3D%22_blank%22%3E%40Billy_Graham%3C%2FA%3E%26nbsp%3BYou%20can%20get%20the%20list%20of%20members%20in%20a%20team%20using%20Bot%20context.%20Could%20you%20please%20try%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fbots%2Fhow-to%2Fget-teams-context%3Ftabs%3Ddotnet%23fetching-the-roster-or-user-profile%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EFetching%20the%20roster%20or%20user%20profile%3C%2FA%3E%26nbsp%3Band%20see%20if%20that%20helps%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi everyone, we are building an app for Teams (using .Net). One function of the app is - user can set up a network. How can we show list of users who are already part of your Teams channel to a user? So that they can add anyone of them to their network. 

Similar example: When we set up a task through Planner app in Teams, there is an option to assign task to a list of people. That list automatically gets populated based on all the users who are part of your channel. 

How can we do that? 

 

Looking for help on this -  please share your inputs or related resources

 

Thank you very much,

Billy 

1 Reply

@Billy_Graham You can get the list of members in a team using Bot context. Could you please try Fetching the roster or user profile and see if that helps?