Forum Discussion

marekcis's avatar
marekcis
Copper Contributor
Feb 02, 2022

Sharing app content to stage

Hi,

as we are trying to get the best of Teams SDK integration, I was wondering about sharing app content to stage functionality. 
I played with a little bit, checked the permissions in `manifest.json` that adds share button for the meeting owner which is really cool (and also played with Miro integration that is using this new feature).

As we'd like to share not the meeting's owner view, but another URL on our domain, I have played with `meeting.shareAppContentToStage` or `meeting.getAppContentStageSharingCapabilities` but both calls are returning error code 1000: App doesn't have sufficient permission to use this API

From SDK perspective these calls were released https://github.com/OfficeDev/microsoft-teams-library-js/releases/tag/1.11.0 
What else do I need to allow in order to get this functionality running? 

Thanks in advance!

Marek

5 Replies

    • marekcis's avatar
      marekcis
      Copper Contributor
      First I stumbled upon on release notes in github
      https://github.com/OfficeDev/microsoft-teams-library-js/releases

      Then I studied public API of SDK, specifically part with Sharing:
      https://github.com/OfficeDev/microsoft-teams-library-js/blob/master/src/public/sharing.ts
      and meeting:
      https://github.com/OfficeDev/microsoft-teams-library-js/blob/master/src/public/meeting.ts

      On sharing there is `shareWebContent` that did nothing when called.
      On meeting there are methods `getAppContentStageSharingCapabilities(...)` and `shareAppContentToStage(...)` that produced error 1000 when called.
      • Nivedipa-MSFT's avatar
        Nivedipa-MSFT
        Icon for Microsoft rankMicrosoft

        marekcisCould you please verify if you have required pre-requisites and given mentioned permissions in your application.
        Meeting apps API references - Teams | Microsoft Docs

        To use the shareAppContentToStage API, you have to obtain the RSC permissions. In the app manifest, configure the authorization property, and the name and type in the resourceSpecific field. For example:

        JSON
        "authorization": {
            "permission": { 
            "resourceSpecific": [
              { 
              "name": "MeetingStage.Write.Chat",
              "type": "Delegated"
              }
            ]
           }
        }

         

Resources