Forum Discussion

NadirRiyani's avatar
NadirRiyani
Brass Contributor
Mar 16, 2020

MS Teams Mobile App issue - Receives non Admin in Mobile and Admin in Desktops App (MS Teams SDK)

Hello,

 

I am facing issue in Mobile App. I am ussing MS Team Javascript SDK. I am using property called "context.userTeamRole".  If I use this property in Windows desktop or Web version, I receives User is Team admin or not. but while accessing same page in mobile, I always receives user as non Team admin. 

In conclusion :  MS Team JavaScript SDK treat all user as non adming in case of mobile and defined user role in case of Desktop or web application.

 

Ref link - https://docs.microsoft.com/en-us/javascript/api/@microsoft/teams-js/microsoftteams.userteamrole?view=msteams-client-js-latest

 

microsoftTeams.getContext(function(context){ 
var teamAdmin = context.userTeamRole;
 });

 

    • NadirRiyani's avatar
      NadirRiyani
      Brass Contributor

      Gousia_Begum : Thanks for your quick response.  Do you know ETA to resolve this issue?  We are planning to develop one feature and stuck with this so curious to know ETA for resolution.

Resources