cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Super User
Super User

POWERAPPS FOR MAKERS: Permission Bug?

@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!

6 REPLIES 6
Super User
Super User

Re: POWERAPPS FOR MAKERS: Permission Bug?

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

Dual Super User
Dual Super User

Re: POWERAPPS FOR MAKERS: Permission Bug?

Hi @ericonline 

 

Looks like some bug in your tenant

TopShelf-MSFT
Level 10

Re: POWERAPPS FOR MAKERS: Permission Bug?

Hi @ericonline are you still experiencing this issue?

 

@TopShelf-MSFT 

Super User
Super User

Re: POWERAPPS FOR MAKERS: Permission Bug?

Hi @TopShelf-MSFT , 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
Level: Powered On

Re: POWERAPPS FOR MAKERS: Permission Bug?

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. 😕

Super User
Super User

Re: POWERAPPS FOR MAKERS: Permission Bug?

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

image.png

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (1,479)