cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dompanha
Level: Powered On

Prevent user to save/change data directly in Sharepoint list, the data will save/change though Powerapps only

Dear All,

 

I have build Powerapps application connected with SharePoint and I want to prevent user from save/change directly in SharePoint list, the data will be save/change through Powerapps only, Is there any solution to do that?

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Prevent user to save/change data directly in Sharepoint list, the data will save/change though Powerapps only

Just to add.  For #1 you'll have to de-link it and go through two Flows in order to save results using Flow without permissions.  Any Flow that you call directly from a PowerApp will run in the security context of the user.  So you will have to call another Flow from that Flow to get the Flow to run in the context of the person creating the Flow rather than the one executing the PowerApp.  PowerApps just isn't designed to be a security application in front of SharePoint.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
4 REPLIES 4
Super User
Super User

Re: Prevent user to save/change data directly in Sharepoint list, the data will save/change though Powerapps only

There is no way to keep users from editing a SharePoint list directly but still allowing them access to the list through PowerApps.  Users must have permission to access the list to use it in PowerApps and that gives them permission to edit the list directly.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
jhall
Level 8

Re: Prevent user to save/change data directly in Sharepoint list, the data will save/change though Powerapps only

As @Pstork1 mentions, you cannot do this *unless* you either:

  1. De-link your PowerApp from SharePoint and instead link it to Flow (or some other in-between)
  2. Stop your application from performing a SubmitForm() on certain users (which I think would work)

Depending upon your environment and how much business logic you have piled into your app, I might suggest one vs. the other.

Super User
Super User

Re: Prevent user to save/change data directly in Sharepoint list, the data will save/change though Powerapps only

Just to add.  For #1 you'll have to de-link it and go through two Flows in order to save results using Flow without permissions.  Any Flow that you call directly from a PowerApp will run in the security context of the user.  So you will have to call another Flow from that Flow to get the Flow to run in the context of the person creating the Flow rather than the one executing the PowerApp.  PowerApps just isn't designed to be a security application in front of SharePoint.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
jhall
Level 8

Re: Prevent user to save/change data directly in Sharepoint list, the data will save/change though Powerapps only


@Pstork1 wrote:

PowerApps just isn't designed to be a security application in front of SharePoint.


Exactly.  You're really supposed to be doing the security layer within SharePoint itself.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 212 members 5,651 guests
Please welcome our newest community members: