How to get teams userId using aadObjectId ?

Copper Contributor

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

1 Reply
i am too facing the same issue, please help by providing a solution if any