Using userTeamRole is not working

Copper Contributor

Hello,

We are developing a teams app and we are trying to get the user role in order to distinguish between regular user and administrators. 

We call microsoftTeams sdk as follows:

 

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

 

The issue is that the userTeamRole returns undefined and it seems the context does not include this information.

 

Do we need to define something in order to get it?

Is there an alternative way to know if the user is administrator or not?

 

Thanks,

Ronny

2 Replies
Anything so far? I have the same problem with static tabs

Unfortunately no.