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.
- Feb 08, 2022i have figured it out , we have to cast it ((AadUserConversationMember)res).UserId.
Thanks for your replies
Umag98
Feb 08, 2022Brass 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
Feb 08, 2022Microsoft
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.
- Umag98Feb 08, 2022Brass Contributor
ChetanSharma-msft -
it is not just to the members of channel, but also to chat members.
get members of chat , i have tried in graph explorer it seems to get the userId for chat but in graph sdk- Umag98Feb 08, 2022Brass Contributori have figured it out , we have to cast it ((AadUserConversationMember)res).UserId.
Thanks for your replies