Add users to an app in Teams

Occasional 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,


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?