Sharing app content to stage

%3CLINGO-SUB%20id%3D%22lingo-sub-3105109%22%20slang%3D%22en-US%22%3ESharing%20app%20content%20to%20stage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3105109%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3Eas%20we%20are%20trying%20to%20get%20the%20best%20of%20Teams%20SDK%20integration%2C%20I%20was%20wondering%20about%20sharing%20app%20content%20to%20stage%20functionality.%26nbsp%3B%3CBR%20%2F%3EI%20played%20with%20a%20little%20bit%2C%20checked%20the%20permissions%20in%20%60manifest.json%60%20that%20adds%20share%20button%20for%20the%20meeting%20owner%20which%20is%20really%20cool%20(and%20also%20played%20with%20Miro%20integration%20that%20is%20using%20this%20new%20feature).%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20we'd%20like%20to%20share%20not%20the%20meeting's%20owner%20view%2C%20but%20another%20URL%20on%20our%20domain%2C%20I%20have%20played%20with%20%60meeting.shareAppContentToStage%60%20or%20%60meeting.getAppContentStageSharingCapabilities%60%20but%20both%20calls%20are%20returning%20error%20code%201000%3A%26nbsp%3BApp%20doesn't%20have%20sufficient%20permission%20to%20use%20this%20API%3CBR%20%2F%3E%3CBR%20%2F%3EFrom%20SDK%20perspective%20these%20calls%20were%20released%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2Fmicrosoft-teams-library-js%2Freleases%2Ftag%2F1.11.0%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ein%20the%20latest%20version%201.11.0%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EWhat%20else%20do%20I%20need%20to%20allow%20in%20order%20to%20get%20this%20functionality%20running%3F%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20in%20advance!%3C%2FP%3E%3CP%3EMarek%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3105109%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMeetings%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3109083%22%20slang%3D%22en-US%22%3ERe%3A%20Sharing%20app%20content%20to%20stage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3109083%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1216237%22%20target%3D%22_blank%22%3E%40marekcis%3C%2FA%3E%20-%20We%20are%20investigating%20your%20query.%20We%20will%20get%20back%20to%20you%20once%20we%20have%20any%20update.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3109494%22%20slang%3D%22en-US%22%3ERe%3A%20Sharing%20app%20content%20to%20stage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3109494%22%20slang%3D%22en-US%22%3EFirst%20I%20stumbled%20upon%20on%20release%20notes%20in%20github%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2Fmicrosoft-teams-library-js%2Freleases%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FOfficeDev%2Fmicrosoft-teams-library-js%2Freleases%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20I%20studied%20public%20API%20of%20SDK%2C%20specifically%20part%20with%20Sharing%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2Fmicrosoft-teams-library-js%2Fblob%2Fmaster%2Fsrc%2Fpublic%2Fsharing.ts%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FOfficeDev%2Fmicrosoft-teams-library-js%2Fblob%2Fmaster%2Fsrc%2Fpublic%2Fsharing.ts%3C%2FA%3E%3CBR%20%2F%3Eand%20meeting%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2Fmicrosoft-teams-library-js%2Fblob%2Fmaster%2Fsrc%2Fpublic%2Fmeeting.ts%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FOfficeDev%2Fmicrosoft-teams-library-js%2Fblob%2Fmaster%2Fsrc%2Fpublic%2Fmeeting.ts%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EOn%20sharing%20there%20is%20%60shareWebContent%60%20that%20did%20nothing%20when%20called.%3CBR%20%2F%3EOn%20meeting%20there%20are%20methods%20%60getAppContentStageSharingCapabilities(...)%60%20and%20%60shareAppContentToStage(...)%60%20that%20produced%20error%201000%20when%20called.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3118409%22%20slang%3D%22en-US%22%3ERe%3A%20Sharing%20app%20content%20to%20stage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3118409%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1216237%22%20target%3D%22_blank%22%3E%40marekcis%3C%2FA%3E%20-%26nbsp%3B%3CSPAN%3ECould%20you%20please%20verify%20if%20you%20have%20required%20pre-requisites%20and%20given%20mentioned%20permissions%20in%20your%20application.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fapps-in-teams-meetings%2Fapi-references%3Ftabs%3Ddotnet%23share-app-content-to-stage-api%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMeeting%20apps%20API%20references%20-%20Teams%20%7C%20Microsoft%20Docs%3C%2FA%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20use%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CFONT%20color%3D%22%23000000%22%3E%3CCODE%3EshareAppContentToStage%3C%2FCODE%3E%3C%2FFONT%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EAPI%2C%20you%20have%20to%20obtain%20the%20RSC%20permissions.%20In%20the%20app%20manifest%2C%20configure%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Eauthorization%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eproperty%2C%20and%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Ename%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Etype%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ein%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EresourceSpecific%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efield.%20For%20example%3A%3C%2FP%3E%0A%3CDIV%20id%3D%22code-try-16%22%20class%3D%22codeHeader%22%20data-bi-name%3D%22code-header%22%3E%3CSPAN%20class%3D%22language%22%3EJSON%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CPRE%20class%3D%22has-inner-focus%22%20tabindex%3D%220%22%3E%3CCODE%20class%3D%22lang-json%22%20data-author-content%3D%22%26quot%3Bauthorization%26quot%3B%3A%20%7B%0A%20%20%20%20%26quot%3Bpermission%26quot%3B%3A%20%7B%20%0A%20%20%20%20%26quot%3BresourceSpecific%26quot%3B%3A%20%5B%0A%20%20%20%20%20%20%7B%20%0A%20%20%20%20%20%20%26quot%3Bname%26quot%3B%3A%20%26quot%3BMeetingStage.Write.Chat%26quot%3B%2C%0A%20%20%20%20%20%20%26quot%3Btype%26quot%3B%3A%20%26quot%3BDelegated%26quot%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%5D%0A%20%20%20%7D%0A%7D%0A%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22hljs-string%22%3E%22authorization%22%3C%2FSPAN%3E%3A%20%7B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-attr%22%3E%22permission%22%3C%2FSPAN%3E%3A%20%7B%20%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-attr%22%3E%22resourceSpecific%22%3C%2FSPAN%3E%3A%20%5B%0A%20%20%20%20%20%20%7B%20%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-attr%22%3E%22name%22%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22hljs-string%22%3E%22MeetingStage.Write.Chat%22%3C%2FSPAN%3E%2C%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-attr%22%3E%22type%22%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22hljs-string%22%3E%22Delegated%22%3C%2FSPAN%3E%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%5D%0A%20%20%20%7D%0A%7D%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

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 in the latest version 1.11.0 
What else do I need to allow in order to get this functionality running? 

Thanks in advance!

Marek

5 Replies

@marekcis - Could you please share the sample or document which you are referring for this?

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.

@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"
      }
    ]
   }
}

 

@marekcis - Could you please confirm if the above suggestion helped you in any way or are you still facing the issue?
Thanks for your responses, I will give it a shot at the start of next week :)