Forum Discussion

santhosh272's avatar
santhosh272
Copper Contributor
May 30, 2023

How to get teams userId using aadObjectId ?

Hello There, 

 

I'm trying to add my custom ms teams app as channel or group app where I have to get the team details such as teamId, userId (the user who adds the teams app to the channel). I have used teams javascript client library to get the teams context details using getContext() method. 

 

In the context, I'm able to get teamsId and userObjectId (aadObjectId), but I need to get teams platform’s user Id for business logic. 

 

Is there any way to get the userId in front-end itself, or by using aadObjectId , without using Graph API since we are using bot builder sdk

  • Firoza770's avatar
    Firoza770
    Copper Contributor
    i am too facing the same issue, please help by providing a solution if any

Resources