cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
kuchar71
New Member

Adding sharepoint list's item without viewing permission

Hello. I need to build a powerapp to store employees' comments in sharepoint list. I prepared an app with a ms flow which update list with a new item. I want to permit apps's user to add new item to sharepoint list but I don't want to give them possibility to view this list. How can I do it?

1 ACCEPTED SOLUTION

Accepted Solutions
SamPo Impactful Individual
Impactful Individual

Re: Adding sharepoint list's item without viewing permission

@kuchar71 Without giving them access to the list, the only way you can do it is by creating a sub-flow.

Basically you set it up like this: The app calls a flow which then has an HTTP call to an endpoint of another flow.

In this second flow you will create the calls to SharePoint.

 

The first flow will be run as the user (with their permissions) who is currently using the app but the second flow will be run with the account of whoever created the flow (assuming yours) therefore you only need to allow that user access to the list and not anyone else.

 

If this answer is helpful then please consider marking it as a solution to help other users in the future.

 

Sam

View solution in original post

3 REPLIES 3
CollabTechie Responsive Resident
Responsive Resident

Re: Adding sharepoint list's item without viewing permission

Hi @kuchar71 - I would recommend reading this from the wonderful @WonderLaura 

https://wonderlaura.com/2019/07/18/powerapps-as-a-front-end/

---------------------------------------------------------------------------------------
If my reply was helpful, please give a thumbs up or please accept as solution if this resolved your issue

SamPo Impactful Individual
Impactful Individual

Re: Adding sharepoint list's item without viewing permission

@kuchar71 Without giving them access to the list, the only way you can do it is by creating a sub-flow.

Basically you set it up like this: The app calls a flow which then has an HTTP call to an endpoint of another flow.

In this second flow you will create the calls to SharePoint.

 

The first flow will be run as the user (with their permissions) who is currently using the app but the second flow will be run with the account of whoever created the flow (assuming yours) therefore you only need to allow that user access to the list and not anyone else.

 

If this answer is helpful then please consider marking it as a solution to help other users in the future.

 

Sam

View solution in original post

kuchar71
New Member

Re: Adding sharepoint list's item without viewing permission

Thanks for your help! I've done it in similar way, but your solution sounds even better.

My version is:
I have two flows. The first one adds an item into "temporary" list which is available for all app's user. The second one I made on admin's sharepoint account and it launches when new item in temporary list is created and it adds new item into "real" list (which is available for specific users) and then removes the item from temporary list.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (5,921)