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 / POWERAPPS FOR MAKERS: ...
Power Apps
Unanswered

POWERAPPS FOR MAKERS: Permission Bug?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

@RezaDorrani and i have been working for a couple days on a related issue here... Thought it was all resolved, but there seems to be a bug in the way Edit App Role Assignment is adding/removing users from the PowerApps permission list. 

Scenario:

  • Trying to build self-service permissions into a PowerApp where app admins can add/remove users from their app.

Steps to reproduce:

  • In the PowerApp
    • Click "Add User"
    • Search for users name in a People picker combobox (tied to Sharepoint Person-type column)
    • Click "Submit"
    • SubmitForm() creates a new record in the Sharepoint "Access" list
    • "AddRemove" column set to "Add"
  • Flow
    • Trigger: When a Sharepoint Item is Created or Modified in "Access" list
    • Switch statement:
      • If "AddRemove" column = "Add"...
        • Action 1: Sharepoint HTTP
          • Adds user to Sharepoint Permission Group (for Sharepoint access)
        • Action 2: Edit App Role Assignment
          • Adds user to the PowerApp
          • image.png
          • This adds the Users name to the PowerApp under "Share", BUT the user cannot access the PowerApp!
          • They receive the error:
            • image.png
          • And after clicking "Request Access", I receive a request email...
            • image.png

Issues:

  • If I look in the "Share" area of the app, the user in question is listed, but they cannot access the app!
  • Only after I type in their name and click "Share" from this screen, can they access the app!
  • If I remove their access using the Flow that @RezaDorrani assisted with, the user loses access again BUT their name is not removed from the "Share" screen!
  • There is no way to remove their name from the "Share" screen. Clicking the "X" next to their name temporarily removes their name, but there is no "Save".
    • As soon as the "Share" screen is closed an opened again, the name reappears (though the user still does NOT have access).
  • image.png

Need some guidance here... approaching two days trying to get this solution working. Feel like I'm in a mess now!

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Two things i'm looking at are: 

    1. In my tenant, the O365 id <> the PowerApps id
    2. I ran my name through the Flow with CanView permissions, now I'm listed twice, once as Owner, once as User. 
      1. I can't remove my User listing (or anyones User listing) from the Share screen

    image.png

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @ericonline 

     

    Looks like some bug in your tenant

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @ericonline are you still experiencing this issue?

     

    @Anonymous 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous , thanks for the follow up.

    Yes, issue still persists. I opened up a support ticket a few days ago, supplied more info, awaiting response. 

    Issue #: 119082324004674 if you're able to nudge at all 🙂

  • TrentDiego Profile Picture
    15 on at

    I'm having this issue as well, all the way here into 2020.
    This wouldn't be an issue if we could specify a group rather than only users names in the PowerApps "share" section. 😕

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Here is what I ended up going with. Using the UPN (varUserID) in put-id instead of userEmail in put-email...

    image.png

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard