Hi Matteo Messmer,
Thank you for posting your question in the Microsoft Q&A forum.
Based on the behavior you described, I searched through Microsoft documentation and community discussions but could not find any official explanation for this scenario. However, I conducted some tests in the Teams UI by adding members to two types of channels: Private and Shared channel and here are my observations along with a potential explanation:
- Private Channel
- When adding a member, I could only select users who were already members of the team.
- It was not possible to search for or add users outside the team.
- Shared Channel
There is no direct “Add member” option, but there is a Share with… feature.- Share with people: I was able to search for users who were not members of the host team. However, the invited user must accept the request before joining the channel.
- Share with a team: The UI displays a list of teams the channel is shared with, along with the host team. This suggests that a shared channel can exist across multiple teams.
If Microsoft Graph API applies similar logic to shared channels as the Teams UI does, this could explain why the API does not strictly validate the relationship between teamId and channelId when the channel is shared. Shared channels are designed for cross-team collaboration, so they are not bound to a single team in the same way private channels are.
I hope these insights are helpful in understanding the behavior you observed.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.