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 / Allow Sharepoint List ...
Power Apps
Unanswered

Allow Sharepoint List in app, but data inaccessible outside the app

(0) ShareShare
ReportReport
Posted on by

I am in the process of building the first Powerapp for my organization and Sharepoint Lists are being used to house the data.  We are looking for a way to prevent users from accessing the sharepoint on it's own as well as the lists, but still having the app work for the staff.

 

From what I've been reading, the user needs to have permissions to the Sharepoint list in order to use it.  Is there a way for staff to have permissions to use the sharepoint list, but no access to open the list directly?

Categories:
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    You can't 100% prevent it, but you can do a lot of steps to prevent it in many situations.

     

    I have recently advised this in a thread here that you can follow:

    Solved: Re: There MUST be a way - hide SP List from site n... - Power Platform Community (microsoft.com)

  • Anchov Profile Picture
    1,986 on at

    Complex security is one of the big limitations of using SharePoint as data source.  The only way I can think of to achieve what you want is to use Power Automate as your intermediary.  Basically, you can create a PowerApps-initiated flow (or flows) that performs all the CRUD actions to the SharePoint list under the context of a service account.  With a simple app, this might be a workable solution.  If you have a highly complex app, this may introduce even more complexity and possibly performance issues.

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    The problem with this design is that flows from within Power Apps always run under the context of the user and will use the user's connections, not the service account. So you'd need to store the data somewhere so that a flow is triggered outside of Power Apps which then writes to the final list - but the user would still need access to the initial datasource the App writes too, and they could still add items there directly.

  • Anchov Profile Picture
    1,986 on at

    In my experience with a recent client solution,  I was able to change the context of the SharePoint connection  used in Power Automate  as a service account (instead of the logged in user)  if you use the PowerAppsv2 connector.  You would  need to configure the Run as User configuration.

    Anchov_1-1678463939093.png

     

    I was able to use a Power Apps initiated Power Automate to allow users to upload photos to a SharePoint Library that was restricted to only the Service Account. 

     

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Ah yes, thanks for mentioning this!

    This can be pretty cool, you can override the whole connection, but that means everything done by that connector will use that connection i.e. you can't have some actions done as the user, others done as the service account, whereas in standalone flows you can have each action performed by a different account if you wanted to 🙂

     

    There were some other issues with the v2 trigger that prevented me from using it before (I think there was a limitation on the number of inputs?) but I can't see any mention of that in the known limitations so maybe that's ok now

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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard