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

@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

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

@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

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,110)