cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Restrict user access to Sharepoint list, work exclusively with Powerapps

With reference to the following :

 

https://powerusers.microsoft.com/t5/Building-Power-Apps/Prevent-people-from-accessing-SharePoint-lis...

 

https://powerusers.microsoft.com/t5/Building-Power-Apps/Powerapps-and-Sharepoint-Online-Permissions/...

 

Am trying to restrict users from accessing the Sharepoint list using web browser, but still be able to work with Powerapps where the list acts as a datasource.

 

To summarize :

 

1) Modify the 'Read' permissions level for the site.

Cog - Site Permissions
Advanced Permission settings
Ribbon - Permission levels
Read
Uncheck EVERYTHING except...
a) SITE PERMISSIONS: "Open - Allows users to open a Web site, list, or folder in order to access items inside that container."
NOTE: If performing this on a subsite, the Read permisison level also requires:
SITE PERMISSIONS: Browse User Information
SITE PERMISSIONS: Use Remote Interfaces
If you're applying this to a subsite, you may need to go to the parent site's Permission levels and add a new "Read" permission level (like SubSiteNameRead) that will be used on the subsite. Then once added, go to the subsite advanced Permissions and change the permission level for say "SubsiteName Visitors" from Read to SubSiteNameRead.

* this means any group or person with read access won't have access to anything (site, pages, libraries, lists ... everything)

 

2) Modify the 'Contribute' permissions level for the site.

Cog - Site Permissions
Advanced Permission settings
Ribbon - Permission levels
Contribute
Uncheck EVERYTHING except...
a) LIST PERMISSIONS: "View Items - View items in lists and documents in document libraries."
b) LIST PERMISSIONS: "Edit Items - Edit items in lists, edit documents in document libraries, and customize Web Part Pages in document libraries."
c) LIST PERMISSIONS: "Add Items - Add items to lists and add documents to document libraries."
* if users need to open attachments from list items, then the "Open Items" checkbox needs to be checked also
d) SITE PERMISSIONS: "Open - Allows users to open a Web site, list, or folder in order to access items inside that container." (might have automatically been selected from the list selections)
e) SITE PERMISSIONS: "View Pages - View pages in a Web site." (might have automatically been selected from the list selections)
If you're applying this to a subsite, you may need to go to the parent site's Permission levels and add a new "Contribute" permission level (like SubSiteNameContribute) that will be used on the subsite.

* sets the Contribute permission level so that it allows reading/adding/editing list items

 

3) Stop inheriting permissions on the lists used by the PowerApp

Go to list/s
Cog - List Settings
Permissions for this list
Ribbon - Stop Inheriting Permissions - OK

* so we can set special permissions for the lists used by the PowerApp

 

4) For the concerned lists change the Visitors user group access from Read to Contribute access.

Go to list/s
Cog - List Settings
Permissions for this list
SiteName Visitors - check the checkbox
Ribbon - Edit User Permissions
Uncheck Read (or SubSiteName Read)
Check Contribute (or SubSiteName Contribute)

* sets up the Visitors user group to be the group we put the PowerApp users in. This group now has special access to the required list/s, but still only has read access to the rest of the site.

 

5) Add the PowerApp users to the 'Site Visitors' group

Cog - Site Permissions
Advanced Permission settings
SiteName Visitors
Add people / group

 

--------------------------------

I have implemented solution described, removed all default users from 'Members' group (which incuded Everyone...).  Only users who have access now are myself (Owner), and a test account, assigned to the visitor group with 'Contribute' permission to the list as outlined above.

 

Updated default read groupUpdated default read group

Permissions for default Read group

 

 

List permissions in custom contribute permission levelList permissions in custom contribute permission level

List permissions for the custom "Contribute" group

 

Site permissions in custom contribute permission levelSite permissions in custom contribute permission level

Site permissions for the custom "Contribute" group.  Only change I did was add 'User Remote Interfaces' and 'Browse User Information' as the settings proposed were not working.  However, still could not access the data (I assume), gallery would only display "Getting your data".  If I run the app using my own account (with Owner rights to the list), the gallery displays correctly.

 

The list itself consists of number/calculated columns.  What am I doing wrong?  Please advise.

8 REPLIES 8
WarrenBelz
Most Valuable Professional
Most Valuable Professional

Hi @misc981 ,

Without reading through all of that in detail, I cannot see where you have unchecked View Applicaiton pages

WarrenBelz_0-1647861942873.png

that is all I do and it seems to work well.

 

 

 

All other options aside from those shown in the screenshots were unchecked.

 

All seems to be well now, the users in the visitor group are able to work with Powerapps/update records, and are restricted from accessing the Sharepoint list directly.

 

Running into another issue...the new Sharepoint site I created to host the new lists (I changed the datasource) is not listed/found when I attempt to update the Get Item(s) actions...

 

Any permission required to enable visibility of the site/list in Power Automate, or is something else going on?

To add to previous reply, nothing was performed.  Merely left the application overnight, and this morning was fine.  Tried for hours yesterday, even signing in/out...seems a long time is required for changes to take effect...

 

On the current issue with Sharepoint site not listed in Power Automate, note that :

 

-I changed the datasource in Powerapps to the new site/list (same list name)

-I performed a transaction with no changes to the flow (didn't even cross my mind to update flow at the time...)

-Flow run failed (404) and then I noticed Get Sharepoint Item was still pointing to old site/list

 

HOWEVER, no change was found on the old Sharepoint list, at the old site.  The actual item updated (albeit partially) was the new list, at the new site...no idea what is going on...

Hi @WarrenBelz, I have found disabling the View Application Pages option to be very useful! 

  • ✔ Users are unable to open site contents
  • ✔ Users are unable to open the list even if they acquire the URL
  • ✔ Users are still able to add/edit/delete rows in the list via PowerApps

 

I have had difficulties however in locking down the home page of the SharePoint site from being edited. When I (SharePoint owner) navigate to "Site Contents -> Site Pages -> Home" and update permissions of the restricted user group to Read Only, the functionality is lost and users are able to navigate to site contents/lists etc. 

 

Not sure if you have encountered this issue also and if so have you found a way to lock this down at the same time as restricting access to site contents/lists?

 

Having a hard time getting this to disable users ability to open lists. Unchecked view application pages and followed all the steps.

My only question is under advance options are you allowing users to  see all items or only the items they've created? 

Wanted to chime in - this was not working for me until I went to 
Settings
Site Collection Features

and enabled "Limited-access user permission lockdown"

This solved my problem. Thank you @WarrenBelz 

I would create a separate SharePoint Group for these user(s). Then at the permission level, make a duplicate of the 'Contribute' permission, and disable "View application Page" from @WarrenBelz earlier post.

 

Then ensure that new group you've created do not have access to any of the pages in the 'Site Content' area. This way, they only have access to the list (but not view directly) and also do not have access to any pages.

 

Same thing for document library if that's needed to ensure the group is removed.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,081)