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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / BEST PRACTICES: "Servi...
Power Apps
Unanswered

BEST PRACTICES: "Service Accounts"

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello, 
I need some help with this scenario. Curious how you all are doing it. 

Scenario:

  1. User creates a Power App and / or Power Automate (Flow) and / or Connections
  2. User leaves company
  3. Apps/Flows/Connections fail, pandemonium ensues

Constraints:

  1. Cannot use Active Directory Guest Accounts

Thoughts:

  1. Ensure every Power App and Power Automate is shared with a generic @mycompany account (what type of "account" is this?)
  2. Ensure every Connection uses a Windows App ID

Trouble is... how do we ensure this?!
Thank you

Categories:
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @ericonline ,

    Do you want to know how to make your account have access to the shared app?

    1)Your account belongs to the talent that the app was created in.

    2)If you are an external user, you need to become the talent's guest.

    Let me tell you how to add accounts as talent's guests:

    1. Add guest users to your organization in Azure Active Directory.
    2. Assign a license to the guest user.
    3. Share the canvas app.

    Here's the doc about this in details for your reference:

    https://powerapps.microsoft.com/en-us/blog/share-canvas-apps-with-guests-in-your-organization/

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I think I figured out a way to handle this.

    Test 1:

    • Create a Shared Mailbox
    • Add PowerApps team as members.

    Results:

    • App can be shared with this mailbox (aka: PowerApps@mycompany.com)
    • Each member of the mailbox receives a notice that "a new app has been shared with you"
    • BUT, when they attempt to open the app, they receive an error ("you do not have permissions on this app, please contact xyz...")

    Test 2: 

    • Create an Active Directory Security Group
    • Add PowerApps team as members

    Results:

    • App can be shared with the group (aka: PowerAppsTeam)
    • They do not receive a notification when the app is shared with the group
    • When they attempt to login, the app shows up just fine (NOTE: as with sharing any PowerApp, all the data sources must also be shared with this group)

    Findings:

    • To prevent apps and flows from being orphaned when someone leaves your company, create an AD Sec Group and ENSURE that every app and flow is shared with this AD Sec Group as part of your governance strategy. 

    Hope this helps!

  • Brice235i Profile Picture
    651 on at

    Hello, thank you for your post, but have a question on this.  Even though a Flow is shared with the AD group, it will still break when the author's account is terminated right? Outlook, SharePoint connectors would still be using the connection of the terminated user's account.   I don't believe you can establish a connection to an AD security group as you must sign in to configure.  We ended up creating a service account for this purpose, but is a hassle to have to swap the connections throughout the flow as we have to log out of our accounts and in as the service account.  I hope I'm wrong, and there is some way to set-up a connection to an AD security group... just don't see how.

     

    Capture.PNG

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Aha. I should add this follow up to manage connections within Flows:
    - For these, we create Windows App ID’s and sign into connections with these credentials.
    - There are infinite ways to handle and manage these. It’s not easy, but it takes specific users out of the equation.
  • schuess3 Profile Picture
    353 on at

    Hey @ericonline ,

     

    Can you elaborate on "Window's App ID"?

    What is it?

    How do you create one? 

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @schuess3 ,

     

    This blog talks a bit about it: https://www.mavention.nl/blogs-cat/publishing-your-powerapp-things-to-consider/?cn-reloaded=1. Its a generic account within your Active Directory that has security permissions. I'm not really sure how they are created. Its handled by the security folks. 


    Would love to hear from someone that has experience with these.

     

    Thanks for keeping the convo going

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard