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 : jUTPWa9DnljgKz+P/uZR0W
Power Apps - Power Apps Pro Dev & ISV
Answered

Power Platform Build Tools Canvas App Owner - cannot share app

Like (0) ShareShare
ReportReport
Posted on 18 Jul 2020 06:49:11 by 40

Hi,

 

We recently migrated our deployment pipeline into Azure DevOps using the Power Platform build tools, running into an issue with regards to canvas app ownership:

 

We migrate the solution from dev to test as expected, all components work just fine, except I cannot, as the system admin, access the Canvas App.

 

Looks like all components of the solution are 'owned' by the application user in the environment (the one connected to the service principle in Azure DevOps.)

 

This includes the canvas app, such that in the imported Power Apps solutions I can see:

 

Canvas App: MyAppName

Owner: ApplicationUser

 

Problem is, as the system admin for the environment, I can't access the Canvas app, as it has not been shared with me.

 

With the application user being a service account, I also don't know how to share the canvas app.

 

My workaround has been to remap ownership of the application using Power Automate. I migrate ownership from Application User -> System Admin for that environment, and then share the app in the normal way.

 

However, this isn't something I'd like users doing every time we have to import an upgraded solution.

 

Moreover, I'm unsure how changing the owner affects importing newer versions of the solution. I definitely don't want users to have to run a flow everytime a solution is imported, just to be able to access the canvas app.

 

Hopefully I'm missing something and would really appreciate some clarity here.

 

Thank you

 

 

  • Nebulas Profile Picture
    95 on 03 Aug 2022 at 22:32:31
    Re: Power Platform Build Tools Canvas App Owner - cannot share app

    Hi @EricRegnier 

    I am not sure if you last response was meant for me, assume yes.

     

    Consistent with the responses above in this thread, my goal to to have this automated using Azure DevOps so it is completely 'hands off'. I don't want to be manually configuring each tenant environment post deployment to change the owner of components within the solution (there will be ~20 different tenants I am deploying to).

     

    Even when I manually use the Maker Portal to update the connection references, I am able to do this on all connection references (Maker, Dataverse, Office 365 groups, SharePoint etc) EXCEPT for 'Power Apps Notifications V2'. The 'Power Apps Notifications V2' connection reference doesn't have a user in the dropdown menu when trying to edit the connection reference (The other connection references above did have). Then when I try to edit/run the App, I get the modal attached below with the 'Allow' button greyed out.

     

    I am really struggling with how to get this all working in the target environment once deployed.

     

    Thanks again.

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on 03 Aug 2022 at 14:33:26
    Re: Power Platform Build Tools Canvas App Owner - cannot share app

    Hi @jzia93, As a system admin you can add yourself or anyone as the owner in the Power Platform Admin Center (aka.ms/ppac). Pick your environment --> Resources --> then pick "Power Apps" --> Select ellipse on the app --> Share --> search/add yourself:

    EricRegnier_1-1659537150818.png

     

    EricRegnier_0-1659537103188.png

    Hope this helps!

     

  • Nebulas Profile Picture
    95 on 03 Aug 2022 at 12:03:09
    Re: Power Platform Build Tools Canvas App Owner - cannot share app

    Hi @EricRegnier 

    Sorry for the reply to old post. I have all the same issues with my pipelines that are running using service principal. I have been able to resolve App owners and Flow owners with PowerShell PowerApps Cmdlets, however stumbling with Connection Reference owners. 
    In the 

    Set-AdminPowerAppConnectionRoleAssignment command I am unable to determine/locate the -ConnectionName anywhere.
    I have used 
    Get-AdminPowerAppConnectionReferences but it gives me every piece of detail expect the ConnectionName. Also cannot locate anywhere in Maker Portal.
     
    Any help would be greatly appreciated. 
  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on 15 Jan 2022 at 22:13:21
    Re: Power Platform Build Tools Canvas App Owner - cannot share app

    Hi @DanyilVol, Connecting with a SPN now works Add-PowerAppsAccount!

  • DanyilVol Profile Picture
    2 on 27 Dec 2021 at 11:38:19
    Re: Power Platform Build Tools Canvas App Owner - cannot share app

    Hi @EricRegnier  Did you get any response from Microsoft Support?

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on 12 Apr 2021 at 09:10:36
    Re: Power Platform Build Tools Canvas App Owner - cannot share app

    Hi @hackondor, I'm using a service account and I don't believe it's supported yet with a SPN. It's strange though that the documentation you sent says you can! Maybe it's now available, but only in some region?.. I would submit a Microsoft support ticket to get more info. Keep us posted, cheers!

  • hackondor Profile Picture
    37 on 08 Apr 2021 at 08:46:44
    Re: Power Platform Build Tools Canvas App Owner - cannot share app

    Hi @EricRegnier , i'm using service principal, so i can use the the function below:

     

    Add-PowerAppsAccount
    -Endpoint "tip1"
    -TenantID [Guid]
    -ClientSecret ABCDE]NO_8:YDLp0J4o-:?=K9cmipuF@
    -ApplicationId [Guid]

    Ref: https://docs.microsoft.com/en-us/powershell/module/microsoft.powerapps.administration.powershell/add-powerappsaccount?view=pa-ps-latest

     

    But i have no response after running my script, do i still have the same issue below :

    https://powerusers.microsoft.com/t5/Power-Apps-Governance-and/Add-PowerAppsAccount-using-ClientSecret-in-PowerApps-PowerShell/td-p/660323

     

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on 07 Apr 2021 at 19:33:46
    Re: Power Platform Build Tools Canvas App Owner - cannot share app

    Your pipeline needs to authenticate and execute the scripts with a service account that has MFA disabled. I configure the pass and username in pipeline variable (and variable groups of shared across pipelines).
    Specifically this part:

    # Here is how you can pass in credentials
    $pass = ConvertTo-SecureString "password" -AsPlainText -Force
    Add-PowerAppsAccount -Username user@contoso.com -Password $pass

  • hackondor Profile Picture
    37 on 07 Apr 2021 at 17:44:00
    Re: Power Platform Build Tools Canvas App Owner - cannot share app

    Hi @EricRegnier  We can't execute the script from the pippline as a task because the MFA blocking the access, do you have any workround for this ? Thank's

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on 02 Apr 2021 at 00:51:08
    Re: Power Platform Build Tools Canvas App Owner - cannot share app

    In ADO, you’ll need a PowerShell task with either inline or script file. Use the “Set-FlowOwnerRole” for a flow or “Set-PowerAppRoleAssignment” for a canvas app. Don’t forget to authenticate before setting the owner with the “Add-PowerAppsAccount” command 

    https://docs.microsoft.com/power-platform/admin/powerapps-powershell#installation 

     

    hope this helps!

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete