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

%3CLINGO-SUB%20id%3D%22lingo-sub-1230341%22%20slang%3D%22en-US%22%3EMS%20Teams%20Mobile%20App%20issue%20-%20Receives%20non%20Admin%20in%20Mobile%20and%20Admin%20in%20Desktops%20App%20(MS%20Teams%20SDK)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1230341%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20facing%20issue%20in%20Mobile%20App.%20I%20am%20ussing%20MS%20Team%20Javascript%20SDK.%20I%20am%20using%20property%20called%20%22%3CSPAN%3E%3CEM%3Econtext.userTeamRole%3C%2FEM%3E%22.%26nbsp%3B%3C%2FSPAN%3E%20If%20I%20use%20this%20property%20in%20Windows%20desktop%20or%20Web%20version%2C%20I%20receives%20User%20is%20Team%20admin%20or%20not.%20but%20while%20accessing%20same%20page%20in%20mobile%2C%20I%20always%20receives%20user%20as%20non%20Team%20admin.%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20conclusion%20%3A%26nbsp%3B%20MS%20Team%20JavaScript%20SDK%20treat%20all%20user%20as%20non%20adming%20in%20case%20of%20mobile%20and%20defined%20user%20role%20in%20case%20of%20Desktop%20or%20web%20application.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERef%20link%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fjavascript%2Fapi%2F%40microsoft%2Fteams-js%2Fmicrosoftteams.userteamrole%3Fview%3Dmsteams-client-js-latest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fjavascript%2Fapi%2F%40microsoft%2Fteams-js%2Fmicrosoftteams.userteamrole%3Fview%3Dmsteams-client-js-latest%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EmicrosoftTeams.getContext(function(context)%7B%20%0Avar%20teamAdmin%20%3D%20context.userTeamRole%3B%0A%20%7D)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1230341%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1231984%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Mobile%20App%20issue%20-%20Receives%20non%20Admin%20in%20Mobile%20and%20Admin%20in%20Desktops%20App%20(MS%20Teams%20SD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1231984%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F561606%22%20target%3D%22_blank%22%3E%40NadirRiyani%3C%2FA%3E%26nbsp%3BThanks%20for%20reporting%20this.%20We%20could%20repro%20it.%20I%20have%20raised%20a%20bug%20for%20this%20and%20we%20are%20looking%20into%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1232607%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Mobile%20App%20issue%20-%20Receives%20non%20Admin%20in%20Mobile%20and%20Admin%20in%20Desktops%20App%20(MS%20Teams%20SD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1232607%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359599%22%20target%3D%22_blank%22%3E%40Gousia_Begum%3C%2FA%3E%26nbsp%3B%3A%20Thanks%20for%20your%20quick%20response.%26nbsp%3B%20Do%20you%20know%20ETA%20to%20resolve%20this%20issue%3F%26nbsp%3B%20We%20are%20planning%20to%20develop%20one%20feature%20and%20stuck%20with%20this%20so%20curious%20to%20know%20ETA%20for%20resolution.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1248664%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Mobile%20App%20issue%20-%20Receives%20non%20Admin%20in%20Mobile%20and%20Admin%20in%20Desktops%20App%20(MS%20Teams%20SD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1248664%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F561606%22%20target%3D%22_blank%22%3E%40NadirRiyani%3C%2FA%3E%26nbsp%3BWe%20have%20raised%20a%20bug%20which%20is%20being%20worked%20on.%20But%20we%20do%20not%20have%20an%20ETA%20to%20share%20with%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1255221%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Mobile%20App%20issue%20-%20Receives%20non%20Admin%20in%20Mobile%20and%20Admin%20in%20Desktops%20App%20(MS%20Teams%20SD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1255221%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359599%22%20target%3D%22_blank%22%3E%40Gousia_Begum%3C%2FA%3E%26nbsp%3B%20Thanks%20for%20the%20update.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

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...

 

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

 

4 Replies
Highlighted

@NadirRiyani Thanks for reporting this. We could repro it. I have raised a bug for this and we are looking into this.

Highlighted

@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.

Highlighted

@NadirRiyani We have raised a bug which is being worked on. But we do not have an ETA to share with you.

Highlighted