web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Prevent Users from bei...
Power Apps
Answered

Prevent Users from being able to edit SP list and view of list

(0) ShareShare
ReportReport
Posted on by 33

I made a SP list named "Employee Info" where sensitive information about employees are stored. I currently have modified the view so that the list only shows info that pertains to the user's name. I also have another SP list which will be used to store information relating to employee leave requests. I have the view of this list showing only requests that have been modified/created by the user. However, I know that alone cannot stop the user from looking at another employee's information or leave requests because they can simply click the view tab and change what the list is showing. Is there a way to not allow the user to change or edit the view of the SP lists?

Also, is there a way to not allow users to be able to edit the SP lists?

Thank you so much!

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Nyk 

    There is no real good way to restrict access like this in SharePoint.  Although you might find ways to hide items, views, etc, the fact is the user still has to be able to read information in order to use it.  So, there is nothing that stops them from getting to all the data.

    You can, within SharePoint implement item level security.  But you're only parameters are to allow users to see all, or only the items they create.

     

    Here is how we slice that issue a bit...

    We create separate lists to hold sensitive information.  We typically use Groups in Office 365, so they give us a place to "organize" lists by roles.  

    So, in the case of employees...we will have a "general company-wide" list that will have any and all information that is not sensitive.  Any user can read and access as needed.

    Then we have a separate HR (for example) site and separate list on that site to have sensitive information.  Only HR users can access that information.

    In the App, we check the group membership of the user.  If they are in the HR group, then we connect the data from both lists via a common field (usually employee ID).

     

    Just a thought and sample of how we've hacked that...

    I hope it is helpful for you.

  • Nyk Profile Picture
    33 on at

    I probably should have mentioned this earlier, but I am using these lists for PowerApps, so I was thinking that If I were able to find a way to technically have the list there, but only let the user see their own data, it would work out. If I made a separate site with information only for HR (for example) that only allowed them to have access to it, wouldn't that throw a wrench into PowerApps? I know they are finnicky about that.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Nyk 

    Well, you certainly can set the SharePoint list to allow users to only see their created items.  But, I don't believe that is what you want.  I believe you are wanting them to see only their corresponding record.  That ability does not exist.

    As for the wrench in the works - yes, that is a potential when trying to hide and mask data.  I should have been clearer that as we separate the lists and permissions, we also have different apps for those roles.  So, the HR dept has an App and the general employees have an app.  When we check (say in the general app), if a user has HR permission (are in that group), then we enable the ability for them to click on items that will launch them into the HR app.  Its is not necessarily that all the datasources are in one app.

  • Nyk Profile Picture
    33 on at

    That is something that I haven't tried yet, but am about to look into. I haven't really looked at making separate apps, but that certainly does make sense. Thank you!

  • AlanCruz Profile Picture
    12 on at

    Hello @Nyk , Maybe I have a solution to your problem.

     

    I don't know if this solution would work for you, but for me it solved my problem.

     

    You can create a permission level in which you give the user access to create, edit and, if necessary, delete a record, but they will not be able to see the list directly.

    If someone tries to access the list, they will receive a message informing them that they do not have access, but if they try to access it through power apps, they will be able to, if they have the permissions, add, edit and delete.

    And in power apps it is easier to display only the information relevant to the user viewing the record.

     

    To do this, create a permission level, select the permissions that the user can have and do not check the View Application Pages option.

    AlanCruz_0-1702070122246.png

     

    However, I have not tested whether, if someone tries to access the list via Power Bi, Excel, Dataflow using Power Query, it will be able to return the data.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard