Forum Discussion
Umag98
Feb 07, 2022Brass Contributor
how to get user id from the endpoint /teams/{team-id}/channels/{channel-id}/members
is there a way to get the userid when we use get members of the channel endpoint.
- i have figured it out , we have to cast it ((AadUserConversationMember)res).UserId.
Thanks for your replies
5 Replies
Sort By
- ChetanSharma-msft
Microsoft
I think, you need to use "userId" instead of id.- Umag98Brass Contributor
ChetanSharma-msft ,
i am notable to point to the userId from the response, it seems to not have that field in response.
i don't see any userID here.using graph sdk version 4.0.0
- ChetanSharma-msft
Microsoft
Umag98 - As per documentation, we should get the userId also in response.
Reference doc: List members of a channel - Microsoft Graph v1.0 | Microsoft Docs
Can you please try with Graph API call using postman or Graph Explorer and check it once.