Sync app to Teams

Brass Contributor

Hi, I created a webpart in spfx. I deployed it to tenant app catalog with a PowerShell script. I saw an option where i can sync this webpart to MS Teams. When i want to do it with PowerShell script using Sync-PnPAppToTeams -Identity F8FBB38C-26DB-4B17-B506-35D0706BBA46 (this id i took from tanant app catalog). When i type this command i get this error 

buszi99_0-1690279504079.png

I'm also logged to Tenant admin account, to do it I used command connect-pnponline -url https://{tenant}.sharepoint.com/sites/t1. Do you know how to fix it ?

 

2 Replies
Hi buszi99

This is a known issue for app-only context. You can use this command only with delegated permissions and user context due to limitations of APIs.
Similar problem thread https://github.com/pnp/powershell/issues/462
But i don't think they solved theirs problem.