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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sharing a Connection R...
Power Apps
Suggested Answer

Sharing a Connection Reference

(10) ShareShare
ReportReport
Posted on by 763 Super User 2024 Season 1

We are starting Coauthored Development for our Power Apps. We are running into some issues.  Here is a scenario:

 

Scenario

Developer 1

  1. Creates New Solution for Shared Connection References (IT | Common | Connections)
    1. Common Solution contains Connection References for
      1. SharePoint Online
      2. Office 365 Outlook
      3. Office 365 Users

Developer 2

  1. Creates new solution
  2. Creates/imports Power App and related Flows

Problem

Developer 2, while creating flows, cannot see the common shared connection references created by Developer 1. Why?

If Developer 1 goes into the flow created by developer 2, they can see the connection References and use them. Save the Flow. Then Developer 2 can edit the flow and the shared connection references are still selected (although developer 2 cannot see the account used by the connection reference).

 

I can see a possible reason; the underlying Connection in the Shared Connection Reference is not accessible by Developer 2.

 

Even without using a Shared Connection, if developer 1 creates a Connection Reference local to the solution developer 2 will still have an issue as they will not have access to the underlying connection.

 

How is coauthoring supposed to work if solution components cannot be shared? How does one connection reference use different underlying connections based on what the developer has access to?

 

Connections can only be shared with Service Principals, not individuals. How is this supposed to work?

 

Any thoughts would be appreciated.

 

Thank you.

 

Regards,

-S

 

Categories:
I have the same question (3)
  • Casper Profile Picture
    41 on at

    This was never answered. I am having the same problem.  Except the flows are in the same solution as are the connection references.  Other users just cant use these existing connection references.

  • victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    To share a connection go to make.powerautomate.com > Data > Connections > Select the connection > Share

     

    victorcp_0-1674475963708.png

     

    Enter the email > change the permission > save

    victorcp_1-1674476081024.png

     

    I hope it helps 🙂

     

  • Casper Profile Picture
    41 on at

    Thank you, so my understanding is that the connection must be shared.  When trying to do that I get this, where do I add them?

     

    "XXXX@ZZZZ.Com isn't in your organization's directory"

  • victorcp Profile Picture
    2,350 Moderator on at

    My mistake, it is available only for service principal not for users.

     

    As a workaround you can use a service account and share it with all the devs (Unfortunately I think this is the best solution now)

  • sperry1625 Profile Picture
    763 Super User 2024 Season 1 on at

    @victorcp , you cannot share a connection with a person or group. You can only share with a service principal.

     

    Regards,

     

    -S

  • Casper Profile Picture
    41 on at

    Thanks for the feedback.  strange that a connection reference can't be shared, I will then just have to share the username and password with all the developers 😕

  • sperry1625 Profile Picture
    763 Super User 2024 Season 1 on at

    Connections cannot be shared with users or groups. They can only be shared with Service Principals and Service Principal App Ids.  This is the root of the problem.

     

     

  • darylvogan Profile Picture
    274 on at

     Then how do we do shared development? Other devs can't use my flows/connection references.

  • victorcp Profile Picture
    2,350 Moderator on at

    In our team, we created a service account and all the devs use it to create flows and apps.

     

    I know it's not the best solution but it is working

  • darylvogan Profile Picture
    274 on at

    JUST the creation step?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard