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

Restricting access to sharepoint site while leaving access through powerapps intact

Hello everyone,

 

I've been using powerapps for some time now, and really enjoy working with it. When it comes to integrating sharepoint permissions with powerapps, things become unclear to me, hence this question.

 

Question tl;dr: Is there a way to block user navigation to a site or list, while the user can still access this site or list via powerapps data connection?

 

More information:

There will be 2 groups of users using the app. Group A needs to be able to see all items in a list. Group B needs to be able to see items created by themselves and items created by users from group A.

 

- The only 'hard' setting on sharepoint level limiting the permissions of users in their access to items seems to be the setting where users can only read or edit the items they have created. This won't work in my situation, since users from group B also need access to list items made by users in group A (but not items created by other members from their group, B).

- I gather there is a way to edit the author field of a list item via a HTTP request to sharepoint with power automate. This would make things a lot more complex and slower on the user end, since this would have to be incorporated into every function that creates a sharepoint item.

- I'm aware of the possibility of creating a custom view for a list where you can force a filter on the user, giving a bit more flexibility than simply 'see what user made'. Again this adds complexity to the process, and doesn't shield the list item from the user, but only makes it more difficult for them to reach it.

 

My problem would be solved if users would be unable to navigate to the sharepoint site/list, while still retaining access to the data via the app. Is anyone aware of such a possibility?

 

Kind regards

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @KvB ,

A simple answer to your first question is to create a custom permission is SharePoint based on whatever the users need in Power Apps (I generally use Contribute) and then uncheck "View Application Pages". They then cannot view any SharePoint page even if they know the exact URL.

For the second one (I am am probably a pragmatist rather than a purist), I maintain a list of all users with the various permissions in fields I look up as required.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User III
Super User III

Hi @KvB ,

A simple answer to your first question is to create a custom permission is SharePoint based on whatever the users need in Power Apps (I generally use Contribute) and then uncheck "View Application Pages". They then cannot view any SharePoint page even if they know the exact URL.

For the second one (I am am probably a pragmatist rather than a purist), I maintain a list of all users with the various permissions in fields I look up as required.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

KvB
New Member

Thank you very much, I spent a lot of time trying to deal with access to sharepoint sites, this definately helps for my current needs and is something I will use more often.

As a side note, I did notice it was still possible to navigate to a list in the site when I used a custom view as part of of the URL used to navigate. Since I don't need custom views if access to the list is blocked and users cant make one if they don't have access to the list, it doesnt result in any issues.

 

Thanks again!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,182)