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

Community site session details

Session Id : M84yw2MeZ3HwVXWBD1/4C0
Power Apps - Building Power Apps
Unanswered

On Premise Data Gateway Permissions Only Working for Individuals

Like (0) ShareShare
ReportReport
Posted on 22 Feb 2018 17:06:39 by 2
We have the On-Premises Data Gateway installed and running successfully (v 14.16.6584.1). We have created a PowerApp that connects to on-premise SharePoint 2016 list data via the gateway. Permissions to the SharePoint list are assigned via an AD security group and the PowerApp is also shared with the same AD security group with 'Can Use' permissions. We also have to assign permissions on the Gateway which we do in web.powerapps.com by navigating to 'Gateways' > selecting our gateway > Users. Here we add the users of the app with 'Can Use' permissions on the gateway. When the user runs the app for the first time, they are prompted to allow the SharePoint connection and have to enter their username and password, once they do this the app runs and connects to the data successfully. However, if we remove the individual user from the Gateway permissions and instead add the AD security group that the user belongs to with 'Can Use' permissions on the gateway, when the app is run for the first time and the user is prompted to allow the SharePoint connection, when they enter their credentials they receive the error message: "We weren't able to add this connection. Please try again" "PowerBINotAuthorizedException Session ID: [GUID]" The same problem occurs if we click the 'Add everyone in my org' button on the gateway permissions and add 'Can use' permissions for the whole organisation. We have ensured that the AD security group is synchronised correctly via DirSync and have logged the user out and back in before testing but the problem persists. There is no information in the gateway server logs relating to this, even after enabling enhanced logging. It seems that only individuals added to the gateway permissions are recognised. Any groups fail. This presents a problem when we need to share an app using a gateway connection with a large number of users as it's not practical to add hundreds of users individually. It's important to note that once the connection has been added successfully it will tend to work when the individual user is removed and replaced by a group on the gateway permissions so to recreate the error you must delete the SharePoint connection from the 'Connections' menu before running the PowerApp again so that it prompts to allow the connection when the app is launched.
Categories:
  • brock_101 Profile Picture
    2 on 29 Nov 2018 at 11:51:33
    Re: On Premise Data Gateway Permissions Only Working for Individuals

    It's been a while since we looked at this...  We did have a case open with MS but never got a resolution. 

     

    I think one of the updates to the gateway got the 'add everyone in the organisation' permission on the gateway working so that individuals didn't have to be added but we never got AD groups to work!

  • Community Power Platform Member Profile Picture
    on 29 Nov 2018 at 07:07:50
    Re: On Premise Data Gateway Permissions Only Working for Individuals

    I'm sorry I don't have the answer, but we are planning to do the same thing. And getting the same error.

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete