Forum Discussion
Inkey_Solutions
Jan 04, 2022Brass Contributor
Restrict users to access list using REST API
Hello, I have made a list in SharePoint, and I want to restrict the Users to access the list via REST API. So how can I turn off the ability for the users to access the list via REST API, so tha...
Inkey_Solutions
Jan 04, 2022Brass Contributor
Hello jcgonzalezmartin ,
Thank you for your reply. I am trying to make an app which performs CRUD operations in Power apps, where in the data source passed is SharePoint List. And I want the users to access those SharePoint Columns only via the Power Apps, and not directly by the SharePoint Site. So that, even if they get the source to the SharePoint site, they might be restricted to the View Mode.
Please reply, if you can help me in any way.
Thank you.
Jan 04, 2022
That's a different scenario...unfortunately, if the users discover the site and they have collaboration rights there, they are going to be able to modify data directly in the site. There are tow possible workarounds for you here:
(1) Hide the Lists and Document Librararies used in the PowerApp: https://www.c-sharpcorner.com/article/how-to-hide-sharepoint-list-using-pnp-powershell/
(2) Force a redirect to the SPO home page to any user trying to access the site: Develop a SPFx extension that prevent any user except especific ones to access the site.
(1) Hide the Lists and Document Librararies used in the PowerApp: https://www.c-sharpcorner.com/article/how-to-hide-sharepoint-list-using-pnp-powershell/
(2) Force a redirect to the SPO home page to any user trying to access the site: Develop a SPFx extension that prevent any user except especific ones to access the site.