cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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

Highlighted
Dual Super User
Dual Super User

Re: POWERAPPS FOR MAKERS: Permission Bug?

Hi @ericonline 

 

Looks like some bug in your tenant

Highlighted
Community Champion
Community Champion

Re: POWERAPPS FOR MAKERS: Permission Bug?

Hi @ericonline are you still experiencing this issue?

 

@TopShelf-MSFT 

Highlighted
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 🙂

Highlighted
Frequent Visitor

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

Highlighted
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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,345)