Forum Discussion
Paul_By
Nov 08, 2021Copper Contributor
MS Team. Bot. TeamsInfo.GetMemberAsync returns 'Forbidden'
Hi. Bot handles "Messaging Extension Query activity" (OnTeamsMessagingExtensionQueryAsync) request. One by One chat (My User - User 1). I need to know "My User" email address. I use await Teams...
- Nov 08, 2021Workaround: I get 'TeamsChannelAccount' data (TeamsInfo.GetMemberAsync(...)) in "Bot-User" conversation (first step) and put it into 'UserState'. Then I can get and use it.
My Bot: "scopes": ["personal"]. Maybe this is the reason of the issue.
Nivedipa-MSFT
Microsoft
Nov 08, 2021Could you please share sample details which you are referring.It helps us to repro the issue.
- Paul_ByNov 08, 2021Copper ContributorWorkaround: I get 'TeamsChannelAccount' data (TeamsInfo.GetMemberAsync(...)) in "Bot-User" conversation (first step) and put it into 'UserState'. Then I can get and use it.
My Bot: "scopes": ["personal"]. Maybe this is the reason of the issue.