web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Unanswered

Sharing managed powerapp that is deployed using azure pipelines

(4) ShareShare
ReportReport
Posted on by 31

Hi,

 

We have managed to deploy canvas apps and flows in a solution to another environment using azure pipelines and power platform build tools. But after deployment, we are not able to share the app with other users even if we are system administrators in the environment. Can some one help me understand why as a system administrator I am unable to share the managed canvas app with other users?

 

When I use the following command to change the owner of the app, I am able to then Share it with other users. But surely this is not the right way to do this: Set-AdminPowerAppOwner -AppName $app.AppName -EnvironmentName $environmentName -AppOwner $Global:currentSession.userId

 

Can some one give me guidance on how to deploy a solution as a managed solution to other environments and then share it with other users. What would happen if we share version 1.0.0.1 of the app then re import version 1.0.0.2 - will the permissions stay intact?

 

Feels like the whole concept of solutions and environments is a half baked and served ! 

 

Categories:
I have the same question (0)
  • Joel CustomerEffective Profile Picture
    3,224 on at
    Re: Sharing managed powerapp that is deployed using azure pipelines

    what do you see when you go to the share menu?

  • vammers Profile Picture
    31 on at
    Re: Sharing managed powerapp that is deployed using azure pipelines

    hi @jlindstrom ,

     

    When deployed through pipeline, the service application account is the owner of the app. When I access the solution as system owner of the environment, the share option is not visible. 

    When I try to click on the app to play it, it takes me to one of the oob apps in my environment, rather than executing my app.

    When I change the owner using the ps command mentioned above, I start seeing two solutions with the same name and the app is now available on the apps page (outside solution) as well. 

     

    Regards,

    Vammers

  • Joel CustomerEffective Profile Picture
    3,224 on at
    Re: Sharing managed powerapp that is deployed using azure pipelines

    ok, so if you don't see share and you can't run the app, chances are you are not the owner of the app in the environment. It's probably owned by the account that moves the solution.

     

    there is also a set owner action in the power apps for administrators connector you can use with Power Automate. COE starter kit also has some stuff around this

  • vammers Profile Picture
    31 on at
    Re: Sharing managed powerapp that is deployed using azure pipelines

    That is correct,

    We are able to reset the ownership, update co ownership and share it with other users via powershell. 

    Commands to use are the one mentioned above and set-adminpowerapproleassignment

     

  • Joel CustomerEffective Profile Picture
    3,224 on at
    Re: Sharing managed powerapp that is deployed using azure pipelines

    This is one of the gaps in the alm capabilities for canvas apps. This will be updated to allow setting this during import of the solution in near future based on what was announced at Build. If you import a new version today it should retain ownership and sharing

  • adedapo Profile Picture
    256 on at
    Re: Sharing managed powerapp that is deployed using azure pipelines

    Hi guys,

    I'm facing a similar issue too.
    Can the command below be added to the pipeline files for importing?
    Set-AdminPowerAppOwner -AppName $app.AppName -EnvironmentName $environmentName -AppOwner $Global:currentSession.userId

  • Devikumari Krishna Profile Picture
    988 Super User 2024 Season 1 on at
    Re: Sharing managed powerapp that is deployed using azure pipelines

    Hi @vammers ,

     

    Looks like these limitations are addressed now from the time you created this ticket.

     

    1. Owners of resources can edit flow and PowerApps in managed solution.
    2. If a user has access to the environment but that user is not an owner of resources of a solution, then the user can edit flow, but not PowerApps.

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    My Blog: Dynamics 365 Key Topics – https://d365topicsbydk.com/


    My YouTube Channel : https://www.youtube.com/channel/UCxSIryP2ah2VpEFr-Z72t1A

     

    Regards
    Devi

  • Community Power Platform Member Profile Picture
    on at
    Re: Sharing managed powerapp that is deployed using azure pipelines

    Hello @DeviKrishna ,

     

    Regarding your second point. In this case, changing the ownership of an app and sharing it with users should be done with a ps script? If using an SPN is a recommended approach.

     

    Thanks, 

    Anna

  • PowerPlatform_V Profile Picture
    2 on at
    Re: Sharing managed powerapp that is deployed using azure pipelines

    I am having same issue as well - using Azure DevOp to migrate my app from Dev to Test environment and cannot share the app. Could you please elaborate on how the limitations have been addressed? 

  • byrnep Profile Picture
    218 on at
    Re: Sharing managed powerapp that is deployed using azure pipelines

    The problem is the owner is a service principal.  You can't log in as a service principal.


    Also, pipeline are to remove hands on involvement. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 777 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 495

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 423 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics